Process to read constitutive law and material properties from a json file.
More...
#include <read_materials_utility.h>
Process to read constitutive law and material properties from a json file.
This process reads constitutive law and material properties from a json file and assign them to elements and conditions. The definition includes the creation of subproperties
- Author
- Marcelo Raschi
-
Vicente Mataix Ferrandiz
◆ IndexType
Definition of the index type.
◆ SizeType
Definition of the size type.
◆ ReadMaterialsUtility() [1/3]
Kratos::ReadMaterialsUtility::ReadMaterialsUtility |
( |
Model & |
rModel | ) |
|
|
inline |
Default constructor.
- Parameters
-
rModel | The model containing the problem to solve |
◆ ReadMaterialsUtility() [2/3]
Kratos::ReadMaterialsUtility::ReadMaterialsUtility |
( |
Parameters |
Params, |
|
|
Model & |
rModel |
|
) |
| |
Constructor reading directly from file, via parameters.
- Parameters
-
Params | The configuration parameters telling where the configuration file can be found |
rModel | The model containing the problem to solve |
◆ ReadMaterialsUtility() [3/3]
Kratos::ReadMaterialsUtility::ReadMaterialsUtility |
( |
const std::string & |
rParametersName, |
|
|
Model & |
rModel |
|
) |
| |
Constructor reading directly from file, via text.
- Parameters
-
Params | The string telling where the configuration file can be found |
rModel | The model containing the problem to solve |
◆ ~ReadMaterialsUtility()
virtual Kratos::ReadMaterialsUtility::~ReadMaterialsUtility |
( |
| ) |
|
|
inlinevirtual |
◆ AssignAccessorsToProperty()
void Kratos::ReadMaterialsUtility::AssignAccessorsToProperty |
( |
const Parameters |
MaterialData, |
|
|
Properties & |
rProperty |
|
) |
| |
This method assigns the accessors to a property from configuration parameters.
- Parameters
-
MaterialData | The parameters containing all the configurations of the materials |
rProperty | The reference to the property for which the materials are to be assigned |
◆ AssignConstitutiveLawToProperty()
void Kratos::ReadMaterialsUtility::AssignConstitutiveLawToProperty |
( |
const Parameters |
MaterialData, |
|
|
Properties & |
rProperty |
|
) |
| |
|
virtual |
This method assigns the constitutive law to a property from configuration parameters.
- Parameters
-
MaterialData | The parameters containing all the configurations of the materials |
rProperty | The reference to the property for which the materials are to be assigned |
◆ AssignMaterialToProperty()
void Kratos::ReadMaterialsUtility::AssignMaterialToProperty |
( |
const Parameters |
MaterialData, |
|
|
Properties & |
rProperty |
|
) |
| |
|
virtual |
This method assigns the material parameters to a property from configuration parameters.
- Parameters
-
MaterialData | The parameters containing all the configurations of the materials |
rProperty | The reference to the property for which the materials are to be assigned |
◆ AssignTablesToProperty()
void Kratos::ReadMaterialsUtility::AssignTablesToProperty |
( |
const Parameters |
MaterialData, |
|
|
Properties & |
rProperty |
|
) |
| |
|
virtual |
This method assigns the tables to a property from configuration parameters.
- Parameters
-
MaterialData | The parameters containing all the configurations of the materials |
rProperty | The reference to the property for which the materials are to be assigned |
◆ AssignVariablesToProperty()
void Kratos::ReadMaterialsUtility::AssignVariablesToProperty |
( |
const Parameters |
MaterialData, |
|
|
Properties & |
rProperty |
|
) |
| |
|
virtual |
This method assigns the variables to a property from configuration parameters.
- Parameters
-
MaterialData | The parameters containing all the configurations of the materials |
rProperty | The reference to the property for which the materials are to be assigned |
◆ FilterVariables()
This method creates an auxiliar Parameters when reading properties in order to avoid error, so these non-registered properties can be processed later.
- Parameters
-
VariablesParameters | The original variable parameters |
PropertyId | The current property Id (for a warning) |
- Returns
- The variables filtered if required
◆ Info()
std::string Kratos::ReadMaterialsUtility::Info |
( |
| ) |
const |
|
inline |
Turn back information as a string.
◆ KRATOS_CLASS_POINTER_DEFINITION()
Pointer definition of ReadMaterialProcess.
◆ PrintData()
void Kratos::ReadMaterialsUtility::PrintData |
( |
std::ostream & |
rOStream | ) |
const |
|
inline |
◆ PrintInfo()
void Kratos::ReadMaterialsUtility::PrintInfo |
( |
std::ostream & |
rOStream | ) |
const |
|
inline |
Print information about this object.
◆ ReadMaterials()
void Kratos::ReadMaterialsUtility::ReadMaterials |
( |
Parameters |
MaterialData | ) |
|
This reads the properties from parameters.
- Parameters
-
MaterialData | The configuration parameters defining the properties |
◆ TrimComponentName()
void Kratos::ReadMaterialsUtility::TrimComponentName |
( |
std::string & |
rLine | ) |
|
|
protected |
Trims out a component name, separating by '.".
Trims out a component name, removing unnecessary module information. For backward compatibility. Ex: KratosMultiphysics.YOUNG_MODULUS -> YOUNG_MODULUS Ex: KratosMultiphysics.StructuralMechanicsApplication.LinearElastic3D -> LinearElastic3D
- Parameters
-
rLine | Component name in materials json file |
The documentation for this class was generated from the following files: