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... | |
Static Public Attributes inherited from ddtSchemeBase | |
static bool | experimentalDdtCorr |
Protected Member Functions inherited from ddtScheme< Type > | |
ddtScheme (const ddtScheme &)=delete | |
No copy construct. More... | |
void | operator= (const ddtScheme &)=delete |
No copy assignment. More... | |
Protected Attributes inherited from ddtScheme< Type > | |
const fvMesh & | mesh_ |
scalar | ddtPhiCoeff_ |
Input for fvcDdtPhiCoeff. More... | |
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 117 of file localEulerDdtScheme.H.
typedef ddtScheme<Type>::fluxFieldType fluxFieldType |
Definition at line 224 of file localEulerDdtScheme.H.
|
inline |
Construct from mesh.
Definition at line 146 of file localEulerDdtScheme.H.
|
inline |
Construct from mesh and Istream.
Definition at line 152 of file localEulerDdtScheme.H.
TypeName | ( | "localEuler" | ) |
Runtime type information.
|
inline |
Return mesh reference.
Definition at line 161 of file localEulerDdtScheme.H.
References ddtScheme< Type >::mesh().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 61 of file localEulerDdtScheme.C.
References dimensioned< Type >::dimensions(), Foam::dimTime, mesh, dimensioned< Type >::name(), Foam::New(), and Foam::Zero.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 85 of file localEulerDdtScheme.C.
References mesh, and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 112 of file localEulerDdtScheme.C.
References mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), and rho.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 140 of file localEulerDdtScheme.C.
References mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), and rho.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 168 of file localEulerDdtScheme.C.
References Foam::constant::atomic::alpha, mesh, dimensioned< Type >::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), and rho.
|
virtual |
Reimplemented from ddtScheme< Type >.
Definition at line 201 of file localEulerDdtScheme.C.
References mesh, and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 228 of file localEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVol, 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 255 of file localEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVol, mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), GeometricField< Type, PatchField, GeoMesh >::primitiveField(), tmp< T >::ref(), rho, and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 284 of file localEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVol, mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), GeometricField< Type, PatchField, GeoMesh >::primitiveField(), tmp< T >::ref(), rho, and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 314 of file localEulerDdtScheme.C.
References Foam::constant::atomic::alpha, dimensioned< Type >::dimensions(), Foam::dimTime, Foam::dimVol, mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), GeometricField< Type, PatchField, GeoMesh >::primitiveField(), tmp< T >::ref(), rho, and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 347 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), Foam::fvc::interpolate(), mesh, U, and Uf.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 380 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), Foam::fvc::interpolate(), mesh, phi, and U.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 412 of file localEulerDdtScheme.C.
References Foam::abort(), Foam::dimDensity, Foam::dimVelocity, Foam::fvc::dotInterpolate(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), mesh, rho, U, and Uf.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 497 of file localEulerDdtScheme.C.
References Foam::abort(), Foam::dimArea, Foam::dimVelocity, Foam::fvc::dotInterpolate(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), mesh, phi, rho, and U.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 587 of file localEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVolume, mesh, IOobject::NO_READ, IOobject::NO_WRITE, tmp< T >::ref(), timeName, and Foam::Zero.
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 | ||
) |