LifeV
MeshData Class Reference

MeshData - class for handling spatial discretization. More...

#include <MeshData.hpp>

+ Inheritance diagram for MeshData:
+ Collaboration diagram for MeshData:

Private Attributes

std::string M_meshDir
 mesh directory More...
 
std::string M_meshFile
 mesh file More...
 
std::string M_meshType
 mesh type More...
 
std::string M_order
 mesh type More...
 
bool M_verbose
 verbose output? More...
 

Constructors & Destructor

 MeshData ()
 Empty Constructor. More...
 
 MeshData (const GetPot &dataFile, const std::string &section="space_discretization")
 Constructor. More...
 
 MeshData (const MeshData &meshData)
 Copy constructor. More...
 
virtual ~MeshData ()
 Virtual destructor. More...
 

Methods

void setup (const GetPot &dataFile, const std::string &section)
 Read the dataFile and set all the members. More...
 
void setup (const Teuchos::ParameterList &meshParameters)
 Set all members using a Teuchos ParameterList. More...
 
virtual void showMe (std::ostream &output=std::cout) const
 Display the values. More...
 

Set Methods

void setMeshDir (const std::string &dir)
 
void setMeshFile (const std::string &file)
 
void setMeshType (const std::string &type)
 
void setMOrder (const std::string &order)
 
void setVerbose (const bool &isVerbose)
 

Get Methods

const std::string & meshDir () const
 
const std::string & meshFile () const
 
const std::string & meshType () const
 
const std::string & mOrder () const
 
const bool & verbose () const
 

Detailed Description

MeshData - class for handling spatial discretization.

Author
M.A. Fernandez
Cristiano Malossi

The class is a container for mesh information.

Definition at line 72 of file MeshData.hpp.

Constructor & Destructor Documentation

◆ MeshData() [1/3]

MeshData ( )

Empty Constructor.

Definition at line 51 of file MeshData.cpp.

+ Here is the caller graph for this function:

◆ MeshData() [2/3]

MeshData ( const GetPot dataFile,
const std::string &  section = "space_discretization" 
)

Constructor.

Parameters
dataFiledata file
sectionthe section in the data file

Definition at line 59 of file MeshData.cpp.

◆ MeshData() [3/3]

MeshData ( const MeshData meshData)

Copy constructor.

Definition at line 69 of file MeshData.cpp.

◆ ~MeshData()

virtual ~MeshData ( )
inlinevirtual

Virtual destructor.

Definition at line 95 of file MeshData.hpp.

Member Function Documentation

◆ setup() [1/2]

void setup ( const GetPot dataFile,
const std::string &  section 
)

Read the dataFile and set all the members.

Parameters
dataFiledata file
sectionfile section

Definition at line 81 of file MeshData.cpp.

+ Here is the caller graph for this function:

◆ setup() [2/2]

void setup ( const Teuchos::ParameterList &  meshParameters)

Set all members using a Teuchos ParameterList.

Parameters
meshParametersTeuchos ParameterList containing:
  • meshDir [string] location of mesh file
  • meshFile [string] the name of the mesh file
  • order [string] the order of the mesh (P1, P2)
  • verbose [bool] verbosity level

Definition at line 91 of file MeshData.cpp.

◆ showMe()

void showMe ( std::ostream &  output = std::cout) const
virtual

Display the values.

Definition at line 108 of file MeshData.cpp.

◆ setMeshDir()

void setMeshDir ( const std::string &  dir)
inline

Definition at line 129 of file MeshData.hpp.

+ Here is the caller graph for this function:

◆ setMeshFile()

void setMeshFile ( const std::string &  file)
inline

Definition at line 133 of file MeshData.hpp.

+ Here is the caller graph for this function:

◆ setMeshType()

void setMeshType ( const std::string &  type)
inline

Definition at line 137 of file MeshData.hpp.

◆ setMOrder()

void setMOrder ( const std::string &  order)
inline

Definition at line 141 of file MeshData.hpp.

+ Here is the caller graph for this function:

◆ setVerbose()

void setVerbose ( const bool &  isVerbose)
inline

Definition at line 145 of file MeshData.hpp.

+ Here is the caller graph for this function:

◆ meshDir()

const std::string& meshDir ( ) const
inline

Definition at line 156 of file MeshData.hpp.

+ Here is the caller graph for this function:

◆ meshFile()

const std::string& meshFile ( ) const
inline

Definition at line 160 of file MeshData.hpp.

+ Here is the caller graph for this function:

◆ meshType()

const std::string& meshType ( ) const
inline

Definition at line 164 of file MeshData.hpp.

◆ mOrder()

const std::string& mOrder ( ) const
inline

Definition at line 168 of file MeshData.hpp.

◆ verbose()

const bool& verbose ( ) const
inline

Definition at line 172 of file MeshData.hpp.

+ Here is the caller graph for this function:

Field Documentation

◆ M_meshDir

std::string M_meshDir
private

mesh directory

Definition at line 181 of file MeshData.hpp.

◆ M_meshFile

std::string M_meshFile
private

mesh file

Definition at line 182 of file MeshData.hpp.

◆ M_meshType

std::string M_meshType
private

mesh type

Definition at line 183 of file MeshData.hpp.

◆ M_order

std::string M_order
private

mesh type

Definition at line 184 of file MeshData.hpp.

◆ M_verbose

bool M_verbose
private

verbose output?

Definition at line 186 of file MeshData.hpp.


The documentation for this class was generated from the following files: