Centralized collection of material parameters. More...
#include <QCAD_MaterialDatabase.hpp>
Public Member Functions | |
MaterialDatabase (const std::string &inputFile, const Teuchos::RCP< const Epetra_Comm > &ecomm) | |
Default constructor. | |
~MaterialDatabase () | |
Destructor. | |
bool | isParam (const std::string ¶mName) |
Get a parameter / check existence. | |
template<typename T > | |
T | getParam (const std::string ¶mName) |
template<typename T > | |
T | getParam (const std::string ¶mName, T def_val) |
bool | isMaterialParam (const std::string &materialName, const std::string ¶mName) |
Get a parameter for a particular material. | |
template<typename T > | |
T | getMaterialParam (const std::string &materialName, const std::string ¶mName) |
template<typename T > | |
T | getMaterialParam (const std::string &materialName, const std::string ¶mName, T def_val) |
bool | isNodeSetParam (const std::string &materialName, const std::string ¶mName) |
Get a parameter for a particular node set. | |
template<typename T > | |
T | getNodeSetParam (const std::string &materialName, const std::string ¶mName) |
template<typename T > | |
T | getNodeSetParam (const std::string &materialName, const std::string ¶mName, T def_val) |
bool | isSideSetParam (const std::string &materialName, const std::string ¶mName) |
Get a parameter for a particular side set. | |
template<typename T > | |
T | getSideSetParam (const std::string &materialName, const std::string ¶mName) |
template<typename T > | |
T | getSideSetParam (const std::string &materialName, const std::string ¶mName, T def_val) |
bool | isElementBlockParam (const std::string &ebName, const std::string ¶mName) |
Get a parameter for a particular element block (or assoc. material if paramName is not in element bloc). | |
template<typename T > | |
T | getElementBlockParam (const std::string &ebName, const std::string ¶mName) |
template<typename T > | |
T | getElementBlockParam (const std::string &ebName, const std::string ¶mName, T def_val) |
bool | isElementBlockSublist (const std::string &ebName, const std::string &subListName) |
Get a sublist from a particular element block. | |
Teuchos::ParameterList & | getElementBlockSublist (const std::string &ebName, const std::string &subListName) |
template<typename T > | |
std::vector< T > | getAllMatchingParams (const std::string ¶mName) |
Get a vector of the value of all parameters in the entire list with name == paramName. | |
Private Member Functions | |
template<typename T > | |
void | getAllMatchingParams_helper (const std::string ¶mName, std::vector< T > &results, Teuchos::ParameterList &pList) |
std::string | translateDBSublistName (Teuchos::ParameterList *, const std::string &) |
MaterialDatabase (const MaterialDatabase &) | |
Private to prohibit copying. | |
MaterialDatabase & | operator= (const MaterialDatabase &) |
Private to prohibit copying. | |
Private Attributes | |
Teuchos::ParameterList | data_ |
Encapsulated parameter list which holds all the data. | |
Teuchos::ParameterList * | pMaterialsList_ |
Teuchos::ParameterList * | pEBList_ |
Teuchos::ParameterList * | pNSList_ |
Teuchos::ParameterList * | pSSList_ |
Centralized collection of material parameters.
Definition at line 18 of file QCAD_MaterialDatabase.hpp.
QCAD::MaterialDatabase::MaterialDatabase | ( | const std::string & | inputFile, | |
const Teuchos::RCP< const Epetra_Comm > & | ecomm | |||
) |
Default constructor.
Definition at line 13 of file QCAD_MaterialDatabase.cpp.
QCAD::MaterialDatabase::~MaterialDatabase | ( | ) |
Destructor.
Definition at line 55 of file QCAD_MaterialDatabase.cpp.
QCAD::MaterialDatabase::MaterialDatabase | ( | const MaterialDatabase & | ) | [private] |
Private to prohibit copying.
bool QCAD::MaterialDatabase::isParam | ( | const std::string & | paramName | ) |
Get a parameter / check existence.
Definition at line 75 of file QCAD_MaterialDatabase.cpp.
template bool QCAD::MaterialDatabase::getParam< bool > | ( | const std::string & | paramName | ) |
Definition at line 62 of file QCAD_MaterialDatabase.cpp.
T QCAD::MaterialDatabase::getParam | ( | const std::string & | paramName, | |
T | def_val | |||
) |
Definition at line 69 of file QCAD_MaterialDatabase.cpp.
bool QCAD::MaterialDatabase::isMaterialParam | ( | const std::string & | materialName, | |
const std::string & | paramName | |||
) |
Get a parameter for a particular material.
Definition at line 120 of file QCAD_MaterialDatabase.cpp.
template bool QCAD::MaterialDatabase::getMaterialParam< bool > | ( | const std::string & | materialName, | |
const std::string & | paramName | |||
) |
Definition at line 84 of file QCAD_MaterialDatabase.cpp.
T QCAD::MaterialDatabase::getMaterialParam | ( | const std::string & | materialName, | |
const std::string & | paramName, | |||
T | def_val | |||
) |
Definition at line 103 of file QCAD_MaterialDatabase.cpp.
bool QCAD::MaterialDatabase::isNodeSetParam | ( | const std::string & | materialName, | |
const std::string & | paramName | |||
) |
Get a parameter for a particular node set.
Definition at line 169 of file QCAD_MaterialDatabase.cpp.
template bool QCAD::MaterialDatabase::getNodeSetParam< bool > | ( | const std::string & | materialName, | |
const std::string & | paramName | |||
) |
Definition at line 133 of file QCAD_MaterialDatabase.cpp.
T QCAD::MaterialDatabase::getNodeSetParam | ( | const std::string & | materialName, | |
const std::string & | paramName, | |||
T | def_val | |||
) |
Definition at line 152 of file QCAD_MaterialDatabase.cpp.
bool QCAD::MaterialDatabase::isSideSetParam | ( | const std::string & | materialName, | |
const std::string & | paramName | |||
) |
Get a parameter for a particular side set.
Definition at line 219 of file QCAD_MaterialDatabase.cpp.
template bool QCAD::MaterialDatabase::getSideSetParam< bool > | ( | const std::string & | materialName, | |
const std::string & | paramName | |||
) |
Definition at line 183 of file QCAD_MaterialDatabase.cpp.
T QCAD::MaterialDatabase::getSideSetParam | ( | const std::string & | materialName, | |
const std::string & | paramName, | |||
T | def_val | |||
) |
Definition at line 202 of file QCAD_MaterialDatabase.cpp.
bool QCAD::MaterialDatabase::isElementBlockParam | ( | const std::string & | ebName, | |
const std::string & | paramName | |||
) |
Get a parameter for a particular element block (or assoc. material if paramName is not in element bloc).
Definition at line 414 of file QCAD_MaterialDatabase.cpp.
template bool QCAD::MaterialDatabase::getElementBlockParam< bool > | ( | const std::string & | ebName, | |
const std::string & | paramName | |||
) |
Definition at line 233 of file QCAD_MaterialDatabase.cpp.
T QCAD::MaterialDatabase::getElementBlockParam | ( | const std::string & | ebName, | |
const std::string & | paramName, | |||
T | def_val | |||
) |
Definition at line 381 of file QCAD_MaterialDatabase.cpp.
bool QCAD::MaterialDatabase::isElementBlockSublist | ( | const std::string & | ebName, | |
const std::string & | subListName | |||
) |
Get a sublist from a particular element block.
Definition at line 438 of file QCAD_MaterialDatabase.cpp.
Teuchos::ParameterList & QCAD::MaterialDatabase::getElementBlockSublist | ( | const std::string & | ebName, | |
const std::string & | subListName | |||
) |
Definition at line 320 of file QCAD_MaterialDatabase.cpp.
template std::vector< std::string > QCAD::MaterialDatabase::getAllMatchingParams | ( | const std::string & | paramName | ) |
Get a vector of the value of all parameters in the entire list with name == paramName.
Definition at line 465 of file QCAD_MaterialDatabase.cpp.
void QCAD::MaterialDatabase::getAllMatchingParams_helper | ( | const std::string & | paramName, | |
std::vector< T > & | results, | |||
Teuchos::ParameterList & | pList | |||
) | [private] |
Definition at line 474 of file QCAD_MaterialDatabase.cpp.
std::string QCAD::MaterialDatabase::translateDBSublistName | ( | Teuchos::ParameterList * | list, | |
const std::string & | listname | |||
) | [private] |
Definition at line 279 of file QCAD_MaterialDatabase.cpp.
MaterialDatabase& QCAD::MaterialDatabase::operator= | ( | const MaterialDatabase & | ) | [private] |
Private to prohibit copying.
Teuchos::ParameterList QCAD::MaterialDatabase::data_ [private] |
Encapsulated parameter list which holds all the data.
Definition at line 92 of file QCAD_MaterialDatabase.hpp.
Teuchos::ParameterList* QCAD::MaterialDatabase::pMaterialsList_ [private] |
Definition at line 93 of file QCAD_MaterialDatabase.hpp.
Teuchos::ParameterList* QCAD::MaterialDatabase::pEBList_ [private] |
Definition at line 94 of file QCAD_MaterialDatabase.hpp.
Teuchos::ParameterList* QCAD::MaterialDatabase::pNSList_ [private] |
Definition at line 95 of file QCAD_MaterialDatabase.hpp.
Teuchos::ParameterList* QCAD::MaterialDatabase::pSSList_ [private] |
Definition at line 96 of file QCAD_MaterialDatabase.hpp.