Energy region coupled implicit boundary condition. The fvPatch is treated as uncoupled from the delta point of view. In the mesh the fvPatch is an interface and is incorporated into the matrix implicitly. More...
Public Types | |
enum | kappaMethodType { SOLID, FLUID, UNDEFINED } |
![]() | |
typedef fvPatch | Patch |
Public Member Functions | |
TypeName ("compressible::energyRegionCoupled") | |
Runtime type information. More... | |
energyRegionCoupledFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
energyRegionCoupledFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
energyRegionCoupledFvPatchScalarField (const energyRegionCoupledFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given energyRegionCoupledFvPatchScalarField. More... | |
energyRegionCoupledFvPatchScalarField (const energyRegionCoupledFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchField< scalar > > | clone () const |
Construct and return a clone. More... | |
energyRegionCoupledFvPatchScalarField (const energyRegionCoupledFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual | ~energyRegionCoupledFvPatchScalarField () |
Destructor. More... | |
word | kappaMethod () const |
Method to obtain K. More... | |
virtual tmp< scalarField > | patchNeighbourField () const |
Return neighbour coupled internal cell data. More... | |
virtual tmp< scalarField > | snGrad () const |
Return patch-normal gradient. More... | |
virtual tmp< scalarField > | snGrad (const scalarField &deltaCoeffs) const |
Return patch-normal gradient. More... | |
virtual void | evaluate (const Pstream::commsTypes commsType) |
Evaluate the patch field. More... | |
virtual void | updateInterfaceMatrix (Field< scalar > &result, const scalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const |
Update result field based on interface functionality. More... | |
virtual void | updateInterfaceMatrix (Field< scalar > &, const Field< scalar > &, const scalarField &, const Pstream::commsTypes commsType) const |
Update result field based on interface functionality. More... | |
virtual const word & | interfaceFieldType () const |
Return the interface type. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
![]() | |
TypeName (coupledFvPatch::typeName_()) | |
Runtime type information. More... | |
coupledFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
coupledFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const Field< scalar > &) | |
Construct from patch and internal field and patch field. More... | |
coupledFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
coupledFvPatchField (const coupledFvPatchField< scalar > &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping the given coupledFvPatchField onto a new patch. More... | |
coupledFvPatchField (const coupledFvPatchField< scalar > &) | |
Construct as copy. More... | |
coupledFvPatchField (const coupledFvPatchField< scalar > &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | clone () const=0 |
Construct and return a clone. More... | |
virtual bool | coupled () const |
Return true if this patch field is derived from. More... | |
virtual tmp< Field< scalar > > | patchNeighbourField () const=0 |
Return neighbour field of internal field. More... | |
virtual tmp< Field< scalar > > | snGrad () const |
Return patch-normal gradient. More... | |
virtual void | initEvaluate (const Pstream::commsTypes commsType) |
Initialise the evaluation of the patch field. More... | |
virtual tmp< Field< scalar > > | valueInternalCoeffs (const tmp< scalarField > &) const |
Return the matrix diagonal coefficients corresponding to the. More... | |
virtual tmp< Field< scalar > > | valueBoundaryCoeffs (const tmp< scalarField > &) const |
Return the matrix source coefficients corresponding to the. More... | |
virtual tmp< Field< scalar > > | gradientInternalCoeffs (const scalarField &deltaCoeffs) const |
Return the matrix diagonal coefficients corresponding to the. More... | |
virtual tmp< Field< scalar > > | gradientInternalCoeffs () const |
Return the matrix diagonal coefficients corresponding to the. More... | |
virtual tmp< Field< scalar > > | gradientBoundaryCoeffs (const scalarField &deltaCoeffs) const |
Return the matrix source coefficients corresponding to the. More... | |
virtual tmp< Field< scalar > > | gradientBoundaryCoeffs () const |
Return the matrix source coefficients corresponding to the. More... | |
![]() | |
LduInterfaceField (const lduInterface &patch) | |
Construct given coupled patch. More... | |
TypeName ("LduInterfaceField") | |
Runtime type information. More... | |
virtual | ~LduInterfaceField () |
Destructor. More... | |
virtual void | initInterfaceMatrixUpdate (Field< scalar > &, const Field< scalar > &, const scalarField &, const Pstream::commsTypes commsType) const |
Initialise neighbour matrix update. More... | |
virtual void | initInterfaceMatrixUpdate (scalarField &, const scalarField &, const scalarField &, const direction, const Pstream::commsTypes commsType) const |
Inherit initInterfaceMatrixUpdate from lduInterfaceField. More... | |
virtual void | updateInterfaceMatrix (scalarField &, const scalarField &, const scalarField &, const direction, const Pstream::commsTypes commsType) const =0 |
Inherit updateInterfaceMatrix from lduInterfaceField. More... | |
![]() | |
TypeName ("lduInterfaceField") | |
Runtime type information. More... | |
lduInterfaceField (const lduInterface &patch) | |
Construct given coupled patch. More... | |
virtual | ~lduInterfaceField () |
Destructor. More... | |
const lduInterface & | interface () const |
Return the interface. More... | |
bool | updatedMatrix () const |
Whether matrix has been updated. More... | |
bool & | updatedMatrix () |
Whether matrix has been updated. More... | |
virtual bool | ready () const |
Is all data available. More... | |
virtual void | initInterfaceMatrixUpdate (scalarField &, const scalarField &, const scalarField &, const direction, const Pstream::commsTypes commsType) const |
Initialise neighbour matrix update. More... | |
![]() | |
TypeName ("fvPatchField") | |
Runtime type information. More... | |
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 > &) | |
Construct from patch and internal field. More... | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const word &patchType) | |
Construct from patch and internal field and patch type. More... | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Field< Type > &) | |
Construct from patch and internal field and patch field. More... | |
fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &, const bool valueRequired=false) | |
Construct from patch, internal field and dictionary. More... | |
fvPatchField (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping the given fvPatchField onto a new patch. More... | |
fvPatchField (const fvPatchField< Type > &) | |
Construct as copy. More... | |
fvPatchField (const fvPatchField< Type > &, const DimensionedField< Type, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< Type > > | clone (const DimensionedField< Type, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
Foam::tmp< Foam::fvPatchField< Type > > | NewCalculatedType (const fvPatch &p) |
Foam::tmp< Foam::fvPatchField< Type > > | NewCalculatedType (const fvPatchField< Type2 > &pf) |
virtual | ~fvPatchField () |
Destructor. More... | |
const objectRegistry & | db () const |
Return local objectRegistry. More... | |
const fvPatch & | patch () const |
Return patch. More... | |
const DimensionedField< Type, volMesh > & | dimensionedInternalField () const |
Return dimensioned internal field reference. More... | |
const Field< Type > & | internalField () const |
Return internal field reference. More... | |
const word & | patchType () const |
Optional patch type. More... | |
word & | patchType () |
Optional patch type. More... | |
virtual bool | fixesValue () const |
Return true if this patch field fixes a value. More... | |
bool | updated () const |
Return true if the boundary condition has already been updated. More... | |
bool | manipulatedMatrix () const |
Return true if the matrix has already been manipulated. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchField< Type > &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | updateCoeffs (const scalarField &weights) |
Update the coefficients associated with the patch field. More... | |
virtual tmp< Field< Type > > | patchInternalField () const |
Return internal field next to patch as patch field. More... | |
virtual void | patchInternalField (Field< Type > &) const |
Return internal field next to patch as patch field. More... | |
virtual void | manipulateMatrix (fvMatrix< Type > &matrix) |
Manipulate matrix. More... | |
virtual void | manipulateMatrix (fvMatrix< Type > &matrix, const scalarField &weights) |
Manipulate matrix with given weights. More... | |
void | writeEntryIfDifferent (Ostream &os, const word &entryName, const EntryType &value1, const EntryType &value2) const |
Helper function to write the keyword and entry only if the. More... | |
void | check (const fvPatchField< Type > &) const |
Check fvPatchField<Type> against given fvPatchField<Type> More... | |
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 &) |
Private Member Functions | |
tmp< scalarField > | weights () const |
Local weight for this coupled field. More... | |
tmp< scalarField > | patchNeighbourTemperatureField () const |
Return nbr temperature internal field. More... | |
tmp< scalarField > | patchInternalTemperatureField () const |
Return local temperature internal field. More... | |
tmp< scalarField > | kappa () const |
Return kappa. More... | |
void | setMethod () const |
Set method. More... | |
Private Attributes | |
const regionCoupledBaseFvPatch & | regionCoupledPatch_ |
Local reference to region couple patch. More... | |
kappaMethodType | method_ |
How to get K. More... | |
const basicThermo * | nbrThermoPtr_ |
AutoPtr to nbr thermo. More... | |
const basicThermo * | thermoPtr_ |
AutoPtr to my thermo. More... | |
Static Private Attributes | |
static const NamedEnum< kappaMethodType, 3 > | methodTypeNames_ |
Methof to extract kappa. More... | |
Additional Inherited Members | |
![]() | |
static tmp< fvPatchField< Type > > | New (const word &, const fvPatch &, const DimensionedField< Type, volMesh > &) |
Return a pointer to a new patchField created on freestore given. More... | |
static tmp< fvPatchField< Type > > | New (const word &, const word &actualPatchType, const fvPatch &, const DimensionedField< Type, volMesh > &) |
Return a pointer to a new patchField created on freestore given. More... | |
static tmp< fvPatchField< Type > > | New (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &) |
Return a pointer to a new patchField created on freestore from. More... | |
static tmp< fvPatchField< Type > > | New (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &) |
Return a pointer to a new patchField created on freestore. More... | |
static tmp< fvPatchField< Type > > | NewCalculatedType (const fvPatch &) |
Return a pointer to a new calculatedFvPatchField created on. More... | |
static tmp< fvPatchField< Type > > | NewCalculatedType (const fvPatchField< Type2 > &) |
Return a pointer to a new calculatedFvPatchField created on. More... | |
static const word & | calculatedType () |
Return the type of the calculated for of fvPatchField. More... | |
![]() | |
static int | disallowGenericFvPatchField |
Debug switch to disallow the use of genericFvPatchField. More... | |
Energy region coupled implicit boundary condition. The fvPatch is treated as uncoupled from the delta point of view. In the mesh the fvPatch is an interface and is incorporated into the matrix implicitly.
Definition at line 57 of file energyRegionCoupledFvPatchScalarField.H.
enum kappaMethodType |
Enumerator | |
---|---|
SOLID | |
FLUID | |
UNDEFINED |
Definition at line 64 of file energyRegionCoupledFvPatchScalarField.H.
energyRegionCoupledFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 211 of file energyRegionCoupledFvPatchScalarField.C.
Referenced by energyRegionCoupledFvPatchScalarField::clone().
energyRegionCoupledFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 243 of file energyRegionCoupledFvPatchScalarField.C.
References dimensionedInternalField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and p.
energyRegionCoupledFvPatchScalarField | ( | const energyRegionCoupledFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given energyRegionCoupledFvPatchScalarField.
onto a new patch
Definition at line 226 of file energyRegionCoupledFvPatchScalarField.C.
Construct as copy.
Definition at line 270 of file energyRegionCoupledFvPatchScalarField.C.
energyRegionCoupledFvPatchScalarField | ( | const energyRegionCoupledFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 284 of file energyRegionCoupledFvPatchScalarField.C.
|
inlinevirtual |
Destructor.
Definition at line 179 of file energyRegionCoupledFvPatchScalarField.H.
|
private |
Local weight for this coupled field.
Definition at line 149 of file energyRegionCoupledFvPatchScalarField.C.
References fvPatch::delta(), forAll, Foam::constant::electromagnetic::kappa, energyRegionCoupledFvPatchScalarField::kappa(), fvPatch::lookupPatchField(), fvPatch::nf(), fvPatch::patch(), Foam::refCast(), energyRegionCoupledFvPatchScalarField::setMethod(), and w().
|
private |
Return nbr temperature internal field.
Definition at line 376 of file energyRegionCoupledFvPatchScalarField.C.
References fvPatch::faceCells().
|
private |
Return local temperature internal field.
Definition at line 395 of file energyRegionCoupledFvPatchScalarField.C.
|
private |
Return kappa.
Definition at line 103 of file energyRegionCoupledFvPatchScalarField.C.
References basicThermo::dictName, Foam::exit(), Foam::FatalError, FatalErrorInFunction, ThermalDiffusivity< BasicTurbulenceModel >::kappaEff(), and turbulenceModel::propertiesName.
Referenced by energyRegionCoupledFvPatchScalarField::weights().
|
private |
Set method.
Definition at line 58 of file energyRegionCoupledFvPatchScalarField.C.
References fvPatchField< scalar >::db(), basicThermo::dictName, energyRegionCoupledFvPatchScalarField::FLUID, objectRegistry::lookupObject(), energyRegionCoupledFvPatchScalarField::method_, regionCoupledBaseFvPatch::nbrMesh(), energyRegionCoupledFvPatchScalarField::nbrThermoPtr_, turbulenceModel::propertiesName, energyRegionCoupledFvPatchScalarField::regionCoupledPatch_, energyRegionCoupledFvPatchScalarField::SOLID, energyRegionCoupledFvPatchScalarField::thermoPtr_, and energyRegionCoupledFvPatchScalarField::UNDEFINED.
Referenced by energyRegionCoupledFvPatchScalarField::weights().
TypeName | ( | "compressible::energyRegionCoupled" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 150 of file energyRegionCoupledFvPatchScalarField.H.
References energyRegionCoupledFvPatchScalarField::energyRegionCoupledFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Implements coupledFvPatchField< scalar >.
Definition at line 167 of file energyRegionCoupledFvPatchScalarField.H.
References energyRegionCoupledFvPatchScalarField::energyRegionCoupledFvPatchScalarField().
|
inline |
Method to obtain K.
Definition at line 188 of file energyRegionCoupledFvPatchScalarField.H.
References energyRegionCoupledFvPatchScalarField::method_, and energyRegionCoupledFvPatchScalarField::methodTypeNames_.
|
virtual |
Return neighbour coupled internal cell data.
Definition at line 349 of file energyRegionCoupledFvPatchScalarField.C.
References fvPatch::faceCells(), and patchi.
|
virtual |
Return patch-normal gradient.
Definition at line 300 of file energyRegionCoupledFvPatchScalarField.C.
References Debug.
|
virtual |
Return patch-normal gradient.
Note: the deltaCoeffs supplied are not used
Reimplemented from coupledFvPatchField< scalar >.
Definition at line 310 of file energyRegionCoupledFvPatchScalarField.C.
References Debug, and Foam::fvc::snGrad().
|
virtual |
Evaluate the patch field.
Reimplemented from coupledFvPatchField< scalar >.
Definition at line 318 of file energyRegionCoupledFvPatchScalarField.C.
References fvPatchField::evaluate(), Field::operator, and patchi.
|
virtual |
Update result field based on interface functionality.
Implements coupledFvPatchField< scalar >.
Definition at line 409 of file energyRegionCoupledFvPatchScalarField.C.
References forAll, internalField(), patchi, and Field::T().
|
virtual |
Update result field based on interface functionality.
Implements coupledFvPatchField< scalar >.
Definition at line 450 of file energyRegionCoupledFvPatchScalarField.C.
References NotImplemented.
|
inlinevirtual |
Return the interface type.
Reimplemented from lduInterfaceField.
Definition at line 239 of file energyRegionCoupledFvPatchScalarField.H.
References energyRegionCoupledFvPatchScalarField::regionCoupledPatch_, and regionCoupledBaseFvPatch::regionCoupleType().
|
virtual |
Write.
Reimplemented from coupledFvPatchField< scalar >.
Definition at line 461 of file energyRegionCoupledFvPatchScalarField.C.
References fvPatchField::write().
|
private |
Local reference to region couple patch.
Definition at line 77 of file energyRegionCoupledFvPatchScalarField.H.
Referenced by energyRegionCoupledFvPatchScalarField::interfaceFieldType(), and energyRegionCoupledFvPatchScalarField::setMethod().
|
staticprivate |
Methof to extract kappa.
Definition at line 80 of file energyRegionCoupledFvPatchScalarField.H.
Referenced by energyRegionCoupledFvPatchScalarField::kappaMethod().
|
mutableprivate |
How to get K.
Definition at line 83 of file energyRegionCoupledFvPatchScalarField.H.
Referenced by energyRegionCoupledFvPatchScalarField::kappaMethod(), and energyRegionCoupledFvPatchScalarField::setMethod().
|
mutableprivate |
AutoPtr to nbr thermo.
Definition at line 86 of file energyRegionCoupledFvPatchScalarField.H.
Referenced by energyRegionCoupledFvPatchScalarField::setMethod().
|
mutableprivate |
AutoPtr to my thermo.
Definition at line 89 of file energyRegionCoupledFvPatchScalarField.H.
Referenced by energyRegionCoupledFvPatchScalarField::setMethod().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.