27 #include "surfaceInterpolate.H"
43 const volScalarField& localEulerDdtScheme<Type>::localRDeltaT()
const
63 const word ddtName(
"ddt(" + dt.
name() +
')');
92 const word ddtName(
"ddt(" + vf.
name() +
')');
115 const word ddtName(
"ddt(" +
rho.name() +
',' + vf.
name() +
')');
138 const word ddtName(
"ddt(" +
rho.name() +
',' + vf.
name() +
')');
188 const word ddtName(
"ddt("+
sf.name()+
')');
193 rDeltaT*(
sf -
sf.oldTime())
218 fvm.
diag() = rDeltaT*mesh().Vsc();
219 fvm.
source() = rDeltaT*vf.
oldTime().primitiveField()*mesh().Vsc();
245 fvm.
diag() = rDeltaT*
rho.value()*mesh().Vsc();
248 rDeltaT*
rho.value()*vf.
oldTime().primitiveField()*mesh().Vsc();
274 fvm.
diag() = rDeltaT*
rho.primitiveField()*mesh().Vsc();
277 *
rho.oldTime().primitiveField()
278 *vf.
oldTime().primitiveField()*mesh().Vsc();
310 rDeltaT*
alpha.primitiveField()*
rho.primitiveField()*mesh().Vsc();
313 *
alpha.oldTime().primitiveField()
314 *
rho.oldTime().primitiveField()
315 *vf.
oldTime().primitiveField()*mesh().Vsc();
389 "ddtCorr(" +
U.name() +
',' + Uf.
name() +
')',
390 mesh().time().
name(),
393 this->fvcDdtPhiCoeff(
U.oldTime(), phiUf0, phiCorr)
421 "ddtCorr(" +
U.name() +
',' + phi.
name() +
')',
422 mesh().time().
name(),
425 this->fvcDdtPhiCoeff(
U.oldTime(), phi.
oldTime(), phiCorr)
451 rho.oldTime()*
U.oldTime()
464 +
rho.name() +
',' +
U.name() +
',' + rhoUf.
name() +
')',
465 mesh().time().
name(),
468 this->fvcDdtPhiCoeff(rhoU0, phiUf0, phiCorr,
rho.oldTime())
492 +
rho.name() +
',' +
U.name() +
',' + rhoUf.
name() +
')',
493 mesh().time().
name(),
509 <<
"dimensions of rhoUf are not correct"
512 return fluxFieldType::null();
536 rho.oldTime()*
U.oldTime()
551 +
rho.name() +
',' +
U.name() +
',' + phi.
name() +
')',
552 mesh().time().
name(),
583 +
rho.name() +
',' +
U.name() +
',' + phi.
name() +
')',
584 mesh().time().
name(),
600 <<
"dimensions of phi are not correct"
603 return fluxFieldType::null();
627 +
alpha.name() +
rho.name() +
',' +
U.name() +
',' + Uf.
name()
629 this->fvcDdtPhiCoeff(
U.oldTime(), mesh().Sf() & Uf.
oldTime())
643 <<
"dimensions of Uf are not correct"
646 return fluxFieldType::null();
670 +
alpha.name() +
rho.name() +
',' +
U.name() +
',' + phi.
name()
672 this->fvcDdtPhiCoeff(
U.oldTime(), phi.
oldTime())
683 <<
"dimensions of phi are not correct"
686 return fluxFieldType::null();
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
const FieldType & oldTime() const
Return the old time field.
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
Generic dimensioned Type class.
const dimensionSet & dimensions() const
Return const reference to dimensions.
const word & name() const
Return const reference to name.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
virtual tmp< fluxFieldType > fvcDdtUfCorr(const VolField< Type > &U, const SurfaceField< Type > &Uf)
virtual tmp< fvMatrix< Type > > fvmDdt(const VolField< Type > &)
virtual tmp< surfaceScalarField > meshPhi(const VolField< Type > &)
virtual tmp< fluxFieldType > fvcDdtPhiCorr(const VolField< Type > &U, const fluxFieldType &phi)
virtual tmp< VolField< Type > > fvcDdt(const dimensioned< Type > &)
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 or generate a fatal error.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
volScalarField sf(fieldObject, mesh)
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
static tmp< SurfaceField< typename innerProduct< vector, Type >::type > > dotInterpolate(const surfaceVectorField &Sf, const VolField< Type > &tvf)
Interpolate field onto faces.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimVolumetricFlux
errorManip< error > abort(error &err)
SurfaceField< scalar > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionSet dimTime
const dimensionSet dimDensity
const dimensionSet dimVolume
VolField< scalar > volScalarField
const dimensionSet dimVelocity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
faceListList boundary(nPatches)