Go to the documentation of this file.
66 Info<<
"convectionScheme<Type>::New"
67 "(const fvMesh&, const surfaceScalarField&, Istream&) : "
68 "constructing convectionScheme<Type>"
77 ) <<
"Convection scheme not specified" <<
endl <<
endl
78 <<
"Valid convection schemes are :" <<
endl
79 << IstreamConstructorTablePtr_->sortedToc()
83 const word schemeName(schemeData);
85 typename IstreamConstructorTable::iterator cstrIter =
86 IstreamConstructorTablePtr_->find(schemeName);
88 if (cstrIter == IstreamConstructorTablePtr_->end())
93 ) <<
"Unknown convection scheme " << schemeName <<
nl <<
nl
94 <<
"Valid convection schemes are :" <<
endl
95 << IstreamConstructorTablePtr_->sortedToc()
99 return cstrIter()(
mesh, faceFlux, schemeData);
115 Info<<
"convectionScheme<Type>::New"
117 "const typename multivariateSurfaceInterpolationScheme<Type>"
118 "::fieldTable&, const surfaceScalarField&, Istream&) : "
119 "constructing convectionScheme<Type>"
123 if (schemeData.
eof())
128 ) <<
"Convection scheme not specified" <<
endl <<
endl
129 <<
"Valid convection schemes are :" <<
endl
130 << MultivariateConstructorTablePtr_->sortedToc()
134 const word schemeName(schemeData);
136 typename MultivariateConstructorTable::iterator cstrIter =
137 MultivariateConstructorTablePtr_->find(schemeName);
139 if (cstrIter == MultivariateConstructorTablePtr_->end())
144 ) <<
"Unknown convection scheme " << schemeName <<
nl <<
nl
145 <<
"Valid convection schemes are :" <<
endl
146 << MultivariateConstructorTablePtr_->sortedToc()
150 return cstrIter()(
mesh,
fields, faceFlux, schemeData);
169 <<
"attempted assignment to self"
A class for handling words, derived from string.
A class for managing temporary objects.
virtual ~convectionScheme()
Destructor.
Reference counter for various OpenFOAM components.
Info<< "Creating field dpdt\n"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;mesh.setFluxRequired(p_rgh.name());multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
bool eof() const
Return true if end of input seen.
static tmp< convectionScheme< Type > > New(const fvMesh &mesh, const surfaceScalarField &faceFlux, Istream &schemeData)
Return a pointer to a new convectionScheme created on freestore.
convectionScheme(const convectionScheme &)
Copy construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Abstract base class for multi-variate surface interpolation schemes.
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
Abstract base class for convection schemes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void operator=(const convectionScheme< Type > &)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Generic GeometricField class.