75 #ifndef CrankNicolsonDdtScheme_H 76 #define CrankNicolsonDdtScheme_H 104 template<
class GeoField>
109 label startTimeIndex_;
130 label startTimeIndex()
const;
133 GeoField& operator()();
136 void operator=(
const GeoField& gf);
152 template<
class GeoField>
153 DDt0Field<GeoField>& ddt0_
160 template<
class GeoField>
161 bool evaluate(
const DDt0Field<GeoField>& ddt0)
const;
165 template<
class GeoField>
166 scalar coef_(
const DDt0Field<GeoField>&)
const;
170 template<
class GeoField>
171 scalar coef0_(
const DDt0Field<GeoField>&)
const;
175 template<
class GeoField>
180 template<
class GeoField>
184 template<
class GeoField>
209 if (ocCoeff_ < 0 || ocCoeff_ > 1)
214 ) <<
"Off-centreing coefficient = " << ocCoeff_
215 <<
" should be >= 0 and <= 1" 299 const fluxFieldType&
phi 313 const fluxFieldType&
phi tmp< fluxFieldType > fvcDdtUfCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Second-oder Crank-Nicolson implicit ddt using the current and previous time-step fields as well as th...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvMesh & mesh() const
Return mesh reference.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Generic GeometricField class.
Generic dimensioned Type class.
Abstract base class for ddt schemes.
scalar ocCoeff() const
Return the off-centreing coefficient.
Dimension set for the base types.
ddtScheme< Type >::fluxFieldType fluxFieldType
A class for handling words, derived from string.
tmp< fluxFieldType > fvcDdtPhiCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)
word name(const complex &)
Return a string representation of a complex.
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
tmp< surfaceScalarField > meshPhi(const GeometricField< Type, fvPatchField, volMesh > &)
const fvMesh & mesh() const
Return mesh reference.
const volScalarField & psi
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
TypeName("CrankNicolson")
Runtime type information.