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());
Generic GeometricField class.
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Dimension set for the base types.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
Second-oder Crank-Nicolson implicit ddt using the current and previous time-step fields as well as th...
virtual tmp< fvMatrix< Type > > fvmDdt(const VolField< Type > &)
const fvMesh & mesh() const
Return mesh reference.
scalar ocCoeff() const
Return the current off-centering coefficient.
virtual tmp< fluxFieldType > fvcDdtPhiCorr(const VolField< Type > &U, const fluxFieldType &phi)
virtual tmp< surfaceScalarField > meshPhi(const VolField< Type > &)
ddtScheme< Type >::fluxFieldType fluxFieldType
virtual tmp< fluxFieldType > fvcDdtUfCorr(const VolField< Type > &U, const SurfaceField< Type > &Uf)
void operator=(const CrankNicolsonDdtScheme &)=delete
Disallow default bitwise assignment.
virtual tmp< VolField< Type > > fvcDdt(const dimensioned< Type > &)
CrankNicolsonDdtScheme(const fvMesh &mesh)
Construct from mesh.
TypeName("CrankNicolson")
Runtime type information.
Abstract base class for ddt schemes.
const fvMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const volScalarField & psi
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.