void Foam::KinematicCloud<CloudType>::info() const { vector linearMomentum = linearMomentumOfSystem(); reduce(linearMomentum, sumOp<vector>()); scalar linearKineticEnergy = linearKineticEnergyOfSystem(); reduce(linearKineticEnergy, sumOp<scalar>()); scalar rotationalKineticEnergy = rotationalKineticEnergyOfSystem(); reduce(rotationalKineticEnergy, sumOp<scalar>()); Info<< "Cloud: " << this->name() << nl << " Current number of parcels = " << returnReduce(this->size(), sumOp<label>()) << nl << " Current mass in system = " << returnReduce(massInSystem(), sumOp<scalar>()) << nl << " Linear momentum = " << linearMomentum << nl << " |Linear momentum| = " << mag(linearMomentum) << nl << " Linear kinetic energy = " << linearKineticEnergy << nl << " Rotational kinetic energy = " << rotationalKineticEnergy << nl; this->injection().info(Info); this->surfaceFilm().info(Info); this->patchInteraction().info(Info); }
void Foam::KinematicCloud<ParcelType>::info() const { Info<< "Cloud: " << this->name() << nl << " Total number of parcels added = " << this->injection().parcelsAddedTotal() << nl << " Total mass introduced = " << this->injection().massInjected() << nl << " Current number of parcels = " << returnReduce(this->size(), sumOp<label>()) << nl << " Current mass in system = " << returnReduce(massInSystem(), sumOp<scalar>()) << nl; }