![]() |
NLMech
0.1.0
|
A class to read input file. More...
#include <input.h>

Public Member Functions | |
| Input (const std::string &filename) | |
| Constructor. 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... | |
Accessor methods | |
| inp::FractureDeck * | getFractureDeck () |
| Get the pointer to fracture deck. More... | |
| inp::InitialConditionDeck * | getInitialConditionDeck () |
| Get the pointer to initial condition deck. More... | |
| inp::InteriorFlagsDeck * | getInteriorFlagsDeck () |
| Get the pointer to interior flags deck. More... | |
| inp::LoadingDeck * | getLoadingDeck () |
| Get the pointer to loading deck. More... | |
| inp::MassMatrixDeck * | getMassMatrixDeck () |
| Get the pointer to mass matrix deck. More... | |
| inp::MaterialDeck * | getMaterialDeck () |
| Get the pointer to material deck. More... | |
| inp::MeshDeck * | getMeshDeck () |
| Get the pointer to mesh deck. More... | |
| inp::ModelDeck * | getModelDeck () |
| Get the pointer to model deck. More... | |
| inp::NeighborDeck * | getNeighborDeck () |
| Get the pointer to neighbor list deck. More... | |
| inp::OutputDeck * | getOutputDeck () |
| Get the pointer to output deck. More... | |
| inp::PolicyDeck * | getPolicyDeck () |
| Get the pointer to policy info deck. More... | |
| inp::QuadratureDeck * | getQuadratureDeck () |
| Get the pointer to quadrature deck. More... | |
| inp::RestartDeck * | getRestartDeck () |
| Get the pointer to restart deck. More... | |
| inp::SolverDeck * | getSolverDeck () |
| Get the pointer to solver deck. More... | |
| inp::AbsorbingCondDeck * | getAbsorbingCondDeck () |
| Get the pointer to absorbing condition deck. More... | |
| const std::string | getSpatialDiscretization () |
| Get the name of spatial discretization. More... | |
Private Member Functions | |
Setter methods | |
Reads input file into the respective decks | |
| void | setFractureDeck () |
| Read data into fracture deck and store its pointer. | |
| void | setInitialConditionDeck () |
| Read data into initial condition deck and store its pointer. | |
| void | setInteriorFlagsDeck () |
| Read data into interior flags deck and store its pointer. | |
| void | setLoadingDeck () |
| Read data into loading deck and store its pointer. | |
| void | setMassMatrixDeck () |
| Read data into mass matrix deck and store its pointer. | |
| void | setMaterialDeck () |
| Read data into material deck and store its pointer. | |
| void | setMeshDeck () |
| Read data into mesh deck and store its pointer. | |
| void | setModelDeck () |
| Read data into model deck and store its pointer. | |
| void | setNeighborDeck () |
| Read data into neighbor list deck and store its pointer. | |
| void | setOutputDeck () |
| Read data into output deck and store its pointer. | |
| void | setPolicyDeck () |
| Read data into policy deck and store its pointer. | |
| void | setQuadratureDeck () |
| Read data into quadrature deck and store its pointer. | |
| void | setRestartDeck () |
| Read data into restart deck and store its pointer. | |
| void | setAbsorbingCondDeck () |
| Read data into absorbing condition deck and store its pointer. | |
| void | setSolverDeck () |
| Read data into solver deck and store its pointer. | |
Private Attributes | |
Internal data | |
| std::string | d_inputFilename |
| Name of input file. | |
Decks | |
| inp::FractureDeck * | d_fractureDeck_p |
| Pointer to deck holding fracture related data. More... | |
| inp::InitialConditionDeck * | d_initialConditionDeck_p |
| Pointer to deck holding initial condition related data. More... | |
| inp::InteriorFlagsDeck * | d_interiorFlagsDeck_p |
| Pointer to deck holding interior flags information. | |
| inp::LoadingDeck * | d_loadingDeck_p |
| Pointer to deck holding loading related data. More... | |
| inp::MassMatrixDeck * | d_massMatrixDeck_p |
| Pointer to deck holding mass matrix calculation related data. More... | |
| inp::MaterialDeck * | d_materialDeck_p |
| Pointer to deck holding material related data. More... | |
| inp::MeshDeck * | d_meshDeck_p |
| Pointer to deck holding geometry related data. More... | |
| inp::ModelDeck * | d_modelDeck_p |
| Pointer to deck holding problem related data. More... | |
| inp::NeighborDeck * | d_neighborDeck_p |
| Pointer to deck holding neighbor list related data. More... | |
| inp::OutputDeck * | d_outputDeck_p |
| Pointer to deck holding output related data. More... | |
| inp::PolicyDeck * | d_policyDeck_p |
| Pointer to deck holding policy related data. More... | |
| inp::QuadratureDeck * | d_quadratureDeck_p |
| Pointer to deck holding quadrature point approximation related data. More... | |
| inp::RestartDeck * | d_restartDeck_p |
| Pointer to deck holding restart related data such as restart filename and restart time step. | |
| inp::SolverDeck * | d_solverDeck_p |
| Pointer to deck holding solver related data. More... | |
| inp::AbsorbingCondDeck * | d_absorbingCondDeck_p |
| Pointer to deck holding absorbing condition related data. | |
A class to read input file.
In this class we read input file and read the data into various decks. Input file is a YAML file.
|
explicit |
Constructor.
| filename | Filename of input file |

| inp::AbsorbingCondDeck * inp::Input::getAbsorbingCondDeck | ( | ) |
Get the pointer to absorbing condition deck.
Referenced by model::FDModel< T >::FDModel().

| inp::FractureDeck * inp::Input::getFractureDeck | ( | ) |
Get the pointer to fracture deck.
| inp::InitialConditionDeck * inp::Input::getInitialConditionDeck | ( | ) |
Get the pointer to initial condition deck.
| inp::InteriorFlagsDeck * inp::Input::getInteriorFlagsDeck | ( | ) |
Get the pointer to interior flags deck.
| inp::LoadingDeck * inp::Input::getLoadingDeck | ( | ) |
Get the pointer to loading deck.
| inp::MassMatrixDeck * inp::Input::getMassMatrixDeck | ( | ) |
Get the pointer to mass matrix deck.
| inp::MaterialDeck * inp::Input::getMaterialDeck | ( | ) |
Get the pointer to material deck.
| inp::MeshDeck * inp::Input::getMeshDeck | ( | ) |
Get the pointer to mesh deck.
| inp::ModelDeck * inp::Input::getModelDeck | ( | ) |
Get the pointer to model deck.
Referenced by model::FDModel< T >::FDModel(), model::Output::Output(), and model::QuasiStaticModel< T >::QuasiStaticModel().

| inp::NeighborDeck * inp::Input::getNeighborDeck | ( | ) |
Get the pointer to neighbor list deck.
Referenced by tools::pp::Compute::Compute().

| inp::OutputDeck * inp::Input::getOutputDeck | ( | ) |
Get the pointer to output deck.
Referenced by model::FDModel< T >::FDModel(), model::Output::Output(), and model::QuasiStaticModel< T >::QuasiStaticModel().

| inp::PolicyDeck * inp::Input::getPolicyDeck | ( | ) |
Get the pointer to policy info deck.
Referenced by model::FDModel< T >::FDModel(), and model::Output::Output().

| inp::QuadratureDeck * inp::Input::getQuadratureDeck | ( | ) |
Get the pointer to quadrature deck.
| inp::RestartDeck * inp::Input::getRestartDeck | ( | ) |
Get the pointer to restart deck.
Referenced by model::FDModel< T >::restart().

| inp::SolverDeck * inp::Input::getSolverDeck | ( | ) |
Get the pointer to solver deck.
| const std::string inp::Input::getSpatialDiscretization | ( | ) |
Get the name of spatial discretization.
Return value can be of four kind:
|
inline |
Prints the information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |

| std::string inp::Input::printStr | ( | int | nt = 0, |
| int | lvl = 0 |
||
| ) | const |
Returns the string containing information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
Referenced by print().


|
private |
Pointer to deck holding fracture related data.
E.g. pre-crack location and orientation, crack-path update frequency, etc
|
private |
Pointer to deck holding initial condition related data.
E.g. initial condition function type for velocity and displacement, parameters to compute initial condition function, projection method or interpolation method, etc
|
private |
Pointer to deck holding loading related data.
E.g. displacement loading information, force loading information, etc
|
private |
Pointer to deck holding mass matrix calculation related data.
E.g. mass matrix approximation type
|
private |
Pointer to deck holding material related data.
E.g. type of material, influence function information, parameters, etc
|
private |
Pointer to deck holding geometry related data.
E.g. dimension, discretization type, mesh file, etc
|
private |
Pointer to deck holding problem related data.
E.g. type of simulation (central-difference, velocity-verlet, implicit) etc
|
private |
Pointer to deck holding neighbor list related data.
E.g. factor of safety, volume correction, etc
|
private |
Pointer to deck holding output related data.
E.g. output frequency, output file format, output element-node connectivity flag, etc
|
private |
Pointer to deck holding policy related data.
E.g. level of restriction in memory allocation, etc
|
private |
Pointer to deck holding quadrature point approximation related data.
E.g. order of approximation, order of approximation for mass matrix
|
private |
Pointer to deck holding solver related data.
E.g. solver parameters like tolerance, maximum iterations, solver type, etc