31 template<
class AlphaFieldType,
class RhoFieldType>
32 void Foam::fv::actuationDiskSource::addActuationDiskAxialInertialResistance
37 const AlphaFieldType&
alpha,
38 const RhoFieldType&
rho,
42 const scalar a = 1 -
Cp_/
Ct_;
45 scalar dHatUo(vGreat);
50 reduce(dHatUo, minOp<scalar>());
#define forAll(list, i)
Loop across all elements in list.
scalar V() const
Return const access to the total cell volume.
scalar Cp_
Power coefficient.
vector diskDir_
Disk area normal.
fvCellSet set_
The set of cells the fvConstraint applies to.
label upstreamCellId_
Upstream cell ID.
scalar diskArea_
Disk area.
scalar Ct_
Thrust coefficient.
volScalarField scalarField(fieldObject, mesh)
volVectorField vectorField(fieldObject, mesh)
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
List< label > labelList
A List of labels.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Vector< scalar > vector
A scalar version of the templated Vector.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
dimensioned< scalar > mag(const dimensioned< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)