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]]/
set_.V())*T*E) & upU;
vector diskDir_
Disk area normal.
label upstreamCellId_
Upstream cell ID.
#define forAll(list, i)
Loop across all elements in list.
fvCellSet set_
The set of cells the fvConstraint applies to.
volVectorField vectorField(fieldObject, mesh)
Vector< scalar > vector
A scalar version of the templated Vector.
List< label > labelList
A List of labels.
volScalarField scalarField(fieldObject, mesh)
scalar Cp_
Power coefficient.
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.