48 const fvMesh&
mesh = vsf.mesh();
50 tmp<volVectorField> tGrad = basicGradScheme_().calcGrad(vsf, name);
60 const labelUList& neighbour = mesh.neighbour();
70 label own = owner[facei];
71 label nei = neighbour[facei];
73 scalar vsfOwn = vsf[own];
74 scalar vsfNei = vsf[nei];
76 maxVsf[own] =
max(maxVsf[own], vsfNei);
77 minVsf[own] =
min(minVsf[own], vsfNei);
79 maxVsf[nei] =
max(maxVsf[nei], vsfOwn);
80 minVsf[nei] =
min(minVsf[nei], vsfOwn);
84 const volScalarField::Boundary& bsf = vsf.boundaryField();
94 const scalarField psfNei(psf.patchNeighbourField());
98 label own = pOwner[pFacei];
99 scalar vsfNei = psfNei[pFacei];
101 maxVsf[own] =
max(maxVsf[own], vsfNei);
102 minVsf[own] =
min(minVsf[own], vsfNei);
109 label own = pOwner[pFacei];
110 scalar vsfNei = psf[pFacei];
112 maxVsf[own] =
max(maxVsf[own], vsfNei);
113 minVsf[own] =
min(minVsf[own], vsfNei);
123 const scalarField maxMinVsf((1.0/k_ - 1.0)*(maxVsf - minVsf));
134 label own = owner[facei];
135 label nei = neighbour[facei];
164 label own = pOwner[pFacei];
176 g.correctBoundaryConditions();
213 label own = owner[facei];
214 label nei = neighbour[facei];
216 const vector& vsfOwn = vsf[own];
217 const vector& vsfNei = vsf[nei];
219 maxVsf[own] =
max(maxVsf[own], vsfNei);
220 minVsf[own] =
min(minVsf[own], vsfNei);
222 maxVsf[nei] =
max(maxVsf[nei], vsfOwn);
223 minVsf[nei] =
min(minVsf[nei], vsfOwn);
240 label own = pOwner[pFacei];
241 const vector& vsfNei = psfNei[pFacei];
243 maxVsf[own] =
max(maxVsf[own], vsfNei);
244 minVsf[own] =
min(minVsf[own], vsfNei);
251 label own = pOwner[pFacei];
252 const vector& vsfNei = psf[pFacei];
254 maxVsf[own] =
max(maxVsf[own], vsfNei);
255 minVsf[own] =
min(minVsf[own], vsfNei);
265 const vectorField maxMinVsf((1.0/k_ - 1.0)*(maxVsf - minVsf));
276 label own = owner[facei];
277 label nei = neighbour[facei];
306 label own = pOwner[pFacei];
Graphite solid properties.
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
rDeltaT correctBoundaryConditions()
const surfaceVectorField & Cf() const
Return face centres.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
volVectorField vectorField(fieldObject, mesh)
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
GeometricField< vector, fvPatchField, volMesh > volVectorField
UList< label > labelUList
const labelUList & neighbour() const
Internal face neighbour.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
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.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from string.
virtual bool coupled() const
Return true if this patch field is coupled.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
volScalarField scalarField(fieldObject, mesh)
const Mesh & mesh() const
Return mesh.
makeFvGradScheme(cellMDLimitedGrad)
const labelUList & owner() const
Internal face owner.
Mesh data needed to do the Finite Volume discretisation.
void correctBoundaryConditions()
Correct boundary field.
const volVectorField & C() const
Return cell centres.
A class for managing temporary objects.
const dimensionedVector & g
virtual tmp< Field< Type > > patchNeighbourField(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) const
Return patchField on the opposite patch of a coupled patch.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.