NLMech  0.1.0
loading::ULoading Class Reference

A class to apply displacement boundary condition. More...

#include <uLoading.h>

Inheritance diagram for loading::ULoading:
Inheritance graph
Collaboration diagram for loading::ULoading:
Collaboration graph

Public Member Functions

void apply (const double &time, std::vector< util::Point3 > *u, std::vector< util::Point3 > *v, fe::Mesh *mesh)
 Applies displacement boundary condition. More...
 
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...
 
 ULoading (inp::LoadingDeck *deck, fe::Mesh *mesh)
 Constructor. More...
 
- Public Member Functions inherited from loading::Loading
 Loading ()=default
 Constructor.
 

Additional Inherited Members

- Data Fields inherited from loading::Loading
std::vector< inp::BCDatad_bcData
 List of displacement bcs.
 
std::vector< std::vector< size_t > > d_bcNodes
 List of nodal ids on which bc is to be applied.
 

Detailed Description

A class to apply displacement boundary condition.

Constructor & Destructor Documentation

◆ ULoading()

loading::ULoading::ULoading ( inp::LoadingDeck deck,
fe::Mesh mesh 
)

Constructor.

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

Member Function Documentation

◆ apply()

void loading::ULoading::apply ( const double &  time,
std::vector< util::Point3 > *  u,
std::vector< util::Point3 > *  v,
fe::Mesh mesh 
)

Applies displacement boundary condition.

Parameters
timeCurrent time
uVector nodal displacements
vVector nodal velocities
meshMesh object
Here is the call graph for this function:

◆ print()

void loading::ULoading::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 loading::ULoading::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: