42 <<
"Accumulation scheme not specified" <<
endl <<
endl
43 <<
"Valid accumulation schemes are :" <<
endl
44 << IstreamConstructorTablePtr_->sortedToc()
48 const word schemeName(is);
50 typename IstreamConstructorTable::iterator cstrIter =
51 IstreamConstructorTablePtr_->find(schemeName);
53 if (cstrIter == IstreamConstructorTablePtr_->end())
56 <<
"Unknown accumulation scheme " << schemeName <<
nl <<
nl
57 <<
"Valid accumulation schemes are :" <<
endl
58 << IstreamConstructorTablePtr_->sortedToc()
62 return cstrIter()(
mesh, is);
76 template<
class CellMesh,
template<
class>
class PrimitiveField>
89 refCast<const resultMeshType>(lPsi.
mesh().poly()),
95 lPsi.
mesh().subAll().sub(lPsi),
96 tResult.
ref().primitiveFieldRef()
104 template<
class CellMesh,
template<
class>
class PrimitiveField>
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeoMesh::Mesh Mesh
Base mesh type from which GeoMesh is constructed.
const dimensionSet & dimensions() const
Return dimensions.
PrimitiveField< Type > & primitiveFieldRef()
Return a reference to the internal field.
const GeoMesh & mesh() const
Return mesh.
const word & name() const
Return name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool eof() const
Return true if end of input seen.
Class containing Lagrangian geometry and topology.
Basic cell Lagrangian accumulation scheme.
static tmp< accumulationScheme< Type > > New(const LagrangianMesh &mesh, Istream &is)
Return a pointer to a new accumulationScheme.
virtual ~accumulationScheme()
Destructor.
Generic dimensioned Type class.
Traits class for primitives.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
tmp< DimensionedField< Type, CellMesh > > accumulate(const DimensionedField< Type, LagrangianMesh, PrimitiveField > &lPsi, const word &name)
Accumulate a Lagrangian field into a finite volume field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
tmp< DimensionedField< Type, GeoMesh, SubField > > toSubField(const DimensionedField< Type, GeoMesh, Field > &)
Return a temporary sub-field from a reference to a field.