The Kokkos variable object that carries the coupled variable and tag information. More...
#include <KokkosVariable.h>
Public Types | |
| using | CoupleableKey = ::Moose::PassKey<::Coupleable > |
Public Member Functions | |
| Variable ()=default | |
| Default constructor. More... | |
| Variable (const MooseVariableFieldBase &variable, const TagID tag) | |
| Constructor Initialize the variable with a MOOSE variable and vector tag ID. More... | |
| Variable (const MooseVariableFieldBase &variable, const TagName &tag_name=Moose::SOLUTION_TAG) | |
| Constructor Initialize the variable with a MOOSE variable and vector tag name. More... | |
| void | init (const MooseVariableFieldBase &variable, const TagID tag) |
| Initialize the variable with a MOOSE variable and vector tag ID. More... | |
| void | init (const MooseVariableFieldBase &variable, const TagName &tag_name=Moose::SOLUTION_TAG) |
| Initialize the variable with a MOOSE variable and vector tag name. More... | |
| void | init (const std::vector< Real > &values, CoupleableKey) |
| Initialize the variable with coupled default values. More... | |
| const MooseVariableFieldBase * | mooseVar (unsigned int comp=0) |
| Get the MOOSE variable of a component. More... | |
| KOKKOS_FUNCTION bool | initialized () const |
| Get whether the variable is initialized. More... | |
| KOKKOS_FUNCTION bool | coupled () const |
| Get whether the variable is coupled. More... | |
| KOKKOS_FUNCTION bool | nodal () const |
| Get whether the variable is nodal. More... | |
| KOKKOS_FUNCTION bool | dot () const |
| Get whether the tag is time derivative. More... | |
| KOKKOS_FUNCTION bool | old () const |
| Get whether the tag is old/older value. More... | |
| KOKKOS_FUNCTION unsigned int | components () |
| Get the number of components. More... | |
| KOKKOS_FUNCTION TagID | tag () const |
| Get the vector tag ID. More... | |
| KOKKOS_FUNCTION unsigned int | var (unsigned int comp=0) const |
| Get the variable number of a component. More... | |
| KOKKOS_FUNCTION unsigned int | sys (unsigned int comp=0) const |
| Get the system number of a component. More... | |
| KOKKOS_FUNCTION Real | value (unsigned int comp=0) const |
| Get the default value of a component. More... | |
| Variable (const std::vector< const MooseVariableFieldBase *> &variables, const TagID tag) | |
| Constructor Initialize the variable with multiple MOOSE variables and vector tag ID. More... | |
| Variable (const std::vector< MooseVariableFieldBase *> &variables, const TagID tag) | |
| Variable (const std::vector< const MooseVariableFieldBase *> &variables, const TagName &tag_name=Moose::SOLUTION_TAG) | |
| Constructor Initialize the variable with multiple MOOSE variables and vector tag name. More... | |
| Variable (const std::vector< MooseVariableFieldBase *> &variables, const TagName &tag_name=Moose::SOLUTION_TAG) | |
| void | init (const std::vector< const MooseVariableFieldBase *> &variables, const TagID tag) |
| Initialize the variable with multiple MOOSE variables and vector tag ID. More... | |
| void | init (const std::vector< MooseVariableFieldBase *> &variables, const TagID tag) |
| void | init (const std::vector< const MooseVariableFieldBase *> &variables, const TagName &tag_name=Moose::SOLUTION_TAG) |
| Initialize the variable with multiple MOOSE variables and vector tag name. More... | |
| void | init (const std::vector< MooseVariableFieldBase *> &variables, const TagName &tag_name=Moose::SOLUTION_TAG) |
Private Attributes | |
| bool | _initialized = false |
| Whether the variable is initialized. More... | |
| bool | _coupled = false |
| Whether the variable is coupled. More... | |
| bool | _nodal = false |
| Whether the variable is nodal. More... | |
| bool | _dot = false |
| Whether the tag is time derivative. More... | |
| bool | _old = false |
| Whether the tag is old/older value. More... | |
| unsigned int | _components = 1 |
| Number of components. More... | |
| TagID | _tag = Moose::INVALID_TAG_ID |
| Vector tag ID. More... | |
| Array< const MooseVariableFieldBase * > | _moose_var |
| MOOSE variable of each component. More... | |
| Array< unsigned int > | _var |
| Variable number of each component. More... | |
| Array< unsigned int > | _sys |
| System number of each component. More... | |
| Array< Real > | _default_value |
| Default value of each component when the variable is not coupled. More... | |
The Kokkos variable object that carries the coupled variable and tag information.
Definition at line 26 of file KokkosVariable.h.
Definition at line 29 of file KokkosVariable.h.
|
default |
Default constructor.
|
inline |
Constructor Initialize the variable with a MOOSE variable and vector tag ID.
| variable | The MOOSE variable |
| tag | The vector tag ID |
Definition at line 41 of file KokkosVariable.h.
|
inline |
Constructor Initialize the variable with a MOOSE variable and vector tag name.
| variable | The MOOSE variable |
| tag_name | The vector tag name |
Definition at line 48 of file KokkosVariable.h.
|
inline |
Constructor Initialize the variable with multiple MOOSE variables and vector tag ID.
| variables | The MOOSE variables |
| tag | The vector tag ID |
Definition at line 59 of file KokkosVariable.h.
|
inline |
Definition at line 63 of file KokkosVariable.h.
|
inline |
Constructor Initialize the variable with multiple MOOSE variables and vector tag name.
| variables | The MOOSE variables |
| tag | The vector tag ID |
Definition at line 75 of file KokkosVariable.h.
|
inline |
Definition at line 80 of file KokkosVariable.h.
|
inline |
Get the number of components.
Definition at line 164 of file KokkosVariable.h.
Referenced by Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl(), and Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
|
inline |
Get whether the variable is coupled.
Definition at line 144 of file KokkosVariable.h.
Referenced by Moose::Kokkos::VariableValueTempl< is_ad >::operator bool(), Moose::Kokkos::VariableGradientTempl< is_ad >::operator bool(), Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl(), and Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
|
inline |
Get whether the tag is time derivative.
Definition at line 154 of file KokkosVariable.h.
Referenced by Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl(), and Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
| void Moose::Kokkos::Variable::init | ( | const MooseVariableFieldBase & | variable, |
| const TagID | tag | ||
| ) |
Initialize the variable with a MOOSE variable and vector tag ID.
| variable | The MOOSE variable |
| tag | The vector tag ID |
Referenced by Variable().
| void Moose::Kokkos::Variable::init | ( | const MooseVariableFieldBase & | variable, |
| const TagName & | tag_name = Moose::SOLUTION_TAG |
||
| ) |
Initialize the variable with a MOOSE variable and vector tag name.
| variable | The MOOSE variable |
| tag_name | The vector tag name |
| void Moose::Kokkos::Variable::init | ( | const std::vector< const MooseVariableFieldBase *> & | variables, |
| const TagID | tag | ||
| ) |
Initialize the variable with multiple MOOSE variables and vector tag ID.
| variables | The MOOSE variables |
| tag | The vector tag ID |
| void Moose::Kokkos::Variable::init | ( | const std::vector< MooseVariableFieldBase *> & | variables, |
| const TagID | tag | ||
| ) |
| void Moose::Kokkos::Variable::init | ( | const std::vector< const MooseVariableFieldBase *> & | variables, |
| const TagName & | tag_name = Moose::SOLUTION_TAG |
||
| ) |
Initialize the variable with multiple MOOSE variables and vector tag name.
| variables | The MOOSE variables |
| tag_name | The vector tag name |
| void Moose::Kokkos::Variable::init | ( | const std::vector< MooseVariableFieldBase *> & | variables, |
| const TagName & | tag_name = Moose::SOLUTION_TAG |
||
| ) |
| void Moose::Kokkos::Variable::init | ( | const std::vector< Real > & | values, |
| CoupleableKey | |||
| ) |
Initialize the variable with coupled default values.
| values | The default coupled values |
|
inline |
Get whether the variable is initialized.
Definition at line 139 of file KokkosVariable.h.
|
inline |
Get the MOOSE variable of a component.
| comp | The variable component |
Definition at line 130 of file KokkosVariable.h.
Referenced by Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl(), and Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
|
inline |
Get whether the variable is nodal.
Definition at line 149 of file KokkosVariable.h.
Referenced by Moose::Kokkos::Datum::isNodalDefined().
|
inline |
Get whether the tag is old/older value.
Definition at line 159 of file KokkosVariable.h.
Referenced by Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl(), and Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
Get the system number of a component.
| comp | The variable component |
Definition at line 181 of file KokkosVariable.h.
Referenced by Moose::Kokkos::ResidualObject::accumulateTaggedElementalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedElementalResidual(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalResidual(), KokkosCopyValueAux::computeElementInternal(), KokkosCopyValueAux::computeNodeInternal(), Moose::Kokkos::Datum::isNodalDefined(), Moose::Kokkos::ADNodalBC::operator()(), Moose::Kokkos::AuxKernel::operator()(), Moose::Kokkos::NodalBC::operator()(), Moose::Kokkos::NodalKernel::operator()(), Moose::Kokkos::Kernel::operator()(), Moose::Kokkos::IntegratedBC::operator()(), Moose::Kokkos::AuxKernel::setElementSolution(), and Moose::Kokkos::AuxKernel::setNodeSolution().
|
inline |
Get the vector tag ID.
Definition at line 169 of file KokkosVariable.h.
Referenced by KokkosCopyValueAux::computeElementInternal(), KokkosCopyValueAux::computeNodeInternal(), Moose::Kokkos::AuxKernel::setElementSolution(), Moose::Kokkos::AuxKernel::setNodeSolution(), and Variable().
Get the default value of a component.
| comp | The variable component |
Definition at line 187 of file KokkosVariable.h.
Get the variable number of a component.
| comp | The variable component |
Definition at line 175 of file KokkosVariable.h.
Referenced by Moose::Kokkos::ResidualObject::accumulateTaggedElementalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedElementalResidual(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalMatrix(), Moose::Kokkos::ResidualObject::accumulateTaggedNodalResidual(), KokkosCopyValueAux::computeElementInternal(), KokkosCopyValueAux::computeNodeInternal(), Moose::Kokkos::Datum::isNodalDefined(), Moose::Kokkos::ADNodalBC::operator()(), Moose::Kokkos::ADKernel::operator()(), Moose::Kokkos::ADIntegratedBC::operator()(), Moose::Kokkos::AuxKernel::operator()(), Moose::Kokkos::NodalBC::operator()(), Moose::Kokkos::NodalKernel::operator()(), Moose::Kokkos::IntegratedBC::operator()(), Moose::Kokkos::Kernel::operator()(), Moose::Kokkos::AuxKernel::setElementSolution(), Moose::Kokkos::AuxKernel::setNodeSolution(), Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl(), and Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
|
private |
|
private |
Whether the variable is coupled.
Definition at line 202 of file KokkosVariable.h.
Default value of each component when the variable is not coupled.
Definition at line 238 of file KokkosVariable.h.
Referenced by value().
|
private |
Whether the tag is time derivative.
Definition at line 210 of file KokkosVariable.h.
Referenced by dot().
|
private |
Whether the variable is initialized.
Definition at line 198 of file KokkosVariable.h.
Referenced by initialized().
|
private |
MOOSE variable of each component.
Definition at line 226 of file KokkosVariable.h.
Referenced by mooseVar().
|
private |
Whether the variable is nodal.
Definition at line 206 of file KokkosVariable.h.
Referenced by nodal().
|
private |
Whether the tag is old/older value.
Definition at line 214 of file KokkosVariable.h.
Referenced by old().
System number of each component.
Definition at line 234 of file KokkosVariable.h.
Referenced by sys().
|
private |
Variable number of each component.
Definition at line 230 of file KokkosVariable.h.
Referenced by var().
1.8.14