#include <DerivativeMaterialInterface.h>
Public Types | |
typedef MooseADWrapper< T, is_ad > | value_type |
typedef unsigned int | id_type |
The type for a material property ID. More... | |
Public Member Functions | |
MaterialProperty (const PropertyValue::id_type id=PropertyValue::invalid_property_id) | |
bool | isAD () const override final |
const MooseArray< MooseADWrapper< T, is_ad > > & | get () const |
MooseArray< MooseADWrapper< T, is_ad > > & | set () |
virtual const std::string & | type () const override final |
String identifying the type of parameter stored. More... | |
virtual void | resize (const std::size_t size) override final |
Resizes the property to the size n. More... | |
virtual unsigned int | size () const override final |
MooseADWrapper< T, is_ad > & | operator[] (const unsigned int i) |
Get element i out of the array as a writeable reference. More... | |
const MooseADWrapper< T, is_ad > & | operator[] (const unsigned int i) const |
Get element i out of the array as a ready-only reference. More... | |
virtual void | qpCopy (const unsigned int to_qp, const PropertyValue &rhs, const unsigned int from_qp) override final |
Copy the value of a Property from one specific to a specific qp in this Property. More... | |
virtual void | store (std::ostream &stream) override final |
Store the property into a binary stream. More... | |
virtual void | load (std::istream &stream) override final |
Load the property from a binary stream. More... | |
virtual void | swap (PropertyValue &rhs) override final |
const std::type_info & | typeID () const override final |
virtual std::unique_ptr< PropertyValue > | clone (const std::size_t size) const override final |
id_type | id () const |
Static Public Attributes | |
static constexpr id_type | invalid_property_id = std::numeric_limits<id_type>::max() - 1 |
The material property ID for an invalid property We only have this because there are a few cases where folks want to instantiate their own fake materials, and we should at least force them to be consistent. More... | |
Protected Attributes | |
MooseArray< MooseADWrapper< T, is_ad > > | _value |
Stored parameter value. More... | |
const id_type | _id |
The material property ID. More... | |
Private Member Functions | |
MaterialProperty (const MaterialProperty< T > &) | |
private copy constructor to avoid shallow copying of material properties More... | |
MaterialProperty< T > & | operator= (const MaterialProperty< T > &) |
private assignment operator to avoid shallow copying of material properties More... | |
Definition at line 25 of file DerivativeMaterialInterface.h.
|
inherited |
The type for a material property ID.
Definition at line 42 of file MaterialProperty.h.
|
inherited |
Definition at line 113 of file MaterialProperty.h.
|
inline |
Definition at line 344 of file MaterialProperty.h.
|
inlineprivate |
private copy constructor to avoid shallow copying of material properties
Definition at line 351 of file MaterialProperty.h.
|
finaloverridevirtualinherited |
Note that this will only ever return a non-AD clone, even if this property is an AD property. This is on purpose; whenever we need clones, it's for older states in which we don't store derivatives beacuse it's too expensive.
Implements PropertyValue.
Definition at line 332 of file MaterialProperty.h.
|
inlineinherited |
Definition at line 122 of file MaterialProperty.h.
|
inlineinherited |
Definition at line 56 of file MaterialProperty.h.
Referenced by MaterialPropertyBase< T, false >::swap().
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
Load the property from a binary stream.
Implements PropertyValue.
Definition at line 280 of file MaterialProperty.h.
|
inlineprivate |
private assignment operator to avoid shallow copying of material properties
Definition at line 357 of file MaterialProperty.h.
|
inlineinherited |
Get element i out of the array as a writeable reference.
Definition at line 144 of file MaterialProperty.h.
|
inlineinherited |
Get element i out of the array as a ready-only reference.
Definition at line 149 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Copy the value of a Property from one specific to a specific qp in this Property.
to_qp | The quadrature point in this Property that you want to copy to. |
rhs | The Property you want to copy from. |
from_qp | The quadrature point in rhs you want to copy from. |
Implements PropertyValue.
Definition at line 258 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Resizes the property to the size n.
Implements PropertyValue.
Definition at line 251 of file MaterialProperty.h.
|
inlineinherited |
Definition at line 127 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Implements PropertyValue.
Definition at line 139 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Store the property into a binary stream.
Implements PropertyValue.
Definition at line 272 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Implements PropertyValue.
Definition at line 288 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
String identifying the type of parameter stored.
Implements PropertyValue.
Definition at line 243 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Implements PropertyValue.
Definition at line 324 of file MaterialProperty.h.
|
protectedinherited |
The material property ID.
Definition at line 102 of file MaterialProperty.h.
Referenced by PropertyValue::id().
|
protectedinherited |
Stored parameter value.
Definition at line 200 of file MaterialProperty.h.
|
staticinherited |
The material property ID for an invalid property We only have this because there are a few cases where folks want to instantiate their own fake materials, and we should at least force them to be consistent.
Definition at line 51 of file MaterialProperty.h.