69 Info<<
"Selecting particle stress model " << modelType <<
endl;
71 auto* ctorPtr = dictionaryConstructorTable(modelType);
78 "particle stress model",
80 *dictionaryConstructorTablePtr_
111 auto& value = tvalue.ref();
115 value.set(i, tau(
alpha[i],
rho[i], uRms[i]));
A field of fields is a PtrList of fields with reference counting.
Base class for inter-particle stress models.
virtual tmp< Field< scalar > > tau(const Field< scalar > &alpha, const Field< scalar > &rho, const Field< scalar > &uRms) const =0
Collision stress.
ParticleStressModel(const dictionary &dict)
Constructors.
static autoPtr< ParticleStressModel > New(const dictionary &dict)
Selector.
virtual ~ParticleStressModel()
Destructor.
scalar alphaPacked_
Close pack volume fraction.
scalar alphaPacked() const
Member Functions.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.