29#include "surfaceInterpolate.H"
45const volScalarField& localEulerDdtScheme<Type>::localRDeltaT()
const
67 "ddt(" + dt.
name() +
')',
93 "ddt(" + vf.
name() +
')',
121 "ddt(" +
rho.name() +
',' + vf.
name() +
')',
149 "ddt(" +
rho.name() +
',' + vf.
name() +
')',
209 "ddt("+sf.
name()+
')',
245 fvm.diag() = rDeltaT*
mesh().Vsc();
246 fvm.source() = rDeltaT*vf.
oldTime().primitiveField()*
mesh().Vsc();
272 fvm.diag() = rDeltaT*
rho.value()*
mesh().Vsc();
301 fvm.diag() = rDeltaT*
rho.primitiveField()*
mesh().Vsc();
303 fvm.source() = rDeltaT
304 *
rho.oldTime().primitiveField()
333 rDeltaT*
alpha.primitiveField()*
rho.primitiveField()*
mesh().Vsc();
335 fvm.source() = rDeltaT
336 *
alpha.oldTime().primitiveField()
337 *
rho.oldTime().primitiveField()
366 "ddtCorr(" +
U.name() +
',' +
Uf.name() +
')',
370 this->fvcDdtPhiCoeff(
U.oldTime(), phiUf0, phiCorr)
398 "ddtCorr(" +
U.name() +
',' +
phi.name() +
')',
402 this->fvcDdtPhiCoeff(
U.oldTime(),
phi.oldTime(), phiCorr)
428 rho.oldTime()*
U.oldTime()
441 +
rho.name() +
',' +
U.name() +
',' +
Uf.name() +
')',
445 this->fvcDdtPhiCoeff(rhoU0, phiUf0, phiCorr,
rho.oldTime())
456 fluxFieldType phiUf0(
mesh().Sf() &
Uf.oldTime());
457 fluxFieldType phiCorr
469 +
rho.name() +
',' +
U.name() +
',' +
Uf.name() +
')',
486 <<
"dimensions of Uf are not correct"
500 const fluxFieldType&
phi
513 rho.oldTime()*
U.oldTime()
516 fluxFieldType phiCorr
528 +
rho.name() +
',' +
U.name() +
',' +
phi.name() +
')',
548 fluxFieldType phiCorr
553 return tmp<fluxFieldType>
560 +
rho.name() +
',' +
U.name() +
',' +
phi.name() +
')',
577 <<
"dimensions of phi are not correct"
609 tmeshPhi.ref().setOriented();
const dimensionSet & dimensions() const noexcept
Return dimensions.
Generic GeometricField class.
static const this_type & null() noexcept
Return a null GeometricField (reference to a nullObject).
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
Generic dimensioned Type class.
const dimensionSet & dimensions() const noexcept
Return const reference to dimensions.
const word & name() const noexcept
Return const reference to name.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
static const word & calculatedType() noexcept
The type name for calculated patch fields.
tmp< surfaceScalarField > fvcDdtPhiCoeff(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi, const fluxFieldType &phiCorr)
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)
tmp< fluxFieldType > fvcDdtUfCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)
ddtScheme< Type >::fluxFieldType fluxFieldType
tmp< fluxFieldType > fvcDdtPhiCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
const fvMesh & mesh() const
Return mesh reference.
tmp< surfaceScalarField > meshPhi(const GeometricField< Type, fvPatchField, volMesh > &)
static const surfaceScalarField & localRDeltaTf(const fvMesh &mesh)
Return the reciprocal of the local face time-step.
static const volScalarField & localRDeltaT(const fvMesh &mesh)
Return the reciprocal of the local time-step.
A class for managing temporary objects.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
autoPtr< surfaceVectorField > Uf
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Namespace for finite-volume.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
static tmp< GeometricField< typename innerProduct< vector, Type >::type, fvsPatchField, surfaceMesh > > dotInterpolate(const surfaceVectorField &Sf, const GeometricField< Type, fvPatchField, volMesh > &tvf)
Interpolate field onto faces.
Namespace of functions to calculate implicit derivatives returning a matrix.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimArea(sqr(dimLength))
const dimensionSet dimVelocity
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
const dimensionSet dimVolume(pow3(dimLength))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimDensity
const dimensionSet dimVol(dimVolume)
Older spelling for dimVolume.