PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
inp::MeshDeck Struct Reference

Structure to read and store mesh related input data. More...

#include <meshDeck.h>

Collaboration diagram for inp::MeshDeck:

Public Member Functions

 MeshDeck ()
 Constructor.
 
std::string printStr (int nt=0, int lvl=0) const
 Returns the string containing printable information about the object.
 
void print (int nt=0, int lvl=0) const
 Prints the information about the object.
 

Data Fields

size_t d_dim
 Dimension.
 
std::string d_spatialDiscretization
 Tag for spatial discretization.
 
bool d_populateElementNodeConnectivity
 Flag to indicate if we should populate element-node connectivity data in meshes.
 
size_t d_quadOrder
 Order of quadrature approximation for strain and stress computation (default is 1)
 
std::string d_filename
 Filename to read mesh data.
 
bool d_computeMeshSize
 Flag which indicates if mesh size is to be computed.
 
double d_h
 Mesh size.
 
bool d_createMesh
 Specify if we create mesh using in-built gmsh or in-built routine for uniform discretization of rectangle/cuboid.
 
std::string d_createMeshInfo
 Information that will be used when creating a mesh using in-built routines.
 
util::geometry::GeomData d_createMeshGeomData
 Information that will be used when creating a mesh using in-built routines.
 

Detailed Description

Structure to read and store mesh related input data.

Definition at line 26 of file meshDeck.h.

Constructor & Destructor Documentation

◆ MeshDeck()

inp::MeshDeck::MeshDeck ( )
inline

Constructor.

Definition at line 84 of file meshDeck.h.

84 : d_dim(0), d_computeMeshSize(false),
85 d_h(0.), d_createMesh(false),
bool d_computeMeshSize
Flag which indicates if mesh size is to be computed.
Definition meshDeck.h:60
double d_h
Mesh size.
Definition meshDeck.h:63
bool d_createMesh
Specify if we create mesh using in-built gmsh or in-built routine for uniform discretization of recta...
Definition meshDeck.h:69
size_t d_dim
Dimension.
Definition meshDeck.h:29
util::geometry::GeomData d_createMeshGeomData
Information that will be used when creating a mesh using in-built routines.
Definition meshDeck.h:79

Member Function Documentation

◆ print()

void inp::MeshDeck::print ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information about the object.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)

Definition at line 123 of file meshDeck.h.

123{ std::cout << printStr(nt, lvl); }
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
Definition meshDeck.h:95

References d_dim, and printStr().

Here is the call graph for this function:

◆ printStr()

std::string inp::MeshDeck::printStr ( int  nt = 0,
int  lvl = 0 
) const
inline

Returns the string containing printable information about the object.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)
Returns
string String containing printable information about the object

Definition at line 95 of file meshDeck.h.

95 {
96
98 std::ostringstream oss;
99 oss << tabS << "------- MeshDeck --------" << std::endl << std::endl;
100 oss << tabS << "Dimension = " << d_dim << std::endl;
101 oss << tabS << "Populate element-node connectivity data = " << d_populateElementNodeConnectivity << std::endl;
102 oss << tabS << "Order of quad approximation = " << d_quadOrder << std::endl;
103 oss << tabS << "Spatial discretization type = " << d_spatialDiscretization
104 << std::endl;
105 oss << tabS << "Filename = " << d_filename << std::endl;
106 oss << tabS << "Compute mesh size = " << d_computeMeshSize << std::endl;
107 oss << tabS << "Mesh size = " << d_h << std::endl;
108 oss << tabS << "Create mesh = " << d_createMesh << std::endl;
109 oss << tabS << "Create mesh info = " << d_createMeshInfo << std::endl;
110 oss << tabS << "Create mesh geometry details: " << std::endl;
112 oss << tabS << std::endl;
113
114 return oss.str();
115 }
std::string getTabS(int nt)
Returns tab spaces of given size.
Definition io.h:40
std::string d_spatialDiscretization
Tag for spatial discretization.
Definition meshDeck.h:42
size_t d_quadOrder
Order of quadrature approximation for strain and stress computation (default is 1)
Definition meshDeck.h:54
std::string d_createMeshInfo
Information that will be used when creating a mesh using in-built routines.
Definition meshDeck.h:74
bool d_populateElementNodeConnectivity
Flag to indicate if we should populate element-node connectivity data in meshes.
Definition meshDeck.h:48
std::string d_filename
Filename to read mesh data.
Definition meshDeck.h:57
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.

References d_computeMeshSize, d_createMesh, d_createMeshGeomData, d_createMeshInfo, d_dim, d_filename, d_h, d_populateElementNodeConnectivity, d_quadOrder, d_spatialDiscretization, util::io::getTabS(), and util::geometry::GeomData::printStr().

Referenced by fe::Mesh::Mesh(), print(), and inp::ParticleZone::printStr().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ d_computeMeshSize

bool inp::MeshDeck::d_computeMeshSize

Flag which indicates if mesh size is to be computed.

Definition at line 60 of file meshDeck.h.

Referenced by printStr(), and inp::Input::setZoneMeshDeck().

◆ d_createMesh

bool inp::MeshDeck::d_createMesh

Specify if we create mesh using in-built gmsh or in-built routine for uniform discretization of rectangle/cuboid.

Definition at line 69 of file meshDeck.h.

Referenced by printStr(), and inp::Input::setZoneMeshDeck().

◆ d_createMeshGeomData

util::geometry::GeomData inp::MeshDeck::d_createMeshGeomData

Information that will be used when creating a mesh using in-built routines.

Definition at line 79 of file meshDeck.h.

Referenced by printStr(), and inp::Input::setZoneMeshDeck().

◆ d_createMeshInfo

std::string inp::MeshDeck::d_createMeshInfo

Information that will be used when creating a mesh using in-built routines.

Definition at line 74 of file meshDeck.h.

Referenced by printStr(), and inp::Input::setZoneMeshDeck().

◆ d_dim

size_t inp::MeshDeck::d_dim

Dimension.

Definition at line 29 of file meshDeck.h.

Referenced by print(), printStr(), and inp::Input::setZoneMeshDeck().

◆ d_filename

std::string inp::MeshDeck::d_filename

Filename to read mesh data.

Definition at line 57 of file meshDeck.h.

Referenced by printStr(), and inp::Input::setZoneMeshDeck().

◆ d_h

double inp::MeshDeck::d_h

Mesh size.

Definition at line 63 of file meshDeck.h.

Referenced by printStr(), and inp::Input::setZoneMeshDeck().

◆ d_populateElementNodeConnectivity

bool inp::MeshDeck::d_populateElementNodeConnectivity

Flag to indicate if we should populate element-node connectivity data in meshes.

Note
Value of this variable is equal to @ModelDeckd_populateElementNodeConnectivity

Definition at line 48 of file meshDeck.h.

Referenced by printStr().

◆ d_quadOrder

size_t inp::MeshDeck::d_quadOrder

Order of quadrature approximation for strain and stress computation (default is 1)

Note
Value of this variable is equal to @ModelDeckd_quadOrder

Definition at line 54 of file meshDeck.h.

Referenced by printStr().

◆ d_spatialDiscretization

std::string inp::MeshDeck::d_spatialDiscretization

Tag for spatial discretization.

Note
Value of this variable is equal to @ModelDeckd_spatialDiscretization

List of allowed values are:

  • finite_difference
  • weak_finite_element
  • nodal_finite_element
  • truss_finite_element

Definition at line 42 of file meshDeck.h.

Referenced by printStr(), and inp::Input::setZoneMeshDeck().


The documentation for this struct was generated from the following file: