Go to the documentation of this file.
11 scalar phaseVolume = 0;
15 label celli = cellLabels[cli];
16 phaseVolume +=
alpha[celli]*V[celli];
19 reduce(phaseVolume, sumOp<scalar>());
22 <<
" phase volume in zone " <<
mesh.cellZones()[czi].name()
23 <<
" = " << phaseVolume*1e6 <<
" ml " <<
endl;
List< label > labelList
A List of labels.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const word & name() const
Return const reference to name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
forAll(mesh.cellZones(), czi)
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
volScalarField scalarField(fieldObject, mesh)