Generate a parallel (distributed) mesh from PETSc DMDA. More...
#include <PETScDMDAMesh.h>
Public Member Functions | |
PETScDMDAMesh (const InputParameters ¶meters) | |
PETScDMDAMesh (const PETScDMDAMesh &)=default | |
~PETScDMDAMesh () | |
PETScDMDAMesh & | operator= (const PETScDMDAMesh &other_mesh)=delete |
virtual std::unique_ptr< MooseMesh > | safeClone () const override |
virtual void | buildMesh () override |
virtual Real | getMinInDimension (unsigned int component) const override |
virtual Real | getMaxInDimension (unsigned int component) const override |
Protected Attributes | |
MooseEnum | _dim |
The dimension of the mesh. More... | |
dof_id_type | _nx |
Number of elements in x, y, z direction. More... | |
dof_id_type | _ny |
dof_id_type | _nz |
Real | _xmin |
The min/max values for x,y,z component. More... | |
Real | _xmax |
Real | _ymin |
Real | _ymax |
Real | _zmin |
Real | _zmax |
ElemType | _elem_type |
The type of element to build. More... | |
bool | _need_to_destroy_dmda |
If DMDA is created on the fly, we should destroy it. More... | |
DM | _dmda |
Mesh object. More... | |
Generate a parallel (distributed) mesh from PETSc DMDA.
DMDA could be passed in from an application such as ExternalPetscSolverApp or created on the fly. Note that this mesh object does not have one layer of ghost elements. It is designed for holding the solution from an external PETSc application. And then the solution can be coupled to other MOOSE-based applications using the existing MultiApp transfers.
Definition at line 27 of file PETScDMDAMesh.h.
PETScDMDAMesh::PETScDMDAMesh | ( | const InputParameters & | parameters | ) |
Definition at line 72 of file PETScDMDAMesh.C.
|
default |
|
inline |
Definition at line 34 of file PETScDMDAMesh.h.
|
overridevirtual |
Definition at line 517 of file PETScDMDAMesh.C.
|
overridevirtual |
|
overridevirtual |
|
delete |
|
overridevirtual |
Definition at line 165 of file PETScDMDAMesh.C.
|
protected |
The dimension of the mesh.
Definition at line 51 of file PETScDMDAMesh.h.
Referenced by buildMesh(), getMaxInDimension(), getMinInDimension(), and PETScDMDAMesh().
|
protected |
Mesh object.
Definition at line 66 of file PETScDMDAMesh.h.
Referenced by buildMesh(), PETScDMDAMesh(), and ~PETScDMDAMesh().
|
protected |
The type of element to build.
Definition at line 60 of file PETScDMDAMesh.h.
Referenced by buildMesh().
|
protected |
If DMDA is created on the fly, we should destroy it.
Definition at line 63 of file PETScDMDAMesh.h.
Referenced by PETScDMDAMesh(), and ~PETScDMDAMesh().
|
protected |
Number of elements in x, y, z direction.
Definition at line 54 of file PETScDMDAMesh.h.
Referenced by PETScDMDAMesh().
|
protected |
Definition at line 54 of file PETScDMDAMesh.h.
Referenced by PETScDMDAMesh().
|
protected |
Definition at line 54 of file PETScDMDAMesh.h.
|
protected |
Definition at line 57 of file PETScDMDAMesh.h.
Referenced by getMaxInDimension().
|
protected |
The min/max values for x,y,z component.
Definition at line 57 of file PETScDMDAMesh.h.
Referenced by getMinInDimension().
|
protected |
Definition at line 57 of file PETScDMDAMesh.h.
Referenced by getMaxInDimension().
|
protected |
Definition at line 57 of file PETScDMDAMesh.h.
Referenced by getMinInDimension().
|
protected |
Definition at line 57 of file PETScDMDAMesh.h.
Referenced by getMaxInDimension().
|
protected |
Definition at line 57 of file PETScDMDAMesh.h.
Referenced by getMinInDimension().