Go to the documentation of this file.
210 #ifndef actuationDiskSource_H
211 #define actuationDiskSource_H
228 class actuationDiskSource
230 public fv::cellSetOption,
231 public functionObjects::writeFile
302 void setMonitorCells(
const dictionary&
dict);
305 template<
class AlphaFieldType,
class RhoFieldType>
308 const AlphaFieldType&
alpha,
309 const RhoFieldType&
rho,
310 fvMatrix<vector>& eqn
314 template<
class AlphaFieldType,
class RhoFieldType>
315 void calcFroudeMethod
317 const AlphaFieldType&
alpha,
318 const RhoFieldType&
rho,
319 fvMatrix<vector>& eqn
323 template<
class AlphaFieldType,
class RhoFieldType>
324 void calcVariableScalingMethod
326 const AlphaFieldType&
alpha,
327 const RhoFieldType&
rho,
328 fvMatrix<vector>& eqn
347 const word& modelType,
348 const dictionary&
dict,
vector diskDir_
Surface-normal vector of the actuator disk pointing downstream.
List< label > labelList
A List of labels.
const word & name() const noexcept
Return const access to the source name.
monitorMethodType
Options for the incoming velocity monitoring method types.
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
static const Enum< monitorMethodType > monitorMethodTypeNames
Names for monitorMethodType.
scalar diskArea_
Actuator disk planar surface area [m2].
void operator=(const actuationDiskSource &)=delete
No copy assignment.
Applies sources on velocity (i.e. U) within a specified region to enable actuator disk models for aer...
scalar writeFileStart_
Start time for file output.
actuationDiskSource()=delete
No default construct.
scalar diskArea() const
Disk area.
enum forceMethodType forceMethod_
The type of the force computation method.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
autoPtr< Function1< scalar > > UvsCtPtr_
Velocity vs thrust coefficients.
virtual ~actuationDiskSource()=default
Destructor.
OBJstream os(runTime.globalPath()/outputName)
static const Enum< forceMethodType > forceMethodTypeNames
Names for forceMethodType.
Mesh data needed to do the Finite Volume discretisation.
Vector< scalar > vector
A scalar version of the templated Vector.
autoPtr< Function1< scalar > > UvsCpPtr_
Velocity vs power coefficients.
virtual void writeFileHeader(Ostream &os)
Output file header information.
scalar writeFileEnd_
End time for file output.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
"Variable-scaling actuator disk method"
virtual bool read(const dictionary &dict)
Read dictionary.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Source term to momentum equation.
Base class for writing single files from the function objects.
forceMethodType
Options for the force computation method types.
"Froude's ideal actuator disk method"
TypeName("actuationDiskSource")
Runtime type information.
label sink_
Flag for body forces to act as a source (false) or a sink (true)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
labelList monitorCells_
Set of cells whereat the incoming velocity is monitored.
enum monitorMethodType monitorMethod_
The type of incoming velocity monitoring method.
const vector & diskDir() const
Normal disk direction.