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 |
Flag to use experimental ddtCorr from org version Default is off for backwards compatibility. More... | |
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 130 of file localEulerDdtScheme.H.
typedef ddtScheme<Type>::fluxFieldType fluxFieldType |
Definition at line 253 of file localEulerDdtScheme.H.
|
inline |
Construct from mesh.
Definition at line 171 of file localEulerDdtScheme.H.
|
inline |
Construct from mesh and Istream.
Definition at line 179 of file localEulerDdtScheme.H.
TypeName | ( | "localEuler" | ) |
Runtime type information.
|
inline |
Return mesh reference.
Definition at line 190 of file localEulerDdtScheme.H.
References ddtScheme< Type >::mesh().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 54 of file localEulerDdtScheme.C.
References fvPatchFieldBase::calculatedType(), dimensioned< Type >::dimensions(), Foam::dimTime, mesh, dimensioned< Type >::name(), Foam::New(), and Foam::Zero.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 78 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 105 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), and rho.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 133 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), and rho.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 161 of file localEulerDdtScheme.C.
References Foam::constant::atomic::alpha, mesh, dimensioned< Type >::name(), IOobject::name(), GeometricField< Type, PatchField, GeoMesh >::oldTime(), and rho.
|
virtual |
Reimplemented from ddtScheme< Type >.
Definition at line 194 of file localEulerDdtScheme.C.
References mesh, IOobject::name(), and GeometricField< Type, PatchField, GeoMesh >::oldTime().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 221 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 248 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 277 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 307 of file localEulerDdtScheme.C.
References Foam::constant::atomic::alpha, lduMatrix::diag(), dimensioned< Type >::dimensions(), 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 340 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), Foam::fvc::interpolate(), mesh, U, and Uf.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 373 of file localEulerDdtScheme.C.
References Foam::fvc::dotInterpolate(), Foam::fvc::interpolate(), mesh, phi, and U.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 405 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 490 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 580 of file localEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVolume, mesh, IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::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 | ||
) |