Go to the documentation of this file.
56 <<
"diskArea is approximately zero"
59 if (
Cp_ <= VSMALL ||
Ct_ <= VSMALL)
62 <<
"Cp and Ct must be greater than zero"
68 <<
"disk direction vector is approximately zero"
85 const word& modelType,
91 diskDir_(coeffs_.lookup(
"diskDir")),
94 diskArea_(
readScalar(coeffs_.lookup(
"diskArea"))),
95 upstreamPoint_(coeffs_.lookup(
"upstreamPoint")),
98 coeffs_.lookup(
"fieldNames") >> fieldNames_;
99 applied_.setSize(fieldNames_.size(),
false);
101 Info<<
" - creating actuation disk zone: "
104 upstreamCellId_ =
mesh.findCell(upstreamPoint_);
124 addActuationDiskAxialInertialResistance
149 addActuationDiskAxialInertialResistance
165 coeffs_.readIfPresent(
"diskDir", diskDir_);
166 coeffs_.readIfPresent(
"Cp", Cp_);
167 coeffs_.readIfPresent(
"Ct", Ct_);
168 coeffs_.readIfPresent(
"diskArea", diskArea_);
vector diskDir_
Disk area normal.
scalar Ct_
Thrust coefficient.
A class for handling words, derived from string.
Cell-set options abtract base class. Provides a base set of controls, e.g.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
scalar diskArea_
Disk area.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
actuationDiskSource(const actuationDiskSource &)
Disallow default bitwise copy construct.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
virtual bool read(const dictionary &dict)
Read source dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineTypeNameAndDebug(option, 0)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
point upstreamPoint_
Upstream point sample.
virtual bool read(const dictionary &dict)
Read dictionary.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void checkData() const
Check data.
scalar Cp_
Power coefficient.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldI)
Source term to momentum equation.
label upstreamCellId_
Upstream cell ID.
Generic GeometricField class.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.