44 const label fluentFieldIdentifier,
48 const scalarField& phiInternal = phi.internalField();
53 << fluentFieldIdentifier <<
" "
58 <<
"1 " << phiInternal.
size()
61 forAll (phiInternal, cellI)
63 stream << phiInternal[cellI] <<
endl;
69 label nWrittenFaces = phiInternal.size();
72 forAll (phi.boundaryField(), patchI)
74 if (isType<emptyFvPatchScalarField>(phi.boundaryField()[patchI]))
78 const scalarField& phiInternal = phi.internalField();
82 phi.boundaryField()[patchI].patch().patch().faceCells();
87 << fluentFieldIdentifier <<
" "
91 << nWrittenFaces + 1 <<
" "
92 << nWrittenFaces + emptyFaceCells.
size()
95 nWrittenFaces += emptyFaceCells.size();
97 forAll (emptyFaceCells, faceI)
99 stream << phiInternal[emptyFaceCells[faceI]] <<
endl;
108 label nWrittenFaces = phiInternal.size();
110 const scalarField& patchPhi = phi.boundaryField()[patchI];
115 << fluentFieldIdentifier <<
" "
116 << patchI + 10 <<
" "
119 << nWrittenFaces + 1 <<
" " << nWrittenFaces + patchPhi.
size()
123 nWrittenFaces += patchPhi.size();
127 stream << patchPhi[faceI] <<
endl;