28 #include "surfaceInterpolate.H" 61 ) <<
"Ddt scheme not specified" <<
endl <<
endl 62 <<
"Valid ddt schemes are :" <<
endl 63 << IstreamConstructorTablePtr_->sortedToc()
67 const word schemeName(schemeData);
69 typename IstreamConstructorTable::iterator cstrIter =
70 IstreamConstructorTablePtr_->find(schemeName);
72 if (cstrIter == IstreamConstructorTablePtr_->end())
77 ) <<
"Unknown ddt scheme " << schemeName <<
nl <<
nl 78 <<
"Valid ddt schemes are :" <<
endl 79 << IstreamConstructorTablePtr_->sortedToc()
83 return cstrIter()(
mesh, schemeData);
153 surfaceScalarField::Boundary& ccbf =
154 ddtCouplingCoeff.boundaryFieldRef();
161 || isA<cyclicAMIFvPatch>(
mesh().boundary()[
patchi])
171 <<
"ddtCouplingCoeff mean max min = " 172 <<
gAverage(ddtCouplingCoeff.primitiveField())
173 <<
" " <<
gMax(ddtCouplingCoeff.primitiveField())
174 <<
" " <<
gMin(ddtCouplingCoeff.primitiveField())
178 return tddtCouplingCoeff;
bool eof() const
Return true if end of input seen.
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)=0
#define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Type gMin(const FieldField< Field, Type > &f)
virtual tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)=0
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static tmp< GeometricField< typename innerProduct< vector, Type >::type, fvsPatchField, surfaceMesh > > dotInterpolate(const surfaceVectorField &Sf, const GeometricField< Type, fvPatchField, volMesh > &tvf)
Interpolate field onto faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimVol(dimVolume)
virtual ~ddtScheme()
Destructor.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A class for handling words, derived from string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
const dimensionSet & dimensions() const
Return dimensions.
Type gMax(const FieldField< Field, Type > &f)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
tmp< surfaceScalarField > fvcDdtPhiCoeff(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
static tmp< ddtScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new ddtScheme created on freestore.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Type gAverage(const FieldField< Field, Type > &f)
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define InfoInFunction
Report an information message using Foam::Info.