Go to the documentation of this file.
47 os << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
' ';
60 os << ct.
x() <<
' ' << ct.
y() <<
' ' << ct.
z() <<
' ';
70 const word& fieldName,
74 os << values.size() <<
nl
75 <<
"# x y z " << fieldName <<
nl;
83 const word& fieldName,
87 os << values.size() <<
nl
100 const word& fieldName,
104 os << values.size() <<
nl
106 << fieldName <<
"_ii" <<
nl;
114 const word& fieldName,
118 os << values.size() <<
nl
119 <<
"# xx xy xz yy yz ";
120 for (
int i=0; i<6; ++i)
122 os << fieldName <<
"_" << i <<
" ";
132 const word& fieldName,
136 os << values.size() <<
nl
137 <<
"# xx xy xz yx yy yz zx zy zz";
138 for (
int i=0; i<9; ++i)
140 os << fieldName <<
"_" << i <<
" ";
164 os << v[0] <<
' ' << v[1] <<
' ' << v[2] <<
nl;
186 os << v[0] <<
' ' << v[1] <<
' ' << v[2] <<
' '
187 << v[3] <<
' ' << v[4] <<
' ' << v[5] <<
nl;
198 os << v[0] <<
' ' << v[1] <<
' ' << v[2] <<
' '
199 << v[3] <<
' ' << v[4] <<
' ' << v[5] <<
' '
200 << v[6] <<
' ' << v[7] <<
' ' << v[8] <<
nl;
231 if (!
isDir(outputDir))
236 OFstream os(outputDir/surfaceName +
".raw");
245 os <<
"# geometry NO_DATA " << faces.
size() <<
nl
251 writeLocation(os,
points, faces, elemI);
Templated 3D tensor derived from VectorSpace adding construction from 9 components,...
A class for handling words, derived from string.
Base class for surface writers.
A class for handling file names.
rawSurfaceWriter()
Construct null.
#define forAll(list, i)
Loop across all elements in list.
A surfaceWriter for raw output.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~rawSurfaceWriter()
Destructor.
Convenience macros for instantiating writer methods for surfaceWriter classes.
static void writeHeader(Ostream &, const word &fieldName, const Field< Type > &)
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.
defineSurfaceWriterWriteFields(nastranSurfaceWriter)
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.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component,...
static void writeLocation(Ostream &, const pointField &, const label pointI)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const fileName & name() const
Return the name of the stream.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makeSurfaceWriterType(boundaryDataSurfaceWriter)
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
static void writeData(Ostream &, const Type &)