Local time-step first-order Euler implicit/explicit ddt. More...
Public Types | |
typedef ddtScheme< Type >::fluxFieldType | fluxFieldType |
Public Types inherited from ddtScheme< Type > | |
typedef GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > | fluxFieldType |
Additional Inherited Members | |
Static Public Member Functions inherited from localEulerDdt | |
static bool | enabled (const fvMesh &mesh) |
Return true if LTS is enabled. More... | |
static const volScalarField & | localRDeltaT (const fvMesh &mesh) |
Return the reciprocal of the local time-step. More... | |
static const surfaceScalarField & | localRDeltaTf (const fvMesh &mesh) |
Return the reciprocal of the local face time-step. More... | |
static tmp< volScalarField > | localRSubDeltaT (const fvMesh &mesh, const label nAlphaSubCycles) |
Calculate and return the reciprocal of the local sub-cycling. More... | |
Static Public Member Functions inherited from ddtScheme< Type > | |
static tmp< ddtScheme< Type > > | New (const fvMesh &mesh, Istream &schemeData) |
Return a pointer to a new ddtScheme created on freestore. More... | |
Static Public Attributes inherited from localEulerDdt | |
static word | rDeltaTName |
Name of the reciprocal local time-step field. More... | |
static word | rDeltaTfName |
Name of the reciprocal local face time-step field. More... | |
static word | rSubDeltaTName |
Name of the reciprocal local sub-cycling time-step field. More... | |
Protected Member Functions inherited from refCount | |
refCount () | |
Construct null initialising count to 0. More... | |
Protected Attributes inherited from ddtScheme< Type > | |
const fvMesh & | mesh_ |
Local time-step first-order Euler implicit/explicit ddt.
The reciprocal of the local time-step field is looked-up from the database.
This scheme should only be used for steady-state computations using transient codes where local time-stepping is preferably to under-relaxation for transport consistency reasons.
Definition at line 112 of file localEulerDdtScheme.H.
typedef ddtScheme<Type>::fluxFieldType fluxFieldType |
Definition at line 212 of file localEulerDdtScheme.H.
|
inline |
Construct from mesh.
Definition at line 135 of file localEulerDdtScheme.H.
|
inline |
|
delete |
Disallow default bitwise copy construction.
TypeName | ( | "localEuler" | ) |
Runtime type information.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 59 of file localEulerDdtScheme.C.
References dimensioned< Type >::dimensions(), Foam::dimTime, mesh, dimensioned< Type >::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::Zero.
Referenced by localEulerDdtScheme< Type >::fvcDdt().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 86 of file localEulerDdtScheme.C.
References localEulerDdtScheme< Type >::fvcDdt(), IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 108 of file localEulerDdtScheme.C.
References localEulerDdtScheme< Type >::fvcDdt(), dimensioned< Type >::name(), IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 131 of file localEulerDdtScheme.C.
References localEulerDdtScheme< Type >::fvcDdt(), IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 154 of file localEulerDdtScheme.C.
References localEulerDdtScheme< Type >::fvcDdt(), IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Reimplemented from ddtScheme< Type >.
Definition at line 182 of file localEulerDdtScheme.C.
References localEulerDdtScheme< Type >::fvmDdt(), IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::New(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 201 of file localEulerDdtScheme.C.
References lduMatrix::diag(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, Foam::dimVol, mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), tmp< T >::ref(), and fvMatrix< Type >::source().
Referenced by localEulerDdtScheme< Type >::fvcDdt(), and localEulerDdtScheme< Type >::fvmDdt().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 228 of file localEulerDdtScheme.C.
References lduMatrix::diag(), dimensioned< Type >::dimensions(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, Foam::dimVol, localEulerDdtScheme< Type >::fvmDdt(), mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), tmp< T >::ref(), fvMatrix< Type >::source(), and dimensioned< Type >::value().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 257 of file localEulerDdtScheme.C.
References lduMatrix::diag(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, Foam::dimVol, localEulerDdtScheme< Type >::fvmDdt(), mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), GeometricField< Type, PatchField, GeoMesh >::primitiveField(), tmp< T >::ref(), and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 287 of file localEulerDdtScheme.C.
References lduMatrix::diag(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, Foam::dimVol, localEulerDdtScheme< Type >::fvcDdtUfCorr(), mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), GeometricField< Type, PatchField, GeoMesh >::primitiveField(), tmp< T >::ref(), and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 370 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), localEulerDdtScheme< Type >::fvcDdtPhiCorr(), Foam::fvc::interpolate(), mesh, IOobject::name(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
Referenced by localEulerDdtScheme< Type >::fvcDdtPhiCorr(), and localEulerDdtScheme< Type >::fvmDdt().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 403 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), localEulerDdtScheme< Type >::fvcDdtUfCorr(), Foam::fvc::interpolate(), mesh, IOobject::name(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
Referenced by localEulerDdtScheme< Type >::fvcDdtUfCorr().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 435 of file localEulerDdtScheme.C.
References Foam::abort(), Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::fvc::dotInterpolate(), Foam::FatalError, FatalErrorInFunction, localEulerDdtScheme< Type >::fvcDdtPhiCorr(), Foam::fvc::interpolate(), mesh, IOobject::name(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 520 of file localEulerDdtScheme.C.
References Foam::abort(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimFlux, Foam::dimVelocity, Foam::fvc::dotInterpolate(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), mesh, localEulerDdtScheme< Type >::meshPhi(), IOobject::name(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 610 of file localEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVolume, mesh, and GeometricField< scalar, fvsPatchField, surfaceMesh >::New().
Referenced by localEulerDdtScheme< Type >::fvcDdtPhiCorr().
|
delete |
Disallow default bitwise assignment.
tmp< surfaceScalarField > fvcDdtUfCorr | ( | const GeometricField< scalar, fvPatchField, volMesh > & | U, |
const GeometricField< scalar, fvsPatchField, surfaceMesh > & | Uf | ||
) |
tmp< surfaceScalarField > fvcDdtPhiCorr | ( | const volScalarField & | U, |
const surfaceScalarField & | phi | ||
) |
tmp< surfaceScalarField > fvcDdtUfCorr | ( | const volScalarField & | rho, |
const volScalarField & | U, | ||
const surfaceScalarField & | Uf | ||
) |
tmp< surfaceScalarField > fvcDdtPhiCorr | ( | const volScalarField & | rho, |
const volScalarField & | U, | ||
const surfaceScalarField & | phi | ||
) |