Go to the documentation of this file.
213 #ifndef actuationDiskSource_H
214 #define actuationDiskSource_H
231 class actuationDiskSource
233 public cellSetOption,
234 public functionObjects::writeFile
305 void setMonitorCells(
const dictionary&
dict);
308 template<
class AlphaFieldType,
class RhoFieldType>
311 const AlphaFieldType&
alpha,
312 const RhoFieldType&
rho,
313 fvMatrix<vector>& eqn
317 template<
class AlphaFieldType,
class RhoFieldType>
318 void calcFroudeMethod
320 const AlphaFieldType&
alpha,
321 const RhoFieldType&
rho,
322 fvMatrix<vector>& eqn
326 template<
class AlphaFieldType,
class RhoFieldType>
327 void calcVariableScalingMethod
329 const AlphaFieldType&
alpha,
330 const RhoFieldType&
rho,
331 fvMatrix<vector>& eqn
347 const word& modelType,
348 const dictionary&
dict,
vector diskDir_
Surface-normal vector of the actuator disk pointing upstream.
List< label > labelList
A List of labels.
monitorMethodType
Options for the incoming velocity monitoring method types.
A class for handling words, derived from Foam::string.
Cell-set options abstract base class. Provides a base set of controls, e.g.:
const word & name() const
Return const access to the source name.
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, to enable actuator disk models for aero/hydro thrust loading of ...
scalar writeFileStart_
Start time for file output.
actuationDiskSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
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.
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.
"Variable-scaling actuator disk method"
const fvMesh & mesh() const
Return const access to the mesh database.
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 (true) or a sink (false)
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.