74 ) <<
"Convection scheme not specified" <<
endl <<
endl 75 <<
"Valid convection schemes are :" <<
endl 76 << IstreamConstructorTablePtr_->sortedToc()
80 const word schemeName(schemeData);
82 typename IstreamConstructorTable::iterator cstrIter =
83 IstreamConstructorTablePtr_->find(schemeName);
85 if (cstrIter == IstreamConstructorTablePtr_->end())
90 ) <<
"Unknown convection scheme " << schemeName <<
nl <<
nl 91 <<
"Valid convection schemes are :" <<
endl 92 << IstreamConstructorTablePtr_->sortedToc()
96 return cstrIter()(
mesh, faceFlux, schemeData);
115 if (schemeData.
eof())
120 ) <<
"Convection scheme not specified" <<
endl <<
endl 121 <<
"Valid convection schemes are :" <<
endl 122 << MultivariateConstructorTablePtr_->sortedToc()
126 const word schemeName(schemeData);
128 typename MultivariateConstructorTable::iterator cstrIter =
129 MultivariateConstructorTablePtr_->find(schemeName);
131 if (cstrIter == MultivariateConstructorTablePtr_->end())
136 ) <<
"Unknown convection scheme " << schemeName <<
nl <<
nl 137 <<
"Valid convection schemes are :" <<
endl 138 << MultivariateConstructorTablePtr_->sortedToc()
142 return cstrIter()(
mesh,
fields, faceFlux, schemeData);
161 <<
"attempted assignment to self" convectionScheme(const convectionScheme &)
Copy construct.
void operator=(const convectionScheme< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Reference counter for various OpenFOAM components.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual ~convectionScheme()
Destructor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base class for convection schemes.
A class for handling words, derived from string.
errorManip< error > abort(error &err)
bool eof() const
Return true if end of input seen.
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, p_rgh, pimple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(p_rgh.name());hydrostaticInitialisation(p_rgh, p, rho, U, gh, ghf, pRef, thermo, pimple.dict());Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
static tmp< convectionScheme< Type > > New(const fvMesh &mesh, const surfaceScalarField &faceFlux, Istream &schemeData)
Return a pointer to a new convectionScheme created on freestore.
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for multi-variate surface interpolation schemes.
const fvMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
#define InfoInFunction
Report an information message using Foam::Info.