#include <MaterialProperty.h>
Public Types | |
typedef Moose::GenericType< T, is_ad > | value_type |
typedef unsigned int | id_type |
The type for a material property ID. More... | |
Public Member Functions | |
ADMaterialProperty (const PropertyValue::id_type id=PropertyValue::invalid_property_id) | |
bool | isAD () const override final |
const MooseArray< Moose::GenericType< T, is_ad > > & | get () const |
MooseArray< Moose::GenericType< 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 |
Moose::GenericType< T, is_ad > & | operator[] (const unsigned int i) |
Get element i out of the array as a writeable reference. More... | |
const Moose::GenericType< 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< Moose::GenericType< T, is_ad > > | _value |
Stored parameter value. More... | |
const id_type | _id |
The material property ID. More... | |
Private Member Functions | |
ADMaterialProperty (const ADMaterialProperty< T > &) | |
private copy constructor to avoid shallow copying of material properties More... | |
ADMaterialProperty< T > & | operator= (const ADMaterialProperty< T > &) |
private assignment operator to avoid shallow copying of material properties More... | |
Definition at line 205 of file MaterialProperty.h.
|
inherited |
The type for a material property ID.
Definition at line 41 of file MaterialProperty.h.
|
inherited |
Definition at line 112 of file MaterialProperty.h.
|
inline |
Definition at line 368 of file MaterialProperty.h.
|
inlineprivate |
private copy constructor to avoid shallow copying of material properties
Definition at line 377 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 333 of file MaterialProperty.h.
|
inlineinherited |
Definition at line 121 of file MaterialProperty.h.
|
inlineinherited |
Definition at line 55 of file MaterialProperty.h.
Referenced by MaterialPropertyBase< T, false >::swap().
|
inlinefinaloverridevirtualinherited |
|
inlinefinaloverridevirtualinherited |
Load the property from a binary stream.
Implements PropertyValue.
Definition at line 281 of file MaterialProperty.h.
|
inlineprivate |
private assignment operator to avoid shallow copying of material properties
Definition at line 383 of file MaterialProperty.h.
|
inlineinherited |
Get element i out of the array as a writeable reference.
Definition at line 143 of file MaterialProperty.h.
|
inlineinherited |
Get element i out of the array as a ready-only reference.
Definition at line 148 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 257 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Resizes the property to the size n.
Implements PropertyValue.
Definition at line 250 of file MaterialProperty.h.
|
inlineinherited |
Definition at line 126 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Implements PropertyValue.
Definition at line 138 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Store the property into a binary stream.
Implements PropertyValue.
Definition at line 273 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Implements PropertyValue.
Definition at line 289 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
String identifying the type of parameter stored.
Implements PropertyValue.
Definition at line 242 of file MaterialProperty.h.
|
inlinefinaloverridevirtualinherited |
Implements PropertyValue.
Definition at line 325 of file MaterialProperty.h.
|
protectedinherited |
The material property ID.
Definition at line 101 of file MaterialProperty.h.
Referenced by PropertyValue::id().
|
protectedinherited |
Stored parameter value.
Definition at line 199 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 50 of file MaterialProperty.h.