44 #ifndef fvPatchField_H 45 #define fvPatchField_H 60 class fvPatchFieldMapper;
76 Ostream& operator<<(Ostream&, const fvPatchField<Type>&);
102 bool manipulatedMatrix_;
148 (dynamic_cast<const fvPatchFieldType&>(ptf), p, iF, m)
204 const bool valueRequired=
true 261 const word& actualPatchType,
294 template<
class Type2>
350 return internalField_;
356 return internalField_;
380 return manipulatedMatrix_;
536 template<
class EntryType>
540 const word& entryName,
541 const EntryType& value1,
542 const EntryType& value2
600 #define makeFvPatchField(fvPatchTypeField) \ 602 defineNamedTemplateTypeNameAndDebug(fvPatchTypeField, 0); \ 604 int fvPatchTypeField::disallowGenericFvPatchField \ 606 debug::debugSwitch("disallowGenericFvPatchField", 0) \ 608 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patch); \ 609 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patchMapper); \ 610 defineTemplateRunTimeSelectionTable(fvPatchTypeField, dictionary); 613 #define addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \ 614 addToRunTimeSelectionTable \ 617 typePatchTypeField, \ 620 addToRunTimeSelectionTable \ 623 typePatchTypeField, \ 626 addToRunTimeSelectionTable \ 629 typePatchTypeField, \ 635 #define addRemovableToPatchFieldRunTimeSelection\ 636 (PatchTypeField, typePatchTypeField) \ 638 addRemovableToRunTimeSelectionTable \ 641 typePatchTypeField, \ 644 addRemovableToRunTimeSelectionTable \ 647 typePatchTypeField, \ 650 addRemovableToRunTimeSelectionTable \ 653 typePatchTypeField, \ 659 #define makePatchTypeField(PatchTypeField, typePatchTypeField) \ 660 defineTypeNameAndDebug(typePatchTypeField, 0); \ 661 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 664 #define makeRemovablePatchTypeField(PatchTypeField, typePatchTypeField) \ 665 defineTypeNameAndDebug(typePatchTypeField, 0); \ 666 addRemovableToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 669 #define makeTemplatePatchTypeField(fieldType, type) \ 670 defineNamedTemplateTypeNameAndDebug \ 672 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \ 675 addToPatchFieldRunTimeSelection \ 677 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \ 678 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \ 681 #define makePatchFields(type) \ 682 FOR_ALL_FIELD_TYPES(makeTemplatePatchTypeField, type) 684 #define makePatchFieldTypeName(fieldType, type) \ 685 defineNamedTemplateTypeNameAndDebug \ 687 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \ 691 #define makePatchFieldTypeNames(type) \ 692 FOR_ALL_FIELD_TYPES(makePatchFieldTypeName, type) 694 #define makePatchTypeFieldTypedef(fieldType, type) \ 695 typedef type##FvPatchField<fieldType> \ 696 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field); 698 #define makePatchTypeFieldTypedefs(type) \ 699 FOR_ALL_FIELD_TYPES(makePatchTypeFieldTypedef, type) virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
declareRunTimeSelectionTable(tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
virtual bool fixesValue() const
Return true if this patch field fixes a value.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static int disallowGenericFvPatchField
Debug switch to disallow the use of genericFvPatchField.
bool updated() const
Return true if the boundary condition has already been updated.
commsTypes
Types of communications.
virtual void operator*=(const fvPatchField< scalar > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void initEvaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Initialise the evaluation of the patch field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< Field< scalar >> &) const
Return the matrix source coefficients corresponding to the.
virtual void write(Ostream &) const
Write.
bool manipulatedMatrix() const
Return true if the matrix has already been manipulated.
static const word & calculatedType()
Return the type of the calculated for of fvPatchField.
const Field< Type > & primitiveField() const
Return internal field reference.
virtual void operator==(const fvPatchField< Type > &)
virtual bool assignable() const
Return true if the value of the patch field.
Include the header files for all the primitive types that Fields are instantiated for...
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
virtual tmp< Field< Type > > patchNeighbourField() const
Return patchField on the opposite patch of a coupled patch.
virtual void operator/=(const fvPatchField< scalar > &)
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
Foam::fvPatchFieldMapper.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
virtual bool coupled() const
Return true if this patch field is coupled.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
static tmp< fvPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
virtual void manipulateMatrix(fvMatrix< Type > &matrix)
Manipulate matrix.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< Field< scalar >> &) const
Return the matrix diagonal coefficients corresponding to the.
void check(const fvPatchField< Type > &) const
Check fvPatchField<Type> against given fvPatchField<Type>
const fvPatch & patch() const
Return patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void operator-=(const fvPatchField< Type > &)
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.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
virtual void operator+=(const fvPatchField< Type > &)
TypeName("fvPatchField")
Runtime type information.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
calculatedFvPatchField< Type > Calculated
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< fvPatchField< Type > > NewCalculatedType(const fvPatch &)
Return a pointer to a new calculatedFvPatchField created on.
const objectRegistry & db() const
Return local objectRegistry.
virtual void updateWeightedCoeffs(const scalarField &weights)
Update the coefficients associated with the patch field.
A class for managing temporary objects.
Registry of regIOobjects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
const word & patchType() const
Optional patch type.
virtual tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
const DimensionedField< Type, volMesh > & internalField() const
Return dimensioned internal field reference.