42 const label fluentFieldIdentifier,
51 << fluentFieldIdentifier <<
" " 56 <<
"1 " << phiInternal.size()
59 for (
const scalar val : phiInternal)
67 label nWrittenFaces = phiInternal.size();
72 if (isType<emptyFvPatchScalarField>(
phi.boundaryField()[patchi]))
80 phi.boundaryField()[patchi].patch().patch().faceCells();
85 << fluentFieldIdentifier <<
" " 89 << nWrittenFaces + 1 <<
" " 90 << nWrittenFaces + emptyFaceCells.size()
93 nWrittenFaces += emptyFaceCells.size();
95 forAll(emptyFaceCells, facei)
97 stream << phiInternal[emptyFaceCells[facei]] <<
nl;
106 label nWrittenFaces = phiInternal.size();
113 << fluentFieldIdentifier <<
" " 114 << patchi + 10 <<
" " 117 << nWrittenFaces + 1 <<
" " << nWrittenFaces + patchPhi.size()
121 nWrittenFaces += patchPhi.size();
123 for (
const scalar val : patchPhi)
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)
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< label > labelList
A List of labels.