46 const label fluentFieldIdentifier,
55 << fluentFieldIdentifier <<
" "
60 <<
"1 " << phiInternal.
size()
65 stream << phiInternal[celli] <<
endl;
71 label nWrittenFaces = phiInternal.size();
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;
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void size(const label n)
Older name for setAddressableSize.
label size() const noexcept
The number of elements in the list.
void writeFluentField(const volScalarField &phi, const label fluentFieldIdentifier, Ostream &stream)
List< label > labelList
A List of labels.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.