A class to apply initial condition.
More...
#include <initialCondition.h>
|
| double | getICFormula (const std::string &fn_type, const std::vector< double > ¶ms, const util::Point3 &x, const size_t &dof, const size_t &dim) |
| | Computes the formula specified by input file. More...
|
| |
A class to apply initial condition.
This class processes input data and provides method to apply initial condition.
◆ InitialCondition()
Constructor.
- Parameters
-
| deck | Input deck which contains user-specified information |
◆ apply()
Applies initial condition to displacement and velocity.
- Parameters
-
| u | Vector nodal displacements |
| v | Vector nodal velocities |
| mesh | Mesh object |
◆ getICFormula()
| double loading::InitialCondition::getICFormula |
( |
const std::string & |
fn_type, |
|
|
const std::vector< double > & |
params, |
|
|
const util::Point3 & |
x, |
|
|
const size_t & |
dof, |
|
|
const size_t & |
dim |
|
) |
| |
|
private |
Computes the formula specified by input file.
- Parameters
-
| fn_type | Type of function in formula |
| params | List of required parameters |
| x | Coordinate of point |
| dof | Degree of freedom (0 for X, 1 for Y, 2 for Z) |
| dim | Dimension |
- Returns
- value Value of formula at the point
◆ print()
| void loading::InitialCondition::print |
( |
int |
nt = 0, |
|
|
int |
lvl = 0 |
|
) |
| const |
|
inline |
Prints the information about the instance of the object.
- Parameters
-
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
◆ printStr()
| std::string loading::InitialCondition::printStr |
( |
int |
nt = 0, |
|
|
int |
lvl = 0 |
|
) |
| const |
Returns the string containing information about the instance of the object.
- Parameters
-
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
- Returns
- string String containing information about this object
Referenced by print().
The documentation for this class was generated from the following files:
- /root/project/src/loading/initialCondition.h
- /root/project/src/loading/initialCondition.cpp