46 const fvMesh&
mesh = vsf.mesh();
48 tmp<volVectorField> tGrad = basicGradScheme_().calcGrad(vsf,
name);
68 label own = owner[facei];
69 label nei = neighbour[facei];
71 scalar vsfOwn = vsf[own];
72 scalar vsfNei = vsf[nei];
74 maxVsf[own] =
max(maxVsf[own], vsfNei);
75 minVsf[own] =
min(minVsf[own], vsfNei);
77 maxVsf[nei] =
max(maxVsf[nei], vsfOwn);
78 minVsf[nei] =
min(minVsf[nei], vsfOwn);
82 const volScalarField::Boundary& bsf = vsf.boundaryField();
92 const scalarField psfNei(psf.patchNeighbourField());
96 label own = pOwner[pFacei];
97 scalar vsfNei = psfNei[pFacei];
99 maxVsf[own] =
max(maxVsf[own], vsfNei);
100 minVsf[own] =
min(minVsf[own], vsfNei);
107 label own = pOwner[pFacei];
108 scalar vsfNei = psf[pFacei];
110 maxVsf[own] =
max(maxVsf[own], vsfNei);
111 minVsf[own] =
min(minVsf[own], vsfNei);
121 const scalarField maxMinVsf((1.0/k_ - 1.0)*(maxVsf - minVsf));
132 label own = owner[facei];
133 label nei = neighbour[facei];
162 label own = pOwner[pFacei];
174 g.correctBoundaryConditions();
211 label own = owner[facei];
212 label nei = neighbour[facei];
214 const vector& vsfOwn = vsf[own];
215 const vector& vsfNei = vsf[nei];
217 maxVsf[own] =
max(maxVsf[own], vsfNei);
218 minVsf[own] =
min(minVsf[own], vsfNei);
220 maxVsf[nei] =
max(maxVsf[nei], vsfOwn);
221 minVsf[nei] =
min(minVsf[nei], vsfOwn);
238 label own = pOwner[pFacei];
239 const vector& vsfNei = psfNei[pFacei];
241 maxVsf[own] =
max(maxVsf[own], vsfNei);
242 minVsf[own] =
min(minVsf[own], vsfNei);
249 label own = pOwner[pFacei];
250 const vector& vsfNei = psf[pFacei];
252 maxVsf[own] =
max(maxVsf[own], vsfNei);
253 minVsf[own] =
min(minVsf[own], vsfNei);
263 const vectorField maxMinVsf((1.0/k_ - 1.0)*(maxVsf - minVsf));
274 label own = owner[facei];
275 label nei = neighbour[facei];
304 label own = pOwner[pFacei];
#define forAll(list, i)
Loop across all elements in list.
makeFvGradScheme(cellMDLimitedGrad)
Graphite solid properties.
const GeoMesh & mesh() const
Return mesh.
Generic GeometricBoundaryField class.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
void correctBoundaryConditions()
Correct boundary field.
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & C() const
Return cell centres.
const labelUList & owner() const
Internal face owner.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const surfaceVectorField & Cf() const
Return face centres.
const labelUList & neighbour() const
Internal face neighbour.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual bool coupled() const
Return true if this patch field is coupled.
virtual tmp< Field< Type > > patchNeighbourField(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) const
Return patchField on the opposite patch of a coupled patch.
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.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
volScalarField scalarField(fieldObject, mesh)
volVectorField vectorField(fieldObject, mesh)
U correctBoundaryConditions()
static const coefficient C("C", dimTemperature, 234.5)
VolField< vector > volVectorField
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
VolField< scalar > volScalarField
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
SurfaceField< vector > surfaceVectorField
UList< label > labelUList
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
fvPatchField< scalar > fvPatchScalarField