DMPlexRestoreGeomBodyMassProperties#
Release the arrays returned by DMPlexGetGeomBodyMassProperties()
Synopsis#
#include "petscdmplex.h"
PetscErrorCode DMPlexRestoreGeomBodyMassProperties(DM dm, PetscGeom body, PetscScalar *volume, PetscScalar *surfArea, PetscScalar **centerOfGravity, PetscInt *COGsize, PetscScalar **inertiaMatrixCOG, PetscInt *IMCOGsize) PeNS
Not Collective
Input Parameters#
dm - The
DMPLEXwith an attached CAD geometrybody - The
PetscGeombody previously queriedvolume - The volume value (unused, retained for API symmetry)
surfArea - The surface area value (unused, retained for API symmetry)
centerOfGravity - Center-of-gravity array to free
COGsize - The size of
centerOfGravity(unused, retained for API symmetry)inertiaMatrixCOG - Inertia-matrix-at-COG array to free
IMCOGsize - The size of
inertiaMatrixCOG(unused, retained for API symmetry)
See Also#
DMPlexGetGeomBodyMassProperties(), DMPlexGetGeomModelBodies()
Level#
intermediate
Location#
Examples#
src/dm/impls/plex/tutorials/ex19.c
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages