41 const label fluentFieldIdentifier,
50 << fluentFieldIdentifier <<
" " 55 <<
"1 " << phiInternal.size()
58 for (
const vector& val : phiInternal)
61 << val.x() <<
' ' << val.y() <<
' ' << val.z() <<
nl;
67 label nWrittenFaces = phiInternal.size();
77 << fluentFieldIdentifier <<
" " 81 << nWrittenFaces + 1 <<
" " << nWrittenFaces + patchPhi.size()
85 nWrittenFaces += patchPhi.size();
87 for (
const vector& val : patchPhi)
90 << val.x() <<
' ' << val.y() <<
' ' << val.z() <<
nl;
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeFluentField(const volScalarField &phi, const label fluentFieldIdentifier, Ostream &os)
GeometricField< vector, fvPatchField, volMesh > volVectorField
#define forAll(list, i)
Loop across all elements in list.
Field< vector > vectorField
Specialisation of Field<T> for vector.