27 #include "surfaceInterpolate.H" 44 tmp<GeometricField<Type, fvPatchField, volMesh>>
52 const word ddtName(
"ddt("+dt.
name()+
')');
71 tdtdt.
ref().primitiveFieldRef() =
103 const word ddtName(
"ddt("+vf.
name()+
')');
142 const word ddtName(
"ddt("+rho.
name()+
','+vf.
name()+
')');
165 rDeltaT*rho*(vf - vf.
oldTime())
181 const word ddtName(
"ddt("+rho.
name()+
','+vf.
name()+
')');
277 const word ddtName(
"ddt("+sf.
name()+
')');
305 const scalar rDeltaT = 1.0/
mesh().time().deltaTValue();
340 const scalar rDeltaT = 1.0/
mesh().time().deltaTValue();
377 const scalar rDeltaT = 1.0/
mesh().time().deltaTValue();
417 const scalar rDeltaT = 1.0/
mesh().time().deltaTValue();
459 "ddtCorr(" + U.
name() +
',' + Uf.
name() +
')',
460 this->fvcDdtPhiCoeff(U.
oldTime(), phiUf0, phiCorr) *rDeltaT*phiCorr
482 "ddtCorr(" + U.
name() +
',' + phi.
name() +
')',
516 "ddtCorr(" + rho.
name() +
',' + U.
name() +
',' + Uf.
name() +
')',
517 this->fvcDdtPhiCoeff(rhoU0, phiUf0, phiCorr, rho.
oldTime())
535 "ddtCorr(" + rho.
name() +
',' + U.
name() +
',' + Uf.
name() +
')',
548 <<
"dimensions of Uf are not correct" 551 return fluxFieldType::null();
585 "ddtCorr(" + rho.
name() +
',' + U.
name() +
',' + phi.
name() +
')',
608 "ddtCorr(" + rho.
name() +
',' + U.
name() +
',' + phi.
name() +
')',
621 <<
"dimensions of phi are not correct" 624 return fluxFieldType::null();
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
const word & name() const
Return name.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< typename innerProduct< vector, Type >::type, fvsPatchField, surfaceMesh > > dotInterpolate(const surfaceVectorField &Sf, const GeometricField< Type, fvPatchField, volMesh > &tvf)
Interpolate field onto faces.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &)
Return a temporary field constructed from name,.
virtual tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Generic GeometricField class.
Generic dimensioned Type class.
const dimensionSet dimTime
const dimensionSet & dimensions() const
Return dimensions.
virtual tmp< fluxFieldType > fvcDdtPhiCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
virtual tmp< surfaceScalarField > meshPhi(const GeometricField< Type, fvPatchField, volMesh > &)
A class for handling words, derived from string.
const dimensionSet dimVol
const dimensionSet dimFlux
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
const Type & value() const
Return const reference to value.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
errorManip< error > abort(error &err)
virtual tmp< fluxFieldType > fvcDdtUfCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Calculate the divergence of the given field.
const dimensionSet dimVelocity
const word & name() const
Return const reference to name.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
const dimensionSet & dimensions() const
Return const reference to dimensions.
A class for managing temporary objects.
virtual tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)