Go to the documentation of this file.
31 #include "surfaceInterpolate.H"
63 <<
"Ddt scheme not specified" <<
endl <<
endl
64 <<
"Valid ddt schemes are :" <<
endl
65 << IstreamConstructorTablePtr_->sortedToc()
69 const word schemeName(schemeData);
71 auto cstrIter = IstreamConstructorTablePtr_->cfind(schemeName);
73 if (!cstrIter.found())
80 *IstreamConstructorTablePtr_
84 return cstrIter()(
mesh, schemeData);
162 U.mesh().time().timeName(),
172 if (ddtPhiCoeff_ < 0)
175 ddtCouplingCoeff -=
min
190 forAll(
U.boundaryField(), patchi)
194 U.boundaryField()[patchi].fixesValue()
205 <<
"ddtCouplingCoeff mean max min = "
212 return tddtCouplingCoeff;
236 U.mesh().time().timeName(),
246 if (ddtPhiCoeff_ < 0)
249 ddtCouplingCoeff -=
min
255 *
mesh().time().deltaT()*
mesh().deltaCoeffs()/
mesh().magSf(),
261 ddtCouplingCoeff.setOriented(
false);
271 forAll(
U.boundaryField(), patchi)
275 U.boundaryField()[patchi].fixesValue()
286 <<
"ddtCouplingCoeff mean max min = "
293 return tddtCouplingCoeff;
306 if (experimentalDdtCorr)
309 fvcDdtPhiCoeffExperimental
318 return fvcDdtPhiCoeff(
U,
phi, phiCorr);
330 if (experimentalDdtCorr)
333 fvcDdtPhiCoeffExperimental
361 if (experimentalDdtCorr)
363 return fvcDdtPhiCoeffExperimental
373 return fvcDdtPhiCoeff
int debug
Static debugging option.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
#define InfoInFunction
Report an information message using Foam::Info.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
A class for handling words, derived from Foam::string.
static tmp< GeometricField< typename innerProduct< vector, Type >::type, fvsPatchField, surfaceMesh > > dotInterpolate(const surfaceVectorField &Sf, const GeometricField< Type, fvPatchField, volMesh > &tvf)
Interpolate field onto faces.
tmp< surfaceScalarField > fvcDdtPhiCoeffExperimental(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
A class for managing temporary objects.
Type gAverage(const FieldField< Field, Type > &f)
bool eof() const
Return true if end of input seen.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
tmp< surfaceScalarField > fvcDdtPhiCoeff(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)=0
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionSet dimVol(dimVolume)
Older spelling for dimVolume.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
Type gMin(const FieldField< Field, Type > &f)
const dimensionSet & dimensions() const
Return const reference to dimensions.
static tmp< ddtScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return a pointer to a new ddtScheme created on freestore.
Type gMax(const FieldField< Field, Type > &f)
virtual tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)=0