Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 38) sorted by relevance

12

/libCEED/
H A DCargo.toml5 "examples/rust/ex1-volume",
6 "examples/rust/ex1-volume-vector",
9 "examples/rust/ex3-volume",
10 "examples/rust/ex3-volume-vector",
13 exclude = ["examples/rust-qfunctions/ex1-volume-rs"]
/libCEED/examples/rust-qfunctions/
H A DMakefile28 ex1-volume: ex1-volume.c
29 …cargo +nightly build --release --manifest-path ex1-volume-rs/Cargo.toml --config ex1-volume-rs/.ca…
30 …bspath $<) -o $@ $(CEED_LIBS) -L$(CEED_DIR)/examples/rust-qfunctions/ex1-volume-rs/target/release …
H A D.gitignore1 ex1-volume
H A Dex1-volume.c263 CeedScalar volume = 0.; in main() local
269 for (CeedInt i = 0; i < sol_size; i++) volume += v_array[i]; in main()
276 printf("Computed mesh volume : % .14g\n", volume); in main()
277 printf("Volume error : % .14g\n", volume - exact_volume); in main()
282 if (fabs(volume - exact_volume) > tol) printf("Volume error : % .1e\n", volume - exact_volume); in main()
/libCEED/examples/ceed/
H A Dindex.md6 (ex1-volume)=
11 It illustrates a simple usage of libCEED to compute the volume of a given body using a matrix-free …
14 This example shows how to compute line/surface/volume integrals of a 1D, 2D, or 3D domain $\Omega$ …
19 $$ (eq-ex1-volume)
21 …te here the vector $u(x)\equiv 1$ in the Galerkin approximation, and find the volume of $\Omega$ as
25 $$ (volume-sum)
57 …} = 1$, the boundary integrand is $v 1 \equiv v$. Hence, similar to {eq}`volume-sum`, we can evalu…
63 (ex3-volume)=
68 It illustrates a more complex usage of libCEED to compute the volume of a given body using a matrix…
71 This example shows how to compute line/surface/volume integrals of a 1D, 2D, or 3D domain $\Omega$ …
[all …]
H A DREADME.md5 ### Example 1: ex1-volume
7 This example uses the mass matrix to compute the length, area, or volume of a region, depending upo…
13 ### Example 3: ex3-volume
15 This example uses the mass matrix to compute the length, area, or volume of a region, depending upo…
H A D.gitignore1 ex1-volume
3 ex3-volume
H A Dex3-volume.c242 CeedScalar volume = 0.; in main() local
248 for (CeedInt i = 0; i < sol_size; i++) volume += v_array[i]; in main()
255 printf("Computed mesh volume : % .14g\n", volume); in main()
256 printf("Volume error : % .14g\n", volume - exact_volume); in main()
261 if (fabs(volume - exact_volume) > tol) printf("Volume error : % .1e\n", volume - exact_volume); in main()
H A Dex1-volume.c253 CeedScalar volume = 0.; in main() local
259 for (CeedInt i = 0; i < sol_size; i++) volume += v_array[i]; in main()
266 printf("Computed mesh volume : % .14g\n", volume); in main()
267 printf("Volume error : % .14g\n", volume - exact_volume); in main()
272 if (fabs(volume - exact_volume) > tol) printf("Volume error : % .1e\n", volume - exact_volume); in main()
/libCEED/julia/LibCEED.jl/docs/src/
H A DExamples.md7 - `ex1-volume-c.jl`, an almost one-to-one translation of `ex1-volume.c`, using
10 - `ex1-volume.jl`, a higher-level more idiomatic version of `ex1-volume.c`,
/libCEED/doc/sphinx/source/
H A Dreferences.bib5 volume = {41},
24 volume = 45,
35 volume = {32},
55 volume = {43},
74 volume = {6},
86 volume = {14},
95 volume = {17},
107 volume = {52},
119 volume = {121},
130 volume = {9},
[all …]
/libCEED/julia/LibCEED.jl/examples/
H A Dex1-volume.jl131 # Compute the mesh volume using the mass operator: vol = 1^T \cdot M \cdot 1
132 print("Computing the mesh volume using the formula: vol = 1^T.M.1 ...")
141 # Compute and print the sum of the entries of 'v' giving the mesh volume.
145 @printf("Exact mesh volume : % .14g\n", exact_vol)
146 @printf("Computed mesh volume : % .14g\n", vol)
H A Dex3-volume.jl170 # Compute the mesh volume using the mass+diffusion operator: vol = 1^T \cdot (M + K) \cdot 1
171 print("Computing the mesh volume using the formula: vol = 1^T * (M + K) * 1...")
180 # Compute and print the sum of the entries of 'v' giving the mesh volume.
184 @printf("Exact mesh volume : % .14g\n", exact_vol)
185 @printf("Computed mesh volume : % .14g\n", vol)
/libCEED/examples/python/
H A Dtutorial-6-shell.ipynb42 "simple usage of libCEED to compute the volume of a given body using a matrix-free\n",
46 "This example shows how to compute line/surface/volume integrals of a 1D, 2D, or 3D\n",
55 "and find the volume of $\\Omega$ as\n",
167 "Now run `ex1-volume` by running"
192 "Computing the mesh volume using the formula: vol = 1^T.M.1 ... done.\n",
193 "Exact mesh volume : 2.3561944901923\n",
194 "Computed mesh volume : 2.3561944901921\n",
200 "! ./ex1-volume -d 3 -g"
207 …"This example shows how to compute line/surface/volume integrals of a 1D, 2D, or 3D domain Ω respe…
H A Dex3_volume.py157 volume = 0.0
160 volume = np.sum(v_array)
170 if abs(volume - exact_volume) > tol:
H A Dex1_volume.py160 volume = 0.0
163 volume = np.sum(v_array)
173 if abs(volume - exact_volume) > tol:
/libCEED/doc/papers/joss/
H A Dpaper.bib156 volume={59},
264 volume = {585},
286 volume = "37",
327 volume={17},
355 volume = 22,
365 volume = {84},
382 volume = {28},
400 volume={52},
412 volume={36},
424 volume={24},
/libCEED/examples/rust/ex1-volume/src/
H A Dmain.rs253 let volume: libceed::Scalar = v.view()?.iter().sum(); in example_1() localVariable
258 println!("Computed mesh volume : {:.12}", volume); in example_1()
261 volume - exact_volume in example_1()
268 let error = (volume - exact_volume).abs(); in example_1()
/libCEED/examples/rust/ex3-volume/
H A DCargo.toml2 name = "ex3-volume"
/libCEED/examples/rust/ex1-volume/
H A DCargo.toml2 name = "ex1-volume"
/libCEED/examples/rust/ex3-volume-vector/
H A DCargo.toml2 name = "ex3-volume-vector"
/libCEED/examples/rust/ex1-volume-vector/
H A DCargo.toml2 name = "ex1-volume-vector"
/libCEED/examples/rust/ex1-volume-vector/src/
H A Dmain.rs270 let volume: libceed::Scalar = v.view()?.iter().sum::<libceed::Scalar>() in example_1_vector() localVariable
276 println!("Computed mesh volume : {:.12}", volume); in example_1_vector()
279 volume - exact_volume in example_1_vector()
286 let error = (volume - exact_volume).abs(); in example_1_vector()
/libCEED/examples/rust-qfunctions/ex1-volume-rs/
H A DCargo.toml2 name = "ex1-volume-rs"
/libCEED/examples/rust/ex3-volume/src/
H A Dmain.rs334 let volume: libceed::Scalar = v.view()?.iter().sum(); in example_3() localVariable
339 println!("Computed mesh volume : {:.12}", volume); in example_3()
342 volume - exact_volume in example_3()
349 let error = (volume - exact_volume).abs(); in example_3()

12