Go to the documentation of this file.
96 #ifndef CrankNicolsonDdtScheme_H
97 #define CrankNicolsonDdtScheme_H
126 template<
class GeoField>
131 label startTimeIndex_;
152 label startTimeIndex()
const;
155 GeoField& operator()();
158 void operator=(
const GeoField& gf);
175 template<
class GeoField>
176 DDt0Field<GeoField>& ddt0_
183 template<
class GeoField>
184 bool evaluate(DDt0Field<GeoField>& ddt0);
188 template<
class GeoField>
189 scalar coef_(
const DDt0Field<GeoField>&)
const;
193 template<
class GeoField>
194 scalar coef0_(
const DDt0Field<GeoField>&)
const;
198 template<
class GeoField>
203 template<
class GeoField>
207 template<
class GeoField>
237 return ocCoeff_->value(
mesh().time().value());
const fvMesh & mesh() const
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
const dimensionedScalar alpha
tmp< fluxFieldType > fvcDdtUfCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
autoPtr< surfaceVectorField > Uf
TypeName("CrankNicolson")
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
ddtScheme< Type >::fluxFieldType fluxFieldType
Second-oder Crank-Nicolson implicit ddt using the current and previous time-step fields as well as th...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)
tmp< fluxFieldType > fvcDdtPhiCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
tmp< surfaceScalarField > meshPhi(const GeometricField< Type, fvPatchField, volMesh > &)
const fvMesh & mesh() const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Abstract base class for ddt schemes.
word name(const expressions::valueTypeCode typeCode)
Generic GeometricField class.
const volScalarField & psi