Go to the documentation of this file.
50 const fvMesh&
mesh = vsf.mesh();
52 tmp<volVectorField> tGrad = basicGradScheme_().calcGrad(vsf,
name);
72 label own = owner[facei];
73 label nei = neighbour[facei];
75 scalar vsfOwn = vsf[own];
76 scalar vsfNei = vsf[nei];
78 maxVsf[own] =
max(maxVsf[own], vsfNei);
79 minVsf[own] =
min(minVsf[own], vsfNei);
81 maxVsf[nei] =
max(maxVsf[nei], vsfOwn);
82 minVsf[nei] =
min(minVsf[nei], vsfOwn);
86 const volScalarField::Boundary& bsf = vsf.boundaryField();
96 const scalarField psfNei(psf.patchNeighbourField());
100 label own = pOwner[pFacei];
101 scalar vsfNei = psfNei[pFacei];
103 maxVsf[own] =
max(maxVsf[own], vsfNei);
104 minVsf[own] =
min(minVsf[own], vsfNei);
111 label own = pOwner[pFacei];
112 scalar vsfNei = psf[pFacei];
114 maxVsf[own] =
max(maxVsf[own], vsfNei);
115 minVsf[own] =
min(minVsf[own], vsfNei);
125 const scalarField maxMinVsf((1.0/k_ - 1.0)*(maxVsf - minVsf));
136 label own = owner[facei];
137 label nei = neighbour[facei];
162 const vectorField& pCf = Cf.boundaryField()[patchi];
166 label own = pOwner[pFacei];
178 g.correctBoundaryConditions();
215 label own = owner[facei];
216 label nei = neighbour[facei];
218 const vector& vsfOwn = vsf[own];
219 const vector& vsfNei = vsf[nei];
221 maxVsf[own] =
max(maxVsf[own], vsfNei);
222 minVsf[own] =
min(minVsf[own], vsfNei);
224 maxVsf[nei] =
max(maxVsf[nei], vsfOwn);
225 minVsf[nei] =
min(minVsf[nei], vsfOwn);
242 label own = pOwner[pFacei];
243 const vector& vsfNei = psfNei[pFacei];
245 maxVsf[own] =
max(maxVsf[own], vsfNei);
246 minVsf[own] =
min(minVsf[own], vsfNei);
253 label own = pOwner[pFacei];
254 const vector& vsfNei = psf[pFacei];
256 maxVsf[own] =
max(maxVsf[own], vsfNei);
257 minVsf[own] =
min(minVsf[own], vsfNei);
267 const vectorField maxMinVsf((1.0/k_ - 1.0)*(maxVsf - minVsf));
278 label own = owner[facei];
279 label nei = neighbour[facei];
308 label own = pOwner[pFacei];
320 g.correctBoundaryConditions();
fvPatchField< scalar > fvPatchScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
makeFvGradScheme(cellMDLimitedGrad)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
Field< vector > vectorField
Specialisation of Field<T> for vector.
cellMask correctBoundaryConditions()
virtual bool coupled() const
Return true if this patch field is coupled.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const complex &c)
Return string representation of complex.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Mesh data needed to do the Finite Volume discretisation.
const uniformDimensionedVectorField & g
virtual tmp< Field< Type > > patchNeighbourField() const
Return patchField on the opposite patch of a coupled patch.
GeometricField< vector, fvPatchField, volMesh > volVectorField
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.
UList< label > labelUList
A UList of labels.
Graphite solid properties.
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
const Boundary & boundaryField() const
Return const-reference to the boundary field.