31 template<
class RhoFieldType>
32 void Foam::fv::actuationDiskSource::addActuationDiskAxialInertialResistance
37 const RhoFieldType& rho,
44 E.xx() = uniDiskDir.x();
45 E.yy() = uniDiskDir.y();
46 E.zz() = uniDiskDir.z();
49 scalar upRho = vGreat;
55 reduce(upU, minOp<vector>());
56 reduce(upRho, minOp<scalar>());
62 Usource[cells[i]] += ((Vcells[cells[i]]/
V())*T*E) & upU;
vector diskDir_
Disk area normal.
label upstreamCellId_
Upstream cell ID.
#define forAll(list, i)
Loop across all elements in list.
volVectorField vectorField(fieldObject, mesh)
Vector< scalar > vector
A scalar version of the templated Vector.
scalar V() const
Return const access to the total cell volume.
List< label > labelList
A List of labels.
volScalarField scalarField(fieldObject, mesh)
scalar Cp_
Power coefficient.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
scalar Ct_
Thrust coefficient.
dimensioned< scalar > mag(const dimensioned< Type > &)
scalar diskArea_
Disk area.
Tensor< scalar > tensor
Tensor of scalars.