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;
DMSWARMPIC_LAYOUT_REGULAR defines points on a regular ijk mesh. When using DMSWARMPIC_LAYOUT_REGULAR, the fill_param defines the number of points in each spatial direction.
DMSWARMPIC_LAYOUT_GAUSS defines points using an npoint Gauss-Legendre tensor product quadrature rule. When using DMSWARMPIC_LAYOUT_GAUSS, the fill_param defines the number of quadrature points in each spatial direction.
DMSWARMPIC_LAYOUT_SUBDIVISION defines points on the centroid of a sub-divided reference cell. When using DMSWARMPIC_LAYOUT_SUBDIVISION, the fill_param defines the number times the reference cell is sub-divided.
See Also#
Level#
beginner
Location#
Examples#
src/dm/tutorials/ex20.c.html
src/dm/tutorials/ex21.c.html
src/ksp/ksp/tutorials/ex70.c.html
Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages