DMSwarmPICLayoutType#

Defines the method used to define particle coordinates within each cell. The layouts are constructured using the reference cell geometry

Synopsis#

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#

DMSWARM, DM, DMSwarmInsertPointsUsingCellDM()

Level#

beginner

Location#

include/petscdmswarm.h

Examples#

src/dm/tutorials/ex20.c.html
src/dm/tutorials/ex21.c.html
src/ksp/ksp/tutorials/ex70.c.html


Edit on GitLab

Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages