38 psiAllPtr_(ref_.
mesh().subAll().sub(ref_).ptr())
61 return ref_.dimensions();
75 <<
"Non-constant access is not provided to the all-mesh sub-field"
80 if (!psiSubSubPtr_.valid() || psiSubSubMeshIndex_ != subMesh.
index())
82 psiSubSubPtr_.reset(subMesh.
sub(ref_).ptr());
84 psiSubSubMeshIndex_ = subMesh.
index();
87 return psiSubSubPtr_();
100 return psiSubSubPtr_();
140 psiAllPtr_->UList<Type>::shallowCopy(ref_);
146 if (!psiSubSubPtr_.valid() || psiSubSubMeshIndex_ != subMesh.
index())
148 psiSubSubPtr_.reset(subMesh.
sub(ref_).ptr());
150 psiSubSubMeshIndex_ = subMesh.
index();
153 return psiSubSubPtr_();
Wrapper for a reference to a dynamic Lagrangian field. It provides convenient access consistent with ...
const dimensionSet & dimensions() const
Access the field's dimensions.
const LagrangianDynamicField< Type > & operator()(const LagrangianMesh &) const
Access the entire field.
CloudStateFieldRef(LagrangianDynamicField< Type > &)
Construct from a field reference.
const LagrangianMesh & mesh() const
Access the field's mesh.
const LagrangianSubSubField< Type > & ref(const LagrangianSubMesh &) const
Access a part of the field.
const word & name() const
Access the field's name.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
Class containing Lagrangian geometry and topology.
const LagrangianSubMesh & subAll() const
Return a sub-mesh for all elements.
Simple wrapper to provide an optional reference to a Lagrangian model.
bool isInjection() const
Check if the injection reference is valid.
const LagrangianInjection & injection() const
Access the injection model.
const LagrangianSource & source() const
Access the source model.
bool isSource() const
Check if the source reference is valid.
const word & name() const
The source name.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
uint64_t index() const
Return the index.
const LagrangianMesh & mesh() const
Return the mesh.
word sub(const word &fieldName) const
Return the name of a field corresponding to this sub-mesh.
Dimension set for the base types.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< Type, GeoMesh, SubField > > toSubField(const DimensionedField< Type, GeoMesh, Field > &)
Return a temporary sub-field from a reference to a field.
Functions to cast/convert dimensioned field references and temporaries based on a primitive field to ...