44 const label fluentFieldIdentifier,
53 << fluentFieldIdentifier <<
" " 58 <<
"1 " << phiInternal.size()
63 stream << phiInternal[celli] <<
endl;
69 label nWrittenFaces = phiInternal.size();
74 if (isType<emptyFvPatchScalarField>(phi.boundaryField()[
patchi]))
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();
115 << fluentFieldIdentifier <<
" " 119 << nWrittenFaces + 1 <<
" " << nWrittenFaces + patchPhi.size()
123 nWrittenFaces += patchPhi.size();
127 stream << patchPhi[facei] <<
endl;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.