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. When usingDMSWARMPIC_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 usingDMSWARMPIC_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 usingDMSWARMPIC_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
src/dm/tutorials/ex21.c
src/ksp/ksp/tutorials/ex70.c
Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages