#include <Material.h>

Public Member Functions | |
| void | addEquationProperty (std::string_view name, const AMP::Units &unit, std::string expression, std::vector< std::string > args={}, std::vector< std::array< double, 2 > > ranges={}, std::vector< AMP::Units > argUnits={}, std::string_view source="") |
| Add an equation based propoerty. | |
| void | addPolynomialProperty (std::string_view name, const AMP::Units &unit={}, std::vector< double > params={}, std::vector< std::string > args={}, std::vector< std::array< double, 2 > > ranges={}, std::vector< AMP::Units > argUnits={}, std::string_view source="") |
| Add a polynomial based property. | |
| template<class PROPERTY , typename... Args> | |
| void | addProperty (std::string_view name, Args &&...args) |
| template<class PROPERTY > | |
| void | addProperty (std::string_view name, std::shared_ptr< PROPERTY > property) |
| Add a property. | |
| void | addScalarProperty (std::string_view name, AMP::Array< double > value, const AMP::Units &unit=AMP::Units(), std::string_view source="") |
| Add a constant-value fixed property. | |
| void | addScalarProperty (std::string_view name, double value, const AMP::Units &unit=AMP::Units(), std::string_view source="") |
| Add a constant-value fixed property. | |
| void | addStringProperty (std::string_view name, std::string value, std::string_view source="") |
| Add a constant-value fixed property. | |
| bool | hasProperty (const std::string &type) const |
| check if a property exists in the material | |
| std::vector< std::string > | list () const |
| return a list of all properties in this material | |
| Material ()=default | |
| Default constructor. | |
| virtual std::string | materialName () const =0 |
| Return the name of the material. | |
| std::shared_ptr< Property > | property (const std::string &type) |
| Get the desired property. | |
| std::shared_ptr< const Property > | property (const std::string &type) const |
| Get the desired property. | |
| virtual | ~Material ()=default |
| Default destructor. | |
Protected Attributes | |
| std::map< std::string, std::shared_ptr< Property > > | d_propertyMap |
| database of scalar properties | |
Material base class. Loose organizer to collect a group of properties.
Definition at line 20 of file Material.h.
|
default |
Default constructor.
|
virtualdefault |
Default destructor.
| void AMP::Materials::Material::addEquationProperty | ( | std::string_view | name, |
| const AMP::Units & | unit, | ||
| std::string | expression, | ||
| std::vector< std::string > | args = {}, |
||
| std::vector< std::array< double, 2 > > | ranges = {}, |
||
| std::vector< AMP::Units > | argUnits = {}, |
||
| std::string_view | source = "" |
||
| ) |
Add an equation based propoerty.
| void AMP::Materials::Material::addPolynomialProperty | ( | std::string_view | name, |
| const AMP::Units & | unit = {}, |
||
| std::vector< double > | params = {}, |
||
| std::vector< std::string > | args = {}, |
||
| std::vector< std::array< double, 2 > > | ranges = {}, |
||
| std::vector< AMP::Units > | argUnits = {}, |
||
| std::string_view | source = "" |
||
| ) |
Add a polynomial based property.
|
inline |
Definition at line 63 of file Material.h.
References d_propertyMap, and materialName().
|
inline |
| void AMP::Materials::Material::addScalarProperty | ( | std::string_view | name, |
| AMP::Array< double > | value, | ||
| const AMP::Units & | unit = AMP::Units(), |
||
| std::string_view | source = "" |
||
| ) |
Add a constant-value fixed property.
| void AMP::Materials::Material::addScalarProperty | ( | std::string_view | name, |
| double | value, | ||
| const AMP::Units & | unit = AMP::Units(), |
||
| std::string_view | source = "" |
||
| ) |
Add a constant-value fixed property.
| void AMP::Materials::Material::addStringProperty | ( | std::string_view | name, |
| std::string | value, | ||
| std::string_view | source = "" |
||
| ) |
Add a constant-value fixed property.
| bool AMP::Materials::Material::hasProperty | ( | const std::string & | type | ) | const |
check if a property exists in the material
| std::vector< std::string > AMP::Materials::Material::list | ( | ) | const |
return a list of all properties in this material
|
pure virtual |
Return the name of the material.
Implemented in AMP::Materials::DatabaseMaterial, AMP::Materials::CylindricallySymmetric, AMP::Materials::Dr_nonlinear, AMP::Materials::FixedClad, AMP::Materials::FixedFuel, AMP::Materials::Independent, AMP::Materials::Ox_MSRZC_09, AMP::Materials::Steel316_MSRZC_09, AMP::Materials::UO2_MSRZC_09, and AMP::Materials::WaterLibrary.
Referenced by addProperty().
| std::shared_ptr< Property > AMP::Materials::Material::property | ( | const std::string & | type | ) |
Get the desired property.
Return a shared_ptr to the desired property if it exists. If it does not exist, return a nullptr.
| type | Name of desired property |
Referenced by addProperty().
| std::shared_ptr< const Property > AMP::Materials::Material::property | ( | const std::string & | type | ) | const |
Get the desired property.
Return a shared_ptr to the desired property if it exists. If it does not exist, return a nullptr.
| type | Name of desired property |
|
protected |
database of scalar properties
Definition at line 107 of file Material.h.
Referenced by addProperty(), and addProperty().
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:43. Comments on this page |