78 return mesh.boundary()[patchName];
86const Foam::fvPatch& Foam::expressions::patchExpr::parseDriver::getFvPatch
108 parsing::genericRagelLemonDriver(),
124 parsing::genericRagelLemonDriver(),
135 const word& patchName,
157 const std::string& expr,
162 scanner scan(this->debugScanner());
164 scan.process(expr,
pos, len, *
this);
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void resetDb(const objectRegistry *obrPtr=nullptr)
Reset the objectRegistry (for functions).
bool debugScanner() const noexcept
Read access to scanner debug.
void resetTimeReference(const TimeState *ts)
Reset the time-state reference.
const dictionary & dict() const noexcept
The dictionary with all input data/specification.
Base driver for parsing value expressions associated with an fvMesh.
static const fvMesh & regionMesh(const dictionary &dict, const fvMesh &mesh, bool readIfNecessary)
Determine mesh or region mesh as specified in the dictionary with the keyword "region".
fvExprDriver(enum exprDriver::searchControls search=exprDriver::searchControls::DEFAULT_SEARCH, const dictionary &dict=dictionary::null)
Default construct, and default construct with search preferences.
Driver for patch expressions.
virtual unsigned parse(const std::string &expr, size_t pos=0, size_t len=std::string::npos)
Execute the parser.
parseDriver(const parseDriver &)=delete
const fvPatch & patch_
The referenced patch.
virtual const fvMesh & mesh() const
The mesh we are attached to.
Ragel lexer/scanner interface for patch expressions.
bool process(const std::string &str, size_t pos, size_t len, parseDriver &driver_)
Evaluate sub-string.
Mesh data needed to do the Finite Volume discretisation.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
genericRagelLemonDriver()
Construct null.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace for patch expressions parsing and evaluation.
A namespace for expression-related classes/traits etc.
Collection of static functions and data related to parsing and an isolated namespace for lexers,...
dimensionedScalar pos(const dimensionedScalar &ds)
static const fvPatch & lookupFvPatch(const fvMesh &mesh, const word &patchName)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)