38 const SurfaceField<Type>& ssf,
44 const fvMesh& mesh = ssf.mesh();
46 tmp<VolField<GradType>> tgGrad
58 extrapolatedCalculatedFvPatchField<GradType>::typeName
61 VolField<GradType>& gGrad = tgGrad.ref();
64 const labelUList& neighbour = mesh.neighbour();
67 Field<GradType>& igGrad = gGrad;
68 const Field<Type>& issf = ssf;
72 GradType Sfssf = Sf[facei]*issf[facei];
74 igGrad[owner[facei]] += Sfssf;
75 igGrad[neighbour[facei]] -= Sfssf;
80 const fvPatch&
p = mesh.boundary()[
patchi];
83 const fvsPatchField<Type>& pssf = ssf.boundaryField()[
patchi];
87 igGrad[pFaceCells[facei]] += pSf[facei]*pssf[facei];
93 gGrad.correctBoundaryConditions();
106 const VolField<Type>& vsf,
112 tmp<VolField<GradType>> tgGrad
116 VolField<GradType>& gGrad = tgGrad.ref();
#define forAll(list, i)
Loop across all elements in list.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
static tmp< VolField< typename outerProduct< vector, Type >::type > > gradf(const SurfaceField< Type > &, const word &name)
Return the gradient of the given field.
virtual tmp< VolField< typename outerProduct< vector, Type >::type > > calcGrad(const VolField< Type > &vsf, const word &name) const
Return the gradient of the given field to the gradScheme::grad.
static void correctBoundaryConditions(const VolField< Type > &, VolField< typename outerProduct< vector, Type >::type > &)
Correct the boundary values of the gradient using the patchField.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
A class for managing temporary objects.
volVectorField vectorField(fieldObject, mesh)
U correctBoundaryConditions()
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.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimLength
UList< label > labelUList
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.