Go to the documentation of this file.
43 const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf,
49 const fvMesh&
mesh = ssf.mesh();
51 tmp<GeometricField<GradType, fvPatchField, volMesh> > tgGrad
53 new GeometricField<GradType, fvPatchField, volMesh>
68 pTraits<GradType>::zero
70 zeroGradientFvPatchField<GradType>::typeName
73 GeometricField<GradType, fvPatchField, volMesh>& gGrad = tgGrad();
79 Field<GradType>& igGrad = gGrad;
80 const Field<Type>& issf = ssf;
84 GradType Sfssf = Sf[facei]*issf[facei];
86 igGrad[owner[facei]] += Sfssf;
87 igGrad[neighbour[facei]] -= Sfssf;
97 const fvsPatchField<Type>& pssf = ssf.boundaryField()[
patchi];
101 igGrad[pFaceCells[facei]] += pSf[facei]*pssf[facei];
107 gGrad.correctBoundaryConditions();
125 const GeometricField<Type, fvPatchField, volMesh>& vsf,
131 tmp<GeometricField<GradType, fvPatchField, volMesh> > tgGrad
135 GeometricField<GradType, fvPatchField, volMesh>& gGrad = tgGrad();
163 gGrad.boundaryField()[
patchi] +=
n *
166 - (
n & gGrad.boundaryField()[
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)
Return the gradient of the given field.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
virtual tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > calcGrad(const GeometricField< Type, fvPatchField, volMesh > &vsf, const word &name) const
Return the gradient of the given field to the gradScheme::grad.
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, int(pTraits< arg1 >::rank)+int(pTraits< arg2 >::rank) >::type type
tmp< surfaceScalarField > interpolate(const RhoType &rho)
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
static void correctBoundaryConditions(const GeometricField< Type, fvPatchField, volMesh > &, GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > &)
Correct the boundary values of the gradient using the patchField.
Pre-declare SubField and related Field type.
volVectorField vectorField(fieldObject, mesh)
U correctBoundaryConditions()
UList< label > labelUList
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Generic GeometricField class.
word name(const complex &)
Return a string representation of a complex.