38 if (!psiSubSubPtr_.valid() || psiSubSubMeshIndex_ != subMesh.
index())
40 psiSubSubPtr_.reset(subMesh.
sub(*this).ptr());
42 psiSubSubMeshIndex_ = subMesh.
index();
45 return psiSubSubPtr_();
52 psiSubSubPtr_.clear();
73 return subMesh.sub(*
this);
85 return this->sources()[model.
name()].value(model, subMesh);
99 return subMesh.sub(*
this);
LagrangianSubSubField< Type > & ref(const LagrangianSubMesh &subMesh)
Access a part of the field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
const Internal & operator()() const
Return a const-reference to the dimensioned internal field.
friend Ostream & operator(Ostream &, const GeometricField< Type, GeoMesh, PrimitiveField > &)
Class containing Lagrangian geometry and topology.
Simple wrapper to provide an optional reference to a Lagrangian model.
bool valid() const
Check if the reference is valid.
Base class for Lagrangian models.
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...
SubList< Type > sub(const List< Type > &list) const
Return a sub-list corresponding to this sub-mesh.
label index() const
Return the index.
A class for managing temporary objects.
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 ...