NLMech  0.1.0
geometry::DampingGeom Class Reference

An abstraction class to process geometry for damping force calculation. More...

#include <dampingGeom.h>

Collaboration diagram for geometry::DampingGeom:
Collaboration graph

Public Member Functions

 DampingGeom (inp::AbsorbingCondDeck *deck, const fe::Mesh *mesh)
 Constructor. More...
 
double getCoefficient (const size_t &i)
 Get nodal volume of node i. More...
 
double getCoefficient (const size_t &i) const
 Get nodal volume of node i. More...
 
const std::vector< double > * getCoefficientDataP ()
 Get pointer to the coefficient data. More...
 
const std::vector< double > * getCoefficientDataP () const
 Get pointer to the coefficient data. More...
 
bool isDampingActive () const
 
bool isViscousDamping () const
 
void print (int nt=0, int lvl=0) const
 Prints the information about the instance of the object. More...
 
std::string printStr (int nt=0, int lvl=0) const
 Returns the string containing information about the instance of the object. More...
 

Private Member Functions

void computeDampingCoefficient (const fe::Mesh *mesh)
 Compute damping coefficients at nodal coordinates. More...
 

Private Attributes

inp::AbsorbingCondDeckd_absorbingDeck_p
 input deck for absorbing condition
 
std::vector< double > d_coefficients
 Coefficients.
 
size_t d_dim
 Dimension.
 

Detailed Description

An abstraction class to process geometry for damping force calculation.

Constructor & Destructor Documentation

◆ DampingGeom()

geometry::DampingGeom::DampingGeom ( inp::AbsorbingCondDeck deck,
const fe::Mesh mesh 
)

Constructor.

Parameters
deckInput deck which contains user-specified information
meshFe mesh object
Here is the call graph for this function:

Member Function Documentation

◆ computeDampingCoefficient()

void geometry::DampingGeom::computeDampingCoefficient ( const fe::Mesh mesh)
private

Compute damping coefficients at nodal coordinates.

Parameters
meshThe mesh

Referenced by DampingGeom().

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

◆ getCoefficient() [1/2]

double geometry::DampingGeom::getCoefficient ( const size_t &  i)

Get nodal volume of node i.

Parameters
iId of the node
Returns
vol Volume

◆ getCoefficient() [2/2]

double geometry::DampingGeom::getCoefficient ( const size_t &  i) const

Get nodal volume of node i.

Parameters
iId of the node
Returns
vol Volume

◆ getCoefficientDataP() [1/2]

const std::vector< double > * geometry::DampingGeom::getCoefficientDataP ( )

Get pointer to the coefficient data.

Returns
The coefficient data

◆ getCoefficientDataP() [2/2]

const std::vector< double > * geometry::DampingGeom::getCoefficientDataP ( ) const

Get pointer to the coefficient data.

Returns
The coefficient data

◆ isDampingActive()

bool geometry::DampingGeom::isDampingActive ( ) const

Checks if damping is active

Returns
If damping is active

◆ isViscousDamping()

bool geometry::DampingGeom::isViscousDamping ( ) const

Checks if viscous damping is active

Returns
If viscous damping is active

◆ print()

void geometry::DampingGeom::print ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information about the instance of the object.

Parameters
ntNumber of tabs to append before each line of string
lvlLevel of information sought (higher level means more information)
Here is the call graph for this function:

◆ printStr()

std::string geometry::DampingGeom::printStr ( int  nt = 0,
int  lvl = 0 
) const

Returns the string containing information about the instance of the object.

Parameters
ntNumber of tabs to append before each line of string
lvlLevel of information sought (higher level means more information)
Returns
string String containing information about this object

Referenced by print().

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

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