46 const label fluentFieldIdentifier,
55 << fluentFieldIdentifier <<
" " 60 <<
"1 " << phiInternal.size()
65 stream << phiInternal[celli] <<
endl;
71 label nWrittenFaces = phiInternal.size();
76 if (isType<emptyFvPatchScalarField>(
phi.boundaryField()[patchi]))
84 phi.boundaryField()[patchi].patch().patch().faceCells();
89 << fluentFieldIdentifier <<
" " 93 << nWrittenFaces + 1 <<
" " 94 << nWrittenFaces + emptyFaceCells.size()
97 nWrittenFaces += emptyFaceCells.size();
99 forAll(emptyFaceCells, facei)
101 stream << phiInternal[emptyFaceCells[facei]] <<
endl;
110 label nWrittenFaces = phiInternal.size();
117 << fluentFieldIdentifier <<
" " 118 << patchi + 10 <<
" " 121 << nWrittenFaces + 1 <<
" " << nWrittenFaces + patchPhi.size()
125 nWrittenFaces += patchPhi.size();
129 stream << patchPhi[facei] <<
endl;
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeFluentField(const volScalarField &phi, const label fluentFieldIdentifier, Ostream &stream)
List< label > labelList
A List of labels.