90 #ifndef CrankNicolsonDdtScheme_H 91 #define CrankNicolsonDdtScheme_H 120 template<
class GeoField>
125 label startTimeIndex_;
146 label startTimeIndex()
const;
149 GeoField& operator()();
163 template<
class GeoField>
164 DDt0Field<GeoField>& ddt0_
171 template<
class GeoField>
172 bool evaluate(
const DDt0Field<GeoField>& ddt0)
const;
176 template<
class GeoField>
177 scalar coef_(
const DDt0Field<GeoField>&)
const;
181 template<
class GeoField>
182 scalar coef0_(
const DDt0Field<GeoField>&)
const;
186 template<
class GeoField>
191 template<
class GeoField>
195 template<
class GeoField>
228 return ocCoeff_->value(
mesh().time().value());
295 const fluxFieldType&
phi 309 const fluxFieldType&
phi virtual tmp< fluxFieldType > fvcDdtUfCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
const fvMesh & mesh() const
Return mesh reference.
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.
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar ocCoeff() const
Return the current off-centreing coefficient.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Generic GeometricField class.
Generic dimensioned Type class.
Abstract base class for ddt schemes.
const fvMesh & mesh() const
Return mesh reference.
Dimension set for the base types.
ddtScheme< Type >::fluxFieldType fluxFieldType
A class for handling words, derived from string.
virtual tmp< fluxFieldType > fvcDdtPhiCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
autoPtr< surfaceVectorField > Uf
virtual tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)
word name(const complex &)
Return a string representation of a complex.
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)
Mesh data needed to do the Finite Volume discretisation.
CrankNicolsonDdtScheme(const fvMesh &mesh)
Construct from mesh.
virtual tmp< surfaceScalarField > meshPhi(const GeometricField< Type, fvPatchField, volMesh > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const volScalarField & psi
void operator=(const CrankNicolsonDdtScheme &)=delete
Disallow default bitwise assignment.
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
TypeName("CrankNicolson")
Runtime type information.