Go to the documentation of this file.
55 <<
"Cannot read file " << filename
75 if (
line.size() > 72 &&
line[72] ==
'+')
84 if (buf.size() > 72 && buf[72] ==
'+')
86 line += buf.substr(8, 64);
90 line += buf.substr(8, buf.size()-8);
102 if (cmd ==
"CBEAM" || cmd ==
"CROD")
113 else if (cmd ==
"PLOTEL")
124 else if (cmd ==
"GRID")
134 else if (cmd ==
"GRID*")
150 <<
"Expected continuation symbol '*' when reading GRID*"
151 <<
" (double precision coordinate) format" <<
nl
164 storedPoints().transfer(dynPoints);
173 mapPointId.insert(pointId[i], i);
184 edge&
e = dynEdges[i];
185 e[0] = mapPointId[
e[0]];
186 e[1] = mapPointId[
e[1]];
188 usedPoints.
set(
e[0]);
189 usedPoints.
set(
e[1]);
195 if (
unsigned(
points().size()) != usedPoints.
count())
202 if (usedPoints.
get(pointI))
206 pts[nUsed] = pts[pointI];
210 mapPointId[pointI] = nUsed;
221 edge&
e = dynEdges[edgeI];
223 e[0] = mapPointId[
e[0]];
224 e[1] = mapPointId[
e[1]];
230 storedEdges().transfer(dynEdges);
const fileName & name() const
Return the name of the stream.
A class for handling words, derived from string.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
bool read(const char *, int32_t &)
void set(const PackedList< 1 > &)
Set specified bits.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
static scalar parseNASCoord(const string &s)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
ISstream & getLine(string &)
Raw, low-level getline into a string function.
unsigned int count() const
Count number of bits set, O(log(n))
DynamicList< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.
Input from memory buffer stream.
unsigned int get(const label) const
Get value at index I.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar e
Elementary charge.
void clearStorage()
Clear the list and delete storage.
label readLabel(Istream &is)
label lineNumber() const
Return current stream line number.
vector point
Point is a vector.
bool good() const
Return true if next operation might succeed.