37 return carrierField<Type, VolField<Type>>(
psi);
41 template<
class Type,
class ... Args>
50 if (iter != carrierFields<Type>().end())
return **iter;
53 carrierFields<Type>().insert(ptr->name(), ptr);
62 const word& symbolicName,
63 const word& descriptiveName,
73 isPhase ? phaseName(
false) : carrierPhaseName()
75 [
this,descriptiveName,isPhase]()
78 <<
"Cloud " << cloud_.name() <<
" does not have a "
79 << (isPhase ?
"corresponding Eulerian phase" :
"carrier")
A field interpolated from the carrier to the cloud. Uses CloudDerivedField to provide flexible access...
Generic GeometricField class.
A HashTable specialisation for hashing pointers.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
const CarrierField< Type > & carrierField(const VolField< Type > &) const
Add/get a carrier field to/from the cache.
const CarrierField< Type > & noCarrierField(const word &symbolicName, const word &descriptiveName, const bool isPhase) const
Generate a carrier field reference using a functor that raises.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const volScalarField & psi
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Foam::argList args(argc, argv)