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 60 of file localEulerDdtScheme.C.
References dimensioned< Type >::dimensions(), Foam::dimTime, mesh, dimensioned< Type >::name(), Foam::New(), timeName, and Foam::Zero.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 84 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 111 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), rho, and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 139 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), rho, and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 167 of file localEulerDdtScheme.C.
References alpha, mesh, IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), rho, and timeName.
|
virtual |
Reimplemented from ddtScheme< Type >.
Definition at line 200 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 227 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().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 254 of file localEulerDdtScheme.C.
References lduMatrix::diag(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, Foam::dimVol, mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), tmp< T >::ref(), rho, and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 283 of file localEulerDdtScheme.C.
References lduMatrix::diag(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, Foam::dimVol, mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), tmp< T >::ref(), rho, and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 313 of file localEulerDdtScheme.C.
References alpha, lduMatrix::diag(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, Foam::dimVol, mesh, GeometricField< Type, PatchField, GeoMesh >::oldTime(), tmp< T >::ref(), rho, and fvMatrix< Type >::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 346 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), Foam::fvc::interpolate(), mesh, timeName, U, and Uf.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 379 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), Foam::fvc::interpolate(), mesh, phi, timeName, and U.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 411 of file localEulerDdtScheme.C.
References Foam::abort(), Foam::dimDensity, Foam::dimVelocity, Foam::fvc::dotInterpolate(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), mesh, rho, timeName, U, and Uf.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 496 of file localEulerDdtScheme.C.
References Foam::abort(), Foam::dimArea, Foam::dimVelocity, Foam::fvc::dotInterpolate(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), mesh, phi, rho, timeName, and U.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 586 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 | ||
) |