Go to the documentation of this file.
46 const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf,
51 typedef GeometricField<GradType, fvPatchField, volMesh> GradFieldType;
53 const fvMesh&
mesh = ssf.mesh();
55 tmp<GradFieldType> tgGrad
69 extrapolatedCalculatedFvPatchField<GradType>::typeName
72 GradFieldType& gGrad = tgGrad.ref();
78 Field<GradType>& igGrad = gGrad;
79 const Field<Type>& issf = ssf;
83 const GradType Sfssf = Sf[facei]*issf[facei];
85 igGrad[owner[facei]] += Sfssf;
86 igGrad[neighbour[facei]] -= Sfssf;
92 mesh.boundary()[patchi].faceCells();
96 const fvsPatchField<Type>& pssf = ssf.boundaryField()[patchi];
100 igGrad[pFaceCells[facei]] += pSf[facei]*pssf[facei];
106 gGrad.correctBoundaryConditions();
124 const GeometricField<Type, fvPatchField, volMesh>& vsf,
129 typedef GeometricField<GradType, fvPatchField, volMesh> GradFieldType;
131 tmp<GradFieldType> tgGrad
135 GradFieldType& gGrad = tgGrad.ref();
156 >::Boundary& gGradbf = gGrad.boundaryFieldRef();
168 gGradbf[patchi] +=
n *
171 - (
n & gGradbf[patchi])
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
static tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > gradf(const GeometricField< Type, fvsPatchField, surfaceMesh > &, const word &name)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
A class for managing temporary objects.
static constexpr const zero Zero
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad(const GeometricField< Type, fvPatchField, volMesh > &vsf, const word &name) const
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Field< vector > vectorField
Specialisation of Field<T> for vector.
static void correctBoundaryConditions(const GeometricField< Type, fvPatchField, volMesh > &, GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > &)
cellMask correctBoundaryConditions()
Generic templated field type.
word name(const expressions::valueTypeCode typeCode)
UList< label > labelUList
A UList of labels.
Generic GeometricField class.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
const Boundary & boundaryField() const