DMSwarmPICLayoutType#
Defines the method used to define particle coordinates within each cell. The layouts are constructured using the reference cell geometry
Synopsis#
typedef enum {
DMSWARMPIC_LAYOUT_REGULAR = 0,
DMSWARMPIC_LAYOUT_GAUSS,
DMSWARMPIC_LAYOUT_SUBDIVISION
} DMSwarmPICLayoutType;
Values#
DMSWARMPIC_LAYOUT_REGULAR
- defines points on a regular ijk mesh. In this case thefill_param
argument ofDMSwarmInsertPointsUsingCellDM()
defines the number of points in each spatial direction.DMSWARMPIC_LAYOUT_GAUSS
- defines points using an npoint Gauss-Legendre tensor product quadrature rule. In this case thefill_param
argument ofDMSwarmInsertPointsUsingCellDM()
defines the number of quadrature points in each spatial direction.DMSWARMPIC_LAYOUT_SUBDIVISION
- defines points on the centroid of a sub-divided reference cell. In this case thefill_param
argument ofDMSwarmInsertPointsUsingCellDM()
defines the number times the reference cell is sub-divided.
See Also#
Level#
beginner
Location#
Examples#
src/dm/tutorials/ex20.c
src/ksp/ksp/tutorials/ex70.c
src/dm/tutorials/ex21.c
Examples#
Examples#
src/dm/tutorials/ex20.c
src/ksp/ksp/tutorials/ex70.c
Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages