38 void Foam::zonalThermoZones::update()
49 if (cellZones_[cz[i]] != -1)
52 <<
"Cell zones must not overlap"
56 cellZones_[cz[i]] = zonei;
62 if (cellZones_[celli] == -1)
65 <<
"Cell zones must span the entire mesh"
#define forAll(list, i)
Loop across all elements in list.
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
const fvMesh & mesh() const
void resize(const label)
Alias for setSize(const label)
Mesh data needed to do the Finite Volume discretisation.
A wordList with hashed indices for faster lookup by name.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
const cellZoneList & cellZones() const
Return cell zones.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
Mesh object to store cell-zone correspondence for zonal thermo.
virtual bool movePoints()
Update for mesh motion.
zonalThermoZones(const word &name, const fvMesh &mesh, const hashedWordList &zones)
Construct from a name, a mesh and a list of zones.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual ~zonalThermoZones()
Destructor.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)