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())
277 *
rho.oldTime().primitiveField()
313 *
alpha.oldTime().primitiveField()
314 *
rho.oldTime().primitiveField()
389 "ddtCorr(" +
U.name() +
',' + Uf.
name() +
')',
393 this->fvcDdtPhiCoeff(
U.oldTime(), phiUf0, phiCorr)
421 "ddtCorr(" +
U.name() +
',' + phi.
name() +
')',
425 this->fvcDdtPhiCoeff(
U.oldTime(), phi.
oldTime(), phiCorr)
451 rho.oldTime()*
U.oldTime()
464 +
rho.name() +
',' +
U.name() +
',' + rhoUf.
name() +
')',
468 this->fvcDdtPhiCoeff(rhoU0, phiUf0, phiCorr,
rho.oldTime())
492 +
rho.name() +
',' +
U.name() +
',' + rhoUf.
name() +
')',
509 <<
"dimensions of rhoUf are not correct"
512 return fluxFieldType::null();
536 rho.oldTime()*
U.oldTime()
551 +
rho.name() +
',' +
U.name() +
',' + phi.
name() +
')',
583 +
rho.name() +
',' +
U.name() +
',' + phi.
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, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, 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 Field0Type & 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....
tmp< DimensionedField< scalar, volMesh > > Vsc() const
Return sub-cycle cell volumes.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#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.
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
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const dimensionSet dimVelocity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
faceListList boundary(nPatches)