Go to the documentation of this file.
34 #include <unordered_map>
46 int nMaterialProperties,
53 const double* materialProperties,
54 int nMaterialProperties,
58 const std::string& materialName,
MarmotMaterialFactory()=delete
Definition: MarmotElement.h:34
static std::unordered_map< int, materialFactoryFunction > materialFactoryFunctionByCode
Definition: Marmot.h:63
MarmotElement *(*)(int elementNumber) elementFactoryFunction
Definition: Marmot.h:73
static MarmotMaterial * createMaterial(int materialCode, const double *materialProperties, int nMaterialProperties, int materialNumber)
static int getMaterialCodeFromName(const std::string &materialName)
static MarmotElement * createElement(int elementCode, int elementNumber)
static std::unordered_map< int, elementFactoryFunction > elementFactoryFunctionByCode
Definition: Marmot.h:86
static std::unordered_map< std::string, int > materialNameToCodeAssociation
Definition: Marmot.h:62
Definition: MarmotMaterial.h:32
static bool registerElement(const std::string &elementName, int elementCode, elementFactoryFunction factoryFunction)
static std::unordered_map< std::string, int > elementNameToCodeAssociation
Definition: Marmot.h:85
static bool registerMaterial(int materialCode, const std::string &materialName, materialFactoryFunction factoryFunction)
MarmotMaterial *(*)(const double *materialProperties, int nMaterialProperties, int materialNumber) materialFactoryFunction
Definition: Marmot.h:47
static int getElementCodeFromName(const std::string &elementName)
MarmotElementFactory()=delete