44 #ifndef fvPatchField_H 45 #define fvPatchField_H 60 class fvPatchFieldMapper;
76 Ostream& operator<<(Ostream&, const fvPatchField<Type>&);
102 bool manipulatedMatrix_;
143 (dynamic_cast<const fvPatchFieldType&>(ptf), p, iF, m)
183 const bool valueRequired=
true 193 const bool mappingRequired=
true 242 const word& actualPatchType,
275 template<
class Type2>
318 if (
type() == patch_.type())
323 typename patchConstructorTable::iterator patchTypeCstrIter
324 = patchConstructorTablePtr_->find(patch_.type());
328 != patchConstructorTablePtr_->end();
346 return internalField_;
352 return internalField_;
364 return manipulatedMatrix_;
568 #define makeFvPatchField(fvPatchTypeField) \ 570 defineNamedTemplateTypeNameAndDebug(fvPatchTypeField, 0); \ 572 int fvPatchTypeField::disallowGenericFvPatchField \ 574 debug::debugSwitch("disallowGenericFvPatchField", 0) \ 576 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patch); \ 577 defineTemplateRunTimeSelectionTable(fvPatchTypeField, patchMapper); \ 578 defineTemplateRunTimeSelectionTable(fvPatchTypeField, dictionary); 581 #define addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \ 582 addToRunTimeSelectionTable \ 585 typePatchTypeField, \ 588 addToRunTimeSelectionTable \ 591 typePatchTypeField, \ 594 addToRunTimeSelectionTable \ 597 typePatchTypeField, \ 603 #define addRemovableToPatchFieldRunTimeSelection\ 604 (PatchTypeField, typePatchTypeField) \ 606 addRemovableToRunTimeSelectionTable \ 609 typePatchTypeField, \ 612 addRemovableToRunTimeSelectionTable \ 615 typePatchTypeField, \ 618 addRemovableToRunTimeSelectionTable \ 621 typePatchTypeField, \ 627 #define makePatchTypeField(PatchTypeField, typePatchTypeField) \ 628 defineTypeNameAndDebug(typePatchTypeField, 0); \ 629 addToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 632 #define makeRemovablePatchTypeField(PatchTypeField, typePatchTypeField) \ 633 defineTypeNameAndDebug(typePatchTypeField, 0); \ 634 addRemovableToPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 637 #define makeTemplatePatchTypeField(fieldType, type) \ 638 defineNamedTemplateTypeNameAndDebug \ 640 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \ 643 addToPatchFieldRunTimeSelection \ 645 CAT3(fvPatch, CAPITALIZE(fieldType), Field), \ 646 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field) \ 649 #define makePatchFields(type) \ 650 FOR_ALL_FIELD_TYPES(makeTemplatePatchTypeField, type) 652 #define makePatchFieldTypeName(fieldType, type) \ 653 defineNamedTemplateTypeNameAndDebug \ 655 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field), \ 659 #define makePatchFieldTypeNames(type) \ 660 FOR_ALL_FIELD_TYPES(makePatchFieldTypeName, type) 662 #define makePatchTypeFieldTypedef(fieldType, type) \ 663 typedef type##FvPatchField<fieldType> \ 664 CAT4(type, FvPatch, CAPITALIZE(fieldType), Field); 666 #define makePatchTypeFieldTypedefs(type) \ 667 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.
bool overridesConstraint() const
Return true if this overrides the underlying constraint type.
This boundary condition is not designed to be evaluated; it is assumed 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 > &)
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 > &)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
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.
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
const DimensionedField< Type, volMesh > & internalField() const
Return dimensioned internal field reference.