Courant number limited first-order Euler implicit/explicit ddt. More...
Public Types | |
typedef ddtScheme< Type >::fluxFieldType | fluxFieldType |
![]() | |
typedef GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > | fluxFieldType |
Private Member Functions | |
CoEulerDdtScheme (const CoEulerDdtScheme &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const CoEulerDdtScheme &) |
Disallow default bitwise assignment. More... | |
tmp< volScalarField > | CorDeltaT () const |
Return the reciprocal of the Courant-number limited time-step. More... | |
tmp< surfaceScalarField > | CofrDeltaT () const |
Return the reciprocal of the face-Courant-number limited time-step. More... | |
Private Attributes | |
word | phiName_ |
Name of the flux field used to calculate the local time-step. More... | |
word | rhoName_ |
Name of the density field used to obtain the volumetric flux. More... | |
scalar | maxCo_ |
Maximum local Courant number. More... | |
Additional Inherited Members | |
![]() | |
static tmp< ddtScheme< Type > > | New (const fvMesh &mesh, Istream &schemeData) |
Return a pointer to a new ddtScheme created on freestore. More... | |
![]() | |
ddtScheme (const ddtScheme &) | |
Disallow copy construct. More... | |
void | operator= (const ddtScheme &) |
Disallow default bitwise assignment. More... | |
![]() | |
const fvMesh & | mesh_ |
Courant number limited first-order Euler implicit/explicit ddt.
The time-step is adjusted locally so that the local Courant number does not exceed the specified value.
This scheme should only be used for steady-state computations using transient codes where local time-stepping is preferable to under-relaxation for transport consistency reasons.
Definition at line 61 of file CoEulerDdtScheme.H.
typedef ddtScheme<Type>::fluxFieldType fluxFieldType |
Definition at line 172 of file CoEulerDdtScheme.H.
|
private |
Disallow default bitwise copy construct.
|
inline |
Construct from mesh and Istream.
Definition at line 102 of file CoEulerDdtScheme.H.
|
private |
Disallow default bitwise assignment.
|
private |
Return the reciprocal of the Courant-number limited time-step.
Definition at line 44 of file CoEulerDdtScheme.C.
References GeometricField::boundaryField(), GeometricField::correctBoundaryConditions(), forAll, Foam::max(), mesh, p, fvsPatchField::patch(), and patchi.
|
private |
Return the reciprocal of the face-Courant-number limited time-step.
Definition at line 108 of file CoEulerDdtScheme.C.
References Foam::abort(), surfaceInterpolation::deltaCoeffs(), Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), Foam::mag(), Foam::max(), mesh, phi, and rho.
TypeName | ( | "CoEuler" | ) |
Runtime type information.
|
inline |
Return mesh reference.
Definition at line 114 of file CoEulerDdtScheme.H.
References ddtScheme< Type >::mesh().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 156 of file CoEulerDdtScheme.C.
References dimensioned::dimensions(), Foam::dimTime, GeometricField::internalField(), mesh, dimensioned::name(), timeName, and dimensioned::value().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 216 of file CoEulerDdtScheme.C.
References GeometricField::boundaryField(), GeometricField::internalField(), mesh, GeometricField::oldTime(), and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 267 of file CoEulerDdtScheme.C.
References GeometricField::boundaryField(), GeometricField::internalField(), mesh, GeometricField::oldTime(), rho, and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 319 of file CoEulerDdtScheme.C.
References GeometricField::boundaryField(), GeometricField::internalField(), mesh, GeometricField::oldTime(), rho, and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 374 of file CoEulerDdtScheme.C.
References Foam::constant::atomic::alpha, GeometricField::boundaryField(), dimensioned::dimensions(), GeometricField::internalField(), mesh, dimensioned::name(), GeometricField::oldTime(), rho, and timeName.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 443 of file CoEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVol, internalField(), mesh, GeometricField::oldTime(), and fvMatrix::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 478 of file CoEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVol, internalField(), mesh, GeometricField::oldTime(), rho, and fvMatrix::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 515 of file CoEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVol, internalField(), mesh, GeometricField::oldTime(), rho, and fvMatrix::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 554 of file CoEulerDdtScheme.C.
References Foam::constant::atomic::alpha, dimensioned::dimensions(), Foam::dimTime, Foam::dimVol, internalField(), mesh, GeometricField::oldTime(), rho, and fvMatrix::source().
|
virtual |
Implements ddtScheme< Type >.
Definition at line 596 of file CoEulerDdtScheme.C.
References Foam::fvc::interpolate(), mesh, timeName, U, and Uf.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 633 of file CoEulerDdtScheme.C.
References Foam::fvc::interpolate(), mesh, phi, timeName, and U.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 665 of file CoEulerDdtScheme.C.
References Foam::abort(), Foam::dimDensity, Foam::dimVelocity, Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), mesh, rho, timeName, U, and Uf.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 732 of file CoEulerDdtScheme.C.
References Foam::abort(), Foam::dimArea, Foam::dimVelocity, Foam::FatalError, FatalErrorInFunction, Foam::fvc::interpolate(), mesh, phi, rho, timeName, and U.
|
virtual |
Implements ddtScheme< Type >.
Definition at line 793 of file CoEulerDdtScheme.C.
References Foam::dimTime, Foam::dimVolume, mesh, IOobject::NO_READ, IOobject::NO_WRITE, and timeName.
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 | ||
) |
|
private |
Name of the flux field used to calculate the local time-step.
Definition at line 68 of file CoEulerDdtScheme.H.
|
private |
Name of the density field used to obtain the volumetric flux.
from the mass flux if required
Definition at line 72 of file CoEulerDdtScheme.H.
|
private |
Maximum local Courant number.
Definition at line 75 of file CoEulerDdtScheme.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.