OOF2: The Manual
Name
getField — Retrieve a Field object by
name
Synopses
Description
getField returns a previously created
Field object. In C++ it returns a pointer to the base class,
which may be cast to the derived class:
ScalarField *T = dynamic_cast<ScalarField*>(getField("Temperature")); In Python, it returns a reference to an object of the appropriate derived class:
>>> T = getField("Temperature")
>>> type(T)
<class 'ooflib.SWIG.engine.field.ScalarField'>
getFlux is defined in the main OOF2
namespace so that it can be used freely in scripts, text mode and the Console Window.



