58 "fileFormats::OFSsurfaceFormat::read(const fileName&)" 60 <<
"Cannot read file " << filename
65 is >> this->storedZones();
68 is >> this->storedPoints();
83 this->transcribe(surf);
88 is >> this->storedFaces();
108 "fileFormats::OFSsurfaceFormat::read" 109 "(Istream&, pointField&, List<Face>&, List<surfZone>&)" 160 "fileFormats::OFSsurfaceFormat::read" 161 "(Istream&, MeshedSurface<Face>&)" 171 read(is, pointLst, faceLst, zoneLst);
215 "fileFormats::OFSsurfaceFormat::write" 216 "(const fileName&, const MeshedSurfaceProxy<Face>&)" 218 <<
"Cannot open file for writing " << filename
223 OFSsurfaceFormatCore::writeHeader(os, surf.
points(), surf.
surfZones());
226 const bool useFaceMap = (surf.
useFaceMap() && zones.size() > 1);
230 os <<
"\n// faces:" <<
nl 231 << faceLst.
size() << token::BEGIN_LIST <<
nl;
241 os << faceLst[faceMap[faceI++]] <<
nl;
244 os << token::END_LIST <<
nl;
248 os <<
"\n// faces:" <<
nl << faceLst <<
nl;
251 IOobject::writeDivider(os);
254 os.
check(
"OFSsurfaceFormat<Face>::write(Ostream&)");
void transcribe(MeshedSurface< face > &)
Transfer points/zones and transcribe face -> triFace.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
bool useFaceMap() const
Use faceMap?
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Various functions to operate on Lists.
const pointField & points() const
Return const access to the points.
const List< Face > & faces() const
Return const access to the faces.
virtual void clear()
Clear all storage.
virtual void clear()
Clear all storage.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static bool read(Istream &, pointField &, List< Face > &, List< surfZone > &)
Read surface mesh components.
const List< surfZone > & surfZones() const
Const access to the surface zones.
virtual void reset(const Xfer< pointField > &points, const Xfer< List< Face > > &faces, const Xfer< surfZoneList > &zones)
Reset primitive data (points, faces and zones)
bool good() const
Return true if next operation might succeed.
Provide a means of reading/writing the single-file OpenFOAM surface format.
void transfer(UnsortedMeshedSurface< Face > &)
Transfer the contents of the argument and annul the argument.
A surface zone on a MeshedSurface.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
A class for handling file names.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
const List< label > & faceMap() const
Const access to the faceMap, zero-sized when unused.
bool read(const char *, int32_t &)
static void write(const fileName &, const MeshedSurfaceProxy< Face > &)
Write surface mesh components by proxy.