Go to the documentation of this file.
62 fileName surfaceDir(outputDir/surfaceName);
64 if (!
isDir(surfaceDir))
71 Info<<
"Writing geometry to " << surfaceDir <<
endl;
79 OFstream(surfaceDir/
"faces")() << faces;
87 faceCentres[faceI] = faces[faceI].centre(
points);
90 OFstream(surfaceDir/
"faceCentres")() << faceCentres;
virtual fileName write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool verbose=false) const
Write single surface geometry to file.
Base class for surface writers.
A class for handling file names.
foamFileSurfaceWriter()
Construct null.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A surfaceWriter for foamFiles.
Convenience macros for instantiating writer methods for surfaceWriter classes.
Pre-declare SubField and related Field type.
defineSurfaceWriterWriteFields(nastranSurfaceWriter)
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual ~foamFileSurfaceWriter()
Destructor.
void size(const label)
Override size to be inconsistent with allocated storage.
makeSurfaceWriterType(boundaryDataSurfaceWriter)
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.