| /libCEED/examples/petsc/ |
| H A D | Makefile | 31 all: area bps bpsraw bpssphere dmswarm multigrid 38 area.c := area.c 39 area.o = $(area.c:%.c=$(OBJDIR)/%.o) 40 area: $(area.o) libutils.a | $(PETSc.pc) $(ceed.pc) target 97 $(RM) -r $(OBJDIR) *.vtu area bps bpsraw bpssphere dmswarm multigrid libutils.a
|
| H A D | README.md | 66 ### libCEED example to compute surface area using DMPlex - area 68 This example uses the mass matrix to compute the surface area of a cube or a discrete cubed-sphere,… 70 To build, run `make area` 72 To run, `./area -problem cube -ceed [ceed-resource] -petscspace_degree [degree]` 76 `./area -problem sphere -ceed [ceed-resource] -petscspace_degree [degree]` 80 The following arguments can be specified for the area example:
|
| H A D | .gitignore | 4 /area 11 /petsc-area
|
| H A D | area.c | 193 PetscScalar area; in main() local 194 PetscCall(VecSum(V, &area)); in main() 202 PetscReal error = fabs(area - exact_surface_area); in main() 206 PetscCall(PetscPrintf(comm, "Computed mesh surface area : % .14g\n", area)); in main()
|
| H A D | index.md | 3 (example-petsc-area)= 8 It demonstrates a simple usage of libCEED with PETSc to calculate the surface area of a closed surf… 12 (example-petsc-area-cube)= 16 This is one of the test cases of the computation of the {ref}`example-petsc-area` of a 2D manifold … 20 ./area -problem cube 41 (example-petsc-area-sphere)= 45 This problem computes the surface {ref}`example-petsc-area` of a tensor-product discrete sphere, ob… 50 ./area -problem sphere 104 …equation {eq}`eq-jacobian-sphere`, are the same as in the {ref}`example-petsc-area-sphere` example. 155 Preconditioning based on the libCEED finite element operator decomposition is an ongoing area of re…
|
| /libCEED/tests/ |
| H A D | t360-basis.c | 39 CeedScalar area = 0.0; in main() local 42 for (CeedInt i = 0; i < p_dim; i++) area += v_array[i]; in main() 43 …if (fabs(area - 2.0 * CeedIntPow(2, dim)) > 5E-6) printf("Incorrect area computed %f != %f\n", are… in main()
|
| H A D | t530-operator.c | 115 CeedScalar area = 0.0; in main() local 118 for (CeedInt i = 0; i < num_dofs; i++) area += v_array[i]; in main() 119 …if (fabs(area - 1.0) > 100. * CEED_EPSILON) printf("Error: True operator computed area = %f != 1.0… in main() 138 CeedScalar area = 0.0; in main() local 141 for (CeedInt i = 0; i < num_dofs; i++) area += v_array[i]; in main() 143 …if (fabs(area - 1.0) > 1000. * CEED_EPSILON) printf("Error: Linearized operator computed area = %f… in main()
|
| H A D | t362-basis.c | 43 CeedScalar area = 0.0; in main() local 46 for (CeedInt i = 0; i < p; i++) area += v_array[i]; in main() 47 if (fabs(area - 1.0) > 1E-6) printf("Incorrect area computed %f != %f\n", area, 1.0); in main()
|
| H A D | t532-operator.c | 120 CeedScalar area = 0.0; in main() local 123 for (CeedInt i = 0; i < num_dofs; i++) area += v_array[i]; in main() 125 …if (fabs(area - 1.0) > 100. * CEED_EPSILON) printf("Error: True operator computed area = %f != 1.0… in main() 155 CeedScalar area = 0.0; in main() local 158 for (CeedInt i = 0; i < num_dofs; i++) area += v_array[i]; in main() 160 …if (fabs(area - 1.0) > 100. * CEED_EPSILON) printf("Error: Assembled operator computed area = %f !… in main()
|
| H A D | t592-operator.c | 194 CeedScalar area = 0.0; in main() local 197 for (CeedInt i = 0; i < num_nodes; i++) area += v_array[i]; in main() 198 …if (fabs(area - 1.0 * num_elem) > CEED_EPSILON * 5e3) printf("Error: True operator computed area =… in main() 217 CeedScalar area = 0.0; in main() local 220 for (CeedInt i = 0; i < num_nodes; i++) area += v_array[i]; in main() 222 …if (fabs(area - 1.0 * num_elem) > CEED_EPSILON * 5e3) printf("Error: Linearized operator computed … in main()
|
| /libCEED/examples/ceed/ |
| H A D | README.md | 7 This example uses the mass matrix to compute the length, area, or volume of a region, depending upo… 11 This example uses the diffusion matrix to compute the surface area of a region, in 1D, 2D or 3D, de… 15 This example uses the mass matrix to compute the length, area, or volume of a region, depending upo…
|
| H A D | index.md | 34 It computes the surface area of a given body using matrix-free application of a diffusion operator.
|
| /libCEED/julia/LibCEED.jl/examples/ |
| H A D | ex2-surface.jl | 137 # Compute the mesh surface area using the diff operator: 139 print("Computing the mesh surface area using the formula: sa = 1^T.|K.x| ...") 158 @printf("Exact mesh surface area : % .14g\n", exact_sa) 159 @printf("Computed mesh surface area : % .14g\n", sa) 160 @printf("Surface area error : % .14g\n", sa - exact_sa)
|
| H A D | ex1-volume.jl | 17 # coordinates, (r,phi) in [1,2]x[0,pi/2] with area = 3/4*pi
|
| H A D | ex3-volume.jl | 17 # coordinates, (r,phi) in [1,2]x[0,pi/2] with area = 3/4*pi
|
| H A D | ex1-volume-c.jl | 200 # coordinates, (r,phi) in [1,2]x[0,pi/2] with area = 3/4*pi
|
| /libCEED/examples/python/ |
| H A D | tutorial-6-shell.ipynb | 219 "surface area of a given body using matrix-free application of a diffusion operator.\n", 283 "Computing the mesh surface area using the formula: sa = 1^T.|K.x| ... done.\n", 284 "Exact mesh surface area : 6\n", 285 "Computed mesh surface area : 5.9773703490853\n", 286 "Surface area error : -0.022629650914673\n" 298 …"This example computes the surface area of a given body using matrix-free application of a Laplace…
|
| H A D | tutorial-5-operator.ipynb | 133 …this operator to a vector with a linear function, we compute the 'surface area' of this 1D domain,… 218 " print('The surface area of the domain is dl = %4.2f'%np.sum(abs(v_array)))"
|
| /libCEED/examples/rust/ex2-surface/src/ |
| H A D | main.rs | 334 let area: libceed::Scalar = v.view()?.iter().map(|v| (*v).abs()).sum(); in example_2() localVariable 339 println!("Computed mesh surface_area : {:.12}", area); in example_2() 340 println!("Surface area error : {:.12e}", area - exact_area); in example_2() 346 let error = (area - exact_area).abs(); in example_2()
|
| /libCEED/examples/rust/ex2-surface-vector/src/ |
| H A D | main.rs | 360 let area: libceed::Scalar = v in example_2_vector() localVariable 370 println!("Computed mesh surface_area : {:.12}", area); in example_2_vector() 371 println!("Surface area error : {:.12e}", area - exact_area); in example_2_vector() 377 let error = (area - exact_area).abs(); in example_2_vector()
|
| /libCEED/examples/ |
| H A D | README.md | 72 …he [petsc/](./petsc) folder, use the mass operator to compute the surface area of a cube or a disc… 73 …on, please see the corresponding [area documentation page](https://libceed.org/en/latest/examples/…
|
| /libCEED/ |
| H A D | README.md | 302 $ ./area -problem cube -ceed /cpu/self -degree 3 303 $ ./area -problem cube -ceed /gpu/cuda -degree 3 304 $ ./area -problem sphere -ceed /cpu/self -degree 3 -dm_refine 2 305 $ ./area -problem sphere -ceed /gpu/cuda -degree 3 -dm_refine 2
|
| /libCEED/doc/sphinx/source/ |
| H A D | releasenotes.md | 342 - Standalone {ref}`ex2-surface` ({file}`examples/ceed/ex2-surface`): compute the area of 345 - PETSc {ref}`example-petsc-area` ({file}`examples/petsc/area.c`): computes surface area 404 computes the surface area of a given mesh was added to this release.
|
| /libCEED/doc/papers/joss/ |
| H A D | paper.md | 123 Preconditioning matrix-free operators is an active area of research; support for domain decompositi…
|
| /libCEED/examples/fluids/ |
| H A D | index.md | 650 Given the force components $\bm F = (F_x, F_y, F_z)$ and surface area $S = \pi D L_z$ where $L_z$ i…
|