This boundary condition supplies a fixed gradient condition, such that the patch values are calculated using: More...
Public Member Functions | |
TypeName ("fixedGradient") | |
fixedGradientFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &) | |
fixedGradientFvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &) | |
fixedGradientFvPatchField (const fixedGradientFvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &) | |
fixedGradientFvPatchField (const fixedGradientFvPatchField< Type > &) | |
virtual tmp< fvPatchField< Type > > | clone () const |
fixedGradientFvPatchField (const fixedGradientFvPatchField< Type > &, const DimensionedField< Type, volMesh > &) | |
virtual tmp< fvPatchField< Type > > | clone (const DimensionedField< Type, volMesh > &iF) const |
virtual Field< Type > & | gradient () |
virtual const Field< Type > & | gradient () const |
virtual void | autoMap (const fvPatchFieldMapper &) |
virtual void | rmap (const fvPatchField< Type > &, const labelList &) |
virtual tmp< Field< Type > > | snGrad () const |
virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) |
virtual tmp< Field< Type > > | valueInternalCoeffs (const tmp< scalarField > &) const |
virtual tmp< Field< Type > > | valueBoundaryCoeffs (const tmp< scalarField > &) const |
virtual tmp< Field< Type > > | gradientInternalCoeffs () const |
virtual tmp< Field< Type > > | gradientBoundaryCoeffs () const |
virtual void | write (Ostream &) const |
![]() | |
TypeName ("fvPatchField") | |
declareRunTimeSelectionTable (tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF)) | |
declareRunTimeSelectionTable (tmp, fvPatchField, patchMapper,(const fvPatchField< Type > &ptf, const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const fvPatchFieldMapper &m),(dynamic_cast< const fvPatchFieldType & >(ptf), p, iF, m)) | |
declareRunTimeSelectionTable (tmp, fvPatchField, dictionary,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const dictionary &dict),(p, iF, dict)) | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &) | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Type &value) | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const word &patchType) | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Field< Type > &) | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &, const bool valueRequired=true) | |
fvPatchField (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &) | |
fvPatchField (const fvPatchField< Type > &) | |
fvPatchField (const fvPatchField< Type > &, const DimensionedField< Type, volMesh > &) | |
virtual tmp< fvPatchField< Type > > | clone () const |
Foam::tmp< Foam::fvPatchField< Type > > | NewCalculatedType (const fvPatch &p) |
Foam::tmp< Foam::fvPatchField< Type > > | NewCalculatedType (const fvPatchField< Type2 > &pf) |
virtual | ~fvPatchField ()=default |
bool | useImplicit () const noexcept |
bool | useImplicit (bool on) noexcept |
virtual bool | fixesValue () const |
virtual bool | assignable () const |
virtual bool | coupled () const |
const objectRegistry & | db () const |
const fvPatch & | patch () const |
const DimensionedField< Type, volMesh > & | internalField () const |
const Field< Type > & | primitiveField () const |
const word & | patchType () const |
word & | patchType () |
bool | updated () const |
bool | manipulatedMatrix () const |
virtual tmp< Field< Type > > | snGrad () const |
virtual tmp< Field< Type > > | snGrad (const scalarField &deltaCoeffs) const |
virtual void | updateCoeffs () |
virtual void | updateWeightedCoeffs (const scalarField &weights) |
virtual tmp< Field< Type > > | patchInternalField () const |
virtual void | patchInternalField (Field< Type > &) const |
virtual tmp< Field< Type > > | patchNeighbourField () const |
virtual void | initEvaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) |
virtual tmp< Field< Type > > | valueInternalCoeffs (const tmp< Field< scalar >> &) const |
virtual tmp< Field< Type > > | valueBoundaryCoeffs (const tmp< Field< scalar >> &) const |
virtual tmp< Field< Type > > | gradientInternalCoeffs () const |
virtual tmp< Field< Type > > | gradientInternalCoeffs (const scalarField &deltaCoeffs) const |
virtual tmp< Field< Type > > | gradientBoundaryCoeffs () const |
virtual tmp< Field< Type > > | gradientBoundaryCoeffs (const scalarField &deltaCoeffs) const |
virtual void | manipulateMatrix (fvMatrix< Type > &matrix) |
virtual void | manipulateMatrix (fvMatrix< Type > &matrix, const scalarField &weights) |
virtual void | manipulateMatrix (fvMatrix< Type > &matrix, const label iMatrix, const direction cmp) |
void | check (const fvPatchField< Type > &) const |
virtual void | operator= (const UList< Type > &) |
virtual void | operator= (const fvPatchField< Type > &) |
virtual void | operator= (const Type &) |
virtual void | operator+= (const fvPatchField< Type > &) |
virtual void | operator+= (const Field< Type > &) |
virtual void | operator+= (const Type &) |
virtual void | operator-= (const fvPatchField< Type > &) |
virtual void | operator-= (const Field< Type > &) |
virtual void | operator-= (const Type &) |
virtual void | operator*= (const fvPatchField< scalar > &) |
virtual void | operator*= (const Field< scalar > &) |
virtual void | operator*= (const scalar) |
virtual void | operator/= (const fvPatchField< scalar > &) |
virtual void | operator/= (const Field< scalar > &) |
virtual void | operator/= (const scalar) |
virtual void | operator== (const fvPatchField< Type > &) |
virtual void | operator== (const Field< Type > &) |
virtual void | operator== (const Type &) |
Additional Inherited Members | |
![]() | |
typedef fvPatch | Patch |
typedef calculatedFvPatchField< Type > | Calculated |
![]() | |
static tmp< fvPatchField< Type > > | New (const word &, const fvPatch &, const DimensionedField< Type, volMesh > &) |
static tmp< fvPatchField< Type > > | New (const word &, const word &actualPatchType, const fvPatch &, const DimensionedField< Type, volMesh > &) |
static tmp< fvPatchField< Type > > | New (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &) |
static tmp< fvPatchField< Type > > | New (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &) |
static tmp< fvPatchField< Type > > | NewCalculatedType (const fvPatch &) |
static tmp< fvPatchField< Type > > | NewCalculatedType (const fvPatchField< Type2 > &) |
static const word & | calculatedType () |
![]() | |
static int | disallowGenericFvPatchField |
This boundary condition supplies a fixed gradient condition, such that the patch values are calculated using:
where
![]() | = | patch values |
![]() | = | internal field values |
![]() | = | gradient (user-specified) |
![]() | = | inverse distance from patch face centre to cell centre |
Property | Description | Required | Default value |
---|---|---|---|
gradient | gradient | yes |
Example of the boundary condition specification:
<patchName> { type fixedGradient; gradient uniform 0; }
Definition at line 104 of file fixedGradientFvPatchField.H.
fixedGradientFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< Type, volMesh > & | iF | ||
) |
Definition at line 28 of file fixedGradientFvPatchField.C.
fixedGradientFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< Type, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 40 of file fixedGradientFvPatchField.C.
References Foam::stringOps::evaluate().
fixedGradientFvPatchField | ( | const fixedGradientFvPatchField< Type > & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< Type, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 55 of file fixedGradientFvPatchField.C.
References Foam::endl(), FieldMapper::hasUnmapped(), Foam::nl, Foam::notNull(), p, and WarningInFunction.
fixedGradientFvPatchField | ( | const fixedGradientFvPatchField< Type > & | ptf | ) |
Definition at line 79 of file fixedGradientFvPatchField.C.
fixedGradientFvPatchField | ( | const fixedGradientFvPatchField< Type > & | ptf, |
const DimensionedField< Type, volMesh > & | iF | ||
) |
Definition at line 90 of file fixedGradientFvPatchField.C.
TypeName | ( | "fixedGradient" | ) |
|
inlinevirtual |
Reimplemented in uniformFixedGradientFvPatchField< Type >.
Definition at line 153 of file fixedGradientFvPatchField.H.
|
inlinevirtual |
Reimplemented from fvPatchField< Type >.
Reimplemented in uniformFixedGradientFvPatchField< Type >.
Definition at line 170 of file fixedGradientFvPatchField.H.
|
inlinevirtual |
Definition at line 186 of file fixedGradientFvPatchField.H.
Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().
|
inlinevirtual |
Definition at line 191 of file fixedGradientFvPatchField.H.
|
virtual |
Reimplemented from fvPatchField< Type >.
Definition at line 104 of file fixedGradientFvPatchField.C.
|
virtual |
Reimplemented from fvPatchField< Type >.
Definition at line 115 of file fixedGradientFvPatchField.C.
References fixedGradientFvPatchField< Type >::rmap().
Referenced by fixedGradientFvPatchField< Type >::rmap().
Definition at line 216 of file fixedGradientFvPatchField.H.
|
virtual |
Reimplemented from fvPatchField< Type >.
Definition at line 130 of file fixedGradientFvPatchField.C.
References Foam::stringOps::evaluate(), and Foam::foamVersion::patch.
|
virtual |
Definition at line 149 of file fixedGradientFvPatchField.C.
References Foam::New().
|
virtual |
Definition at line 160 of file fixedGradientFvPatchField.C.
References Foam::foamVersion::patch.
|
virtual |
Definition at line 170 of file fixedGradientFvPatchField.C.
References Foam::New(), and Foam::Zero.
|
virtual |
Definition at line 178 of file fixedGradientFvPatchField.C.
|
virtual |
Reimplemented from fvPatchField< Type >.
Reimplemented in uniformFixedGradientFvPatchField< Type >.
Definition at line 185 of file fixedGradientFvPatchField.C.
References os(), and Foam::vtk::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.