PatchFunction1 with values supplied by a parsed expression. More...
Public Member Functions | |
TypeName ("expression") | |
Runtime type information. More... | |
void | operator= (const PatchExprField< Type > &)=delete |
No copy assignment. More... | |
PatchExprField (const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true) | |
Construct from patch, entry name and dictionary. More... | |
PatchExprField (const PatchExprField< Type > &rhs) | |
Copy construct. More... | |
PatchExprField (const PatchExprField< Type > &rhs, const polyPatch &pp) | |
Copy construct setting patch. More... | |
virtual tmp< PatchFunction1< Type > > | clone () const |
Construct and return a clone. More... | |
virtual tmp< PatchFunction1< Type > > | clone (const polyPatch &pp) const |
Construct and return a clone setting patch. More... | |
virtual | ~PatchExprField ()=default |
Destructor. More... | |
virtual tmp< Field< Type > > | value (const scalar x) const |
Return value. More... | |
virtual bool | constant () const |
Is value constant (i.e. independent of x) More... | |
virtual bool | uniform () const |
Is value uniform (i.e. independent of coordinate) More... | |
virtual tmp< Field< Type > > | integrate (const scalar x1, const scalar x2) const |
Integrate between two values. More... | |
virtual void | autoMap (const FieldMapper &mapper) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const PatchFunction1< Type > &pf1, const labelList &addr) |
Reverse map the given PatchFunction1 onto this PatchFunction1. More... | |
virtual void | writeData (Ostream &os) const |
Write in dictionary format. More... | |
![]() | |
TypeName ("PatchFunction1") declareRunTimeSelectionTable(autoPtr | |
Runtime type information. More... | |
PatchFunction1 (const polyPatch &pp, const word &entryName, const bool faceValues=true) | |
Construct from polyPatch and entry name. More... | |
PatchFunction1 (const polyPatch &pp, const word &entryName, const dictionary &dict, const bool faceValues=true) | |
Construct from polyPatch, dictionary and entry name. More... | |
PatchFunction1 (const PatchFunction1< Type > &rhs) | |
Copy construct. More... | |
PatchFunction1 (const PatchFunction1< Type > &rhs, const polyPatch &pp) | |
Copy construct setting patch. More... | |
virtual | ~PatchFunction1 ()=default |
Destructor. More... | |
virtual tmp< pointField > | localPosition (const pointField &globalPos) const |
Helper: optionally convert coordinates to local coordinates. More... | |
virtual tmp< Field< Type > > | transform (const Field< Type > &fld) const |
Apply optional transformation. More... | |
virtual tmp< Field< Type > > | transform (const tmp< Field< Type >> &tfld) const |
Apply optional transformation. More... | |
Additional Inherited Members | |
![]() | |
typedef Field< Type > | returnType |
![]() | |
static autoPtr< PatchFunction1< Type > > | New (const polyPatch &pp, const word &entryName, const dictionary &dict, const bool faceValues=true, const bool mandatory=true) |
Selector. More... | |
static autoPtr< PatchFunction1< Type > > | NewCompat (const polyPatch &pp, const word &entryName, std::initializer_list< std::pair< const char *, int >> compat, const dictionary &dict, const bool faceValues=true, const bool mandatory=true) |
Compatibility selector. More... | |
static autoPtr< PatchFunction1< Type > > | NewIfPresent (const polyPatch &pp, const word &entryName, const dictionary &dict, const bool faceValues=true) |
An optional selector. More... | |
static refPtr< PatchFunction1< Type > > | New (HashPtrTable< PatchFunction1< Type >> &cache, const polyPatch &pp, const word &entryName, const dictionary &dict, enum keyType::option matchOpt=keyType::LITERAL, const bool faceValues=true, const bool mandatory=true) |
![]() | |
PatchFunction1 | |
dictionary | |
const polyPatch & | pp |
const polyPatch const word & | type |
const polyPatch const word const word & | entryName |
const polyPatch const word const word const dictionary & | dict |
const polyPatch const word const word const dictionary const bool | faceValues |
const polyPatch const word const word const dictionary const bool | pp |
const polyPatch const word const word const dictionary const bool | type |
const polyPatch const word const word const dictionary const bool | entryName |
const polyPatch const word const word const dictionary const bool | dict |
![]() | |
void | operator= (const PatchFunction1< Type > &)=delete |
No copy assignment. More... | |
![]() | |
coordinateScaling< Type > | coordSys_ |
Optional local coordinate system and scaling. More... | |
PatchFunction1 with values supplied by a parsed expression.
<patchName> { type uniformFixedValue; uniformValue { type expression; // optional variables for use within the expression variables ( "start = 0.5" "stop = 1" ); // A step function expression #{ scalar(arg() > start && arg() < stop) * vector(1, 0, 0) #}; } }
Definition at line 83 of file PatchFunction1Expression.H.
PatchExprField | ( | const polyPatch & | pp, |
const word & | redirectType, | ||
const word & | entryName, | ||
const dictionary & | dict, | ||
const bool | faceValues = true |
||
) |
Construct from patch, entry name and dictionary.
The patch must correspond to an fvPatch!
Definition at line 35 of file PatchFunction1Expression.C.
References Foam::expressions::patchExpr::debug, dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and Foam::nl.
|
explicit |
Copy construct.
Definition at line 69 of file PatchFunction1Expression.C.
|
explicit |
Copy construct setting patch.
Definition at line 79 of file PatchFunction1Expression.C.
|
virtualdefault |
Destructor.
TypeName | ( | "expression" | ) |
Runtime type information.
|
delete |
No copy assignment.
|
inlinevirtual |
Construct and return a clone.
Implements PatchFunction1< Type >.
Definition at line 135 of file PatchFunction1Expression.H.
|
inlinevirtual |
Construct and return a clone setting patch.
Implements PatchFunction1< Type >.
Definition at line 144 of file PatchFunction1Expression.H.
References PatchFunction1< Type >::pp.
|
virtual |
Return value.
The parameter 'x' is accessible as 'arg' in the function
Reimplemented from PatchFunction1< Type >.
Definition at line 96 of file PatchFunction1Expression.C.
Is value constant (i.e. independent of x)
Reimplemented from PatchFunction1< Type >.
Definition at line 166 of file PatchFunction1Expression.H.
Is value uniform (i.e. independent of coordinate)
Implements PatchFunction1< Type >.
Definition at line 172 of file PatchFunction1Expression.H.
|
virtual |
Integrate between two values.
Reimplemented from PatchFunction1< Type >.
Definition at line 117 of file PatchFunction1Expression.C.
References NotImplemented.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Reimplemented from PatchFunction1< Type >.
Definition at line 129 of file PatchFunction1Expression.C.
|
virtual |
Reverse map the given PatchFunction1 onto this PatchFunction1.
Reimplemented from PatchFunction1< Type >.
Definition at line 139 of file PatchFunction1Expression.C.
|
virtual |
Write in dictionary format.
Reimplemented from PatchFunction1< Type >.
Definition at line 150 of file PatchFunction1Expression.C.
References Foam::name().