48 #ifndef Foam_fvPatchField_H 49 #define Foam_fvPatchField_H 72 Ostream& operator<<(Ostream&, const fvPatchField<Type>&);
93 bool manipulatedMatrix_;
122 manipulatedMatrix_ = state;
245 return manipulatedMatrix_;
258 bool old(useImplicit_);
346 (dynamic_cast<const fvPatchFieldType&>(ptf),
p, iF, m)
456 virtual tmp<fvPatchField<Type>>
clone 458 const DimensionedField<Type, volMesh>& iF
461 return tmp<fvPatchField<Type>>
::New(*
this, iF);
470 static tmp<fvPatchField<Type>>
New 472 const word& patchFieldType,
474 const DimensionedField<Type, volMesh>&
481 static tmp<fvPatchField<Type>>
New 483 const word& patchFieldType,
484 const word& actualPatchType,
486 const DimensionedField<Type, volMesh>&
491 static tmp<fvPatchField<Type>>
New 493 const fvPatchField<Type>&,
495 const DimensionedField<Type, volMesh>&,
496 const fvPatchFieldMapper&
501 static tmp<fvPatchField<Type>>
New 504 const DimensionedField<Type, volMesh>&,
517 template<
class Type2>
535 return internalField_;
541 return internalField_;
550 const fvPatchFieldMapper&
621 const tmp<Field<scalar>>&
632 const tmp<Field<scalar>>&
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
virtual bool coupled() const
True if the patch field is coupled.
const objectRegistry & db() const
The associated objectRegistry.
"blocking" : (MPI_Bsend, MPI_Recv)
const word zeroGradientType
A zeroGradient patch field 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))
commsTypes
Communications types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const fvPatch & patch() const noexcept
Return the patch.
static const word & emptyType() noexcept
The type name for empty patch fields.
virtual ~fvPatchField()=default
Destructor.
virtual void operator*=(const fvPatchField< scalar > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void extrapolateInternal()
Assign the patch field from the internal field.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
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.
Template invariant parts for fvPatchField.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
virtual void operator==(const fvPatchField< Type > &)
bool useImplicit() const noexcept
Use implicit formulation for coupled patches only.
const word calculatedType
A calculated patch field type.
bool manipulatedMatrix() const noexcept
True if the matrix has already been manipulated.
Mesh data needed to do the Finite Volume discretisation.
Macros for creating fvPatchField types.
bool updated() const noexcept
True if the boundary condition has already been updated.
Generic templated field type.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual tmp< Field< Type > > patchNeighbourField() const
Return patchField on the opposite patch of a coupled patch.
fvPatch Patch
The patch type for the patch field.
virtual void operator/=(const fvPatchField< scalar > &)
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
A FieldMapper for finite-volume patch fields.
void setUpdated(bool state) noexcept
Set updated state.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual bool assignable() const
True if the value of the patch field is altered by assignment.
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.
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.
const Field< Type > & primitiveField() const noexcept
Return const-reference to the internal field values.
void check(const fvPatchField< Type > &) const
Check against given patch field.
fvPatchFieldBase(const fvPatch &p)
Construct from patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void operator-=(const fvPatchField< Type > &)
static int disallowGenericPatchField
Debug switch to disallow the use of generic fvPatchField.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch.
const word emptyType
An empty patch field type.
OBJstream os(runTime.globalPath()/outputName)
virtual void operator+=(const fvPatchField< Type > &)
virtual ~fvPatchFieldBase()=default
Destructor.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets updated() to false.
const word & patchType() const noexcept
The optional patch type.
calculatedFvPatchField< Type > Calculated
Type for a calculated patch.
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 bool fixesValue() const
True if the patch field fixes a value.
virtual void operator=(const UList< Type > &)
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
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.
static const word & calculatedType() noexcept
The type name for calculated patch fields.
const DimensionedField< Type, volMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
Reading is optional [identical to READ_IF_PRESENT].
virtual void updateWeightedCoeffs(const scalarField &weights)
Update the coefficients associated with the patch field.
A class for managing temporary objects.
void checkPatch(const fvPatchFieldBase &rhs) const
Check that patches are identical.
Registry of regIOobjects.
static const word & extrapolatedCalculatedType() noexcept
The type name for extrapolatedCalculated patch fields combines zero-gradient and calculated.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
TypeName("fvPatchField")
Runtime type information.
const word extrapolatedCalculatedType
A combined zero-gradient and calculated patch field type.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
void setManipulated(bool state) noexcept
Set matrix manipulated state.
static tmp< fvPatchField< Type > > New(const word &patchFieldType, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
virtual tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
DimensionedField< Type, volMesh > Internal
The internal field type associated with the patch field.
readOption
Enumeration defining read preferences.