61 <<
"Inconsistent data list size - expect size 3" 66 data[1][bini] +=
n*(v &
n);
67 data[2][bini] += v -
n*(v &
n);
82 coordSysPtr_ = coordinateSystem::NewIfPresent(
dict);
86 Info<<
"Setting co-ordinate system:" <<
nl 87 <<
" - type : " << coordSysPtr_->name() <<
nl 88 <<
" - origin : " << coordSysPtr_->origin() <<
nl 89 <<
" - e3 : " << coordSysPtr_->e3() <<
nl 90 <<
" - e1 : " << coordSysPtr_->e1() <<
endl;
103 coordSysPtr_.reset(
new coordSystem::cartesian(origin, e3, e1));
107 coordSysPtr_.reset(
new coordSystem::cartesian(
dict));
116 const dictionary&
dict,
118 const word& outputPrefix
121 writeFile(
mesh, outputPrefix),
123 decomposePatchValues_(false),
125 coordSysPtr_(nullptr),
149 DynamicList<wordRe> czUnmatched;
150 for (
const auto& cz : zoneNames)
152 const labelList czi(mesh_.cellZones().indices(cz));
164 if (czUnmatched.size())
167 <<
"Unable to find zone(s): " << czUnmatched <<
nl 168 <<
"Valid cellZones are : " << mesh_.cellZones().sortedNames()
172 cellZoneIDs_.transfer(
zoneIDs);
177 filePtrs_.resize(fieldNames_.size());
180 filePtrs_.set(i, newFileAtStartTime(fieldNames_[i] +
"Bin"));
183 setCoordinateSystem(
dict);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
const polyBoundaryMesh & pbm
const labelIOList & zoneIDs
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void append(const T &val)
Append an element at the end of the list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
labelHashSet patchSet(const UList< wordRe > &select, const bool warnNotFound=true, const bool useGroups=true) const
Return the set of patch IDs corresponding to the given names.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool decomposePatchValues_
Decompose patch values into normal and tangential components.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define forAll(list, i)
Loop across all elements in list.
void setCoordinateSystem(const dictionary &dict, const word &e3Name=word::null, const word &e1Name=word::null)
Set the co-ordinate system from dictionary and axes names.
A class for handling words, derived from Foam::string.
binModel(const dictionary &dict, const fvMesh &mesh, const word &outputPrefix)
Construct from components.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
errorManip< error > abort(error &err)
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
defineTypeNameAndDebug(combustionModel, 0)
virtual bool read(const dictionary &dict)
Read.
#define WarningInFunction
Report a warning using Foam::Warning.
List< Key > sortedToc() const
The table of contents (the keys) in sorted order.
virtual bool read(const dictionary &dict)
Read the dictionary.
bool decomposePatchValues(List< List< Type >> &data, const label bini, const Type &v, const vector &n) const
Helper function to decompose patch values into normal and tangential components.
List< label > sortedToc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.
messageStream Info
Information stream (stdout output on master, null elsewhere)
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
List< label > labelList
A List of labels.
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.
static constexpr const zero Zero
Global zero (0)