Array variable on the cells of a mesh material. For now, this class is only instantiated for cells. More...
#include <arcane/core/materials/MeshEnvironmentVariableRef.h>
Public Types | |
| using | DataType = DataType_ |
| using | PrivatePartType = IArrayMeshMaterialVariable<Cell, DataType> |
| using | ItemType = Cell |
| using | GlobalVariableRefType = MeshVariableArrayRefT<ItemType, DataType> |
| using | ThatClass = CellEnvironmentVariableArrayRef<DataType> |
Public Member Functions | |
| CellEnvironmentVariableArrayRef (const VariableBuildInfo &vb) | |
| CellEnvironmentVariableArrayRef (const MaterialVariableBuildInfo &vb) | |
| Constructs a reference to the variable specified in vb. | |
| CellEnvironmentVariableArrayRef (const ThatClass &rhs) | |
| ThatClass & | operator= (const ThatClass &rhs)=delete |
| Copy assignment operator (deleted). | |
| CellEnvironmentVariableArrayRef ()=delete | |
| Default constructor (deleted). | |
| virtual void | refersTo (const ThatClass &rhs) |
| Positions the instance reference to the variable rhs. | |
| void | updateFromInternal () override |
| GlobalVariableRefType & | globalVariable () |
| Global variable associated with this material variable. | |
| const GlobalVariableRefType & | globalVariable () const |
| Global variable associated with this material variable. | |
| void | resize (Integer dim2_size) |
| Resizes the number of elements in the array. | |
| ConstArrayView< DataType > | operator[] (ComponentItemLocalId mc) const |
| Partial value of the variable for material cell mc. | |
| ArrayView< DataType > | operator[] (ComponentItemLocalId mc) |
| Partial value of the variable for material cell mc. | |
| ConstArrayView< DataType > | operator[] (CellLocalId c) const |
| Global value of the variable for cell c. | |
| ArrayView< DataType > | operator[] (CellLocalId c) |
| Global value of the variable for cell c. | |
| Public Member Functions inherited from Arcane::Materials::MeshMaterialVariableRef | |
| MeshMaterialVariableRef * | previousReference () |
| Previous reference (or null) on variable(). | |
| MeshMaterialVariableRef * | nextReference () |
| Next reference (or null) on variable(). | |
| void | setPreviousReference (MeshMaterialVariableRef *v) |
| void | setNextReference (MeshMaterialVariableRef *v) |
| void | registerVariable () |
| Registers the variable (internal). | |
| void | unregisterVariable () |
| Unregisters the variable (internal). | |
| IMeshMaterialVariable * | materialVariable () const |
| Associated material variable. | |
| void | synchronize () |
| Synchronizes values between sub-domains. | |
| void | synchronize (MeshMaterialVariableSynchronizerList &sync_list) |
| Adds this variable to the synchronization list sync_list. | |
| MatVarSpace | space () const |
| Definition space of the variable (material+environment or environment only). | |
| void | fillPartialValuesWithSuperValues (Int32 level) |
| Fills partial values with the super cell value. If level is LEVEL_MATERIAL, copies material values with those of the environment. If level is LEVEL_ENVIRONMENT, copies environment values with those of the global cell. If level is LEVEL_ALLENVIRONMENT, fills all partial values with those of the global cell (this makes this method equivalent to fillGlobalValuesWithGlobalValues(). | |
| String | name () const |
| void | setUpToDate () |
| bool | isUsed () const |
| void | update () |
| void | addDependCurrentTime (const VariableRef &var) |
| void | addDependCurrentTime (const VariableRef &var, const TraceInfo &tinfo) |
| void | addDependCurrentTime (const MeshMaterialVariableRef &var) |
| void | addDependPreviousTime (const MeshMaterialVariableRef &var) |
| void | removeDepend (const MeshMaterialVariableRef &var) |
| template<typename ClassType> | |
| void | setComputeFunction (ClassType *instance, void(ClassType::*func)()) |
| void | setUpToDate (IMeshMaterial *) |
| Functions to manage dependencies on the material part of the variable. | |
| void | update (IMeshMaterial *) |
| void | addMaterialDepend (const VariableRef &var) |
| void | addMaterialDepend (const VariableRef &var, const TraceInfo &tinfo) |
| void | addMaterialDepend (const MeshMaterialVariableRef &var) |
| void | addMaterialDepend (const MeshMaterialVariableRef &var, const TraceInfo &tinfo) |
| template<typename ClassType> | |
| void | setMaterialComputeFunction (ClassType *instance, void(ClassType::*func)(IMeshMaterial *)) |
Protected Member Functions | |
| ConstArrayView< DataType > | operator[] (MatVarIndex mvi) const |
| ArrayView< DataType > | operator[] (MatVarIndex mvi) |
| Protected Member Functions inherited from Arcane::Materials::MeshMaterialVariableRef | |
| void | _internalInit (IMeshMaterialVariable *mat_variable) |
| bool | _isRegistered () const |
Array variable on the cells of a mesh material. For now, this class is only instantiated for cells.
Definition at line 159 of file core/materials/MeshEnvironmentVariableRef.h.
| using Arcane::Materials::CellEnvironmentVariableArrayRef< DataType_ >::DataType = DataType_ |
Definition at line 164 of file core/materials/MeshEnvironmentVariableRef.h.
| using Arcane::Materials::CellEnvironmentVariableArrayRef< DataType_ >::GlobalVariableRefType = MeshVariableArrayRefT<ItemType, DataType> |
Definition at line 167 of file core/materials/MeshEnvironmentVariableRef.h.
| using Arcane::Materials::CellEnvironmentVariableArrayRef< DataType_ >::ItemType = Cell |
Definition at line 166 of file core/materials/MeshEnvironmentVariableRef.h.
| using Arcane::Materials::CellEnvironmentVariableArrayRef< DataType_ >::PrivatePartType = IArrayMeshMaterialVariable<Cell, DataType> |
Definition at line 165 of file core/materials/MeshEnvironmentVariableRef.h.
| using Arcane::Materials::CellEnvironmentVariableArrayRef< DataType_ >::ThatClass = CellEnvironmentVariableArrayRef<DataType> |
Definition at line 168 of file core/materials/MeshEnvironmentVariableRef.h.
|
explicit |
Definition at line 214 of file MeshEnvironmentVariableRef.cc.
|
explicit |
Constructs a reference to the variable specified in vb.
Definition at line 224 of file MeshEnvironmentVariableRef.cc.
| MeshVariableArrayRefT< Cell, DataType > & Arcane::Materials::CellEnvironmentVariableArrayRef< DataType >::globalVariable | ( | ) |
Global variable associated with this material variable.
Definition at line 302 of file MeshEnvironmentVariableRef.cc.
References ARCANE_FATAL.
| const MeshVariableArrayRefT< Cell, DataType > & Arcane::Materials::CellEnvironmentVariableArrayRef< DataType >::globalVariable | ( | ) | const |
Global variable associated with this material variable.
Definition at line 315 of file MeshEnvironmentVariableRef.cc.
References ARCANE_FATAL.
|
inline |
Global value of the variable for cell c.
Definition at line 243 of file core/materials/MeshEnvironmentVariableRef.h.
|
inline |
Global value of the variable for cell c.
Definition at line 237 of file core/materials/MeshEnvironmentVariableRef.h.
|
inline |
Partial value of the variable for material cell mc.
Definition at line 231 of file core/materials/MeshEnvironmentVariableRef.h.
|
inline |
Partial value of the variable for material cell mc.
Definition at line 225 of file core/materials/MeshEnvironmentVariableRef.h.
|
inlineprotected |
Definition at line 217 of file core/materials/MeshEnvironmentVariableRef.h.
|
inlineprotected |
Definition at line 213 of file core/materials/MeshEnvironmentVariableRef.h.
|
virtual |
Positions the instance reference to the variable rhs.
Definition at line 268 of file MeshEnvironmentVariableRef.cc.
References Arcane::Materials::MeshMaterialVariableRef::unregisterVariable().
| void Arcane::Materials::CellEnvironmentVariableArrayRef< DataType >::resize | ( | Integer | dim2_size | ) |
Resizes the number of elements in the array.
The first dimension always remains equal to the number of mesh elements. Only the second component is resized.
Definition at line 328 of file MeshEnvironmentVariableRef.cc.
|
overridevirtual |
Implements Arcane::Materials::MeshMaterialVariableRef.
Definition at line 292 of file MeshEnvironmentVariableRef.cc.