Inflow Struct Reference

Kynema API: kynema::interfaces::components::Inflow Struct Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
kynema::interfaces::components::Inflow Struct Reference

Wind inflow model for turbine simulations. More...

#include <inflow.hpp>

Public Member Functions

 Inflow (InflowType type_, UniformFlow uniform_flow_)
 Constructor with type and uniform flow parameters.
 
std::array< double, 3 > Velocity (double t, const std::array< double, 3 > &position) const
 Calculates velocity vector at a given time and position.
 

Static Public Member Functions

static Inflow SteadyWind (double vh, double z_ref, double alpha, double angle_h)
 Creates a steady wind inflow.
 

Public Attributes

InflowType type {InflowType::Uniform}
 Type of inflow model.
 
UniformFlow uniform_flow
 Uniform flow parameters.
 

Detailed Description

Wind inflow model for turbine simulations.

Constructor & Destructor Documentation

◆ Inflow()

kynema::interfaces::components::Inflow::Inflow ( InflowType  type_,
UniformFlow  uniform_flow_ 
)
inline

Constructor with type and uniform flow parameters.

Member Function Documentation

◆ SteadyWind()

Inflow kynema::interfaces::components::Inflow::SteadyWind ( double  vh,
double  z_ref,
double  alpha,
double  angle_h 
)
static

Creates a steady wind inflow.

Parameters
vhHorizontal inflow velocity (m/s)
z_refReference height (m)
alphaVertical shear exponent
angle_hFlow angle relative to x axis (radians)

◆ Velocity()

std::array< double, 3 > kynema::interfaces::components::Inflow::Velocity ( double  t,
const std::array< double, 3 > &  position 
) const

Calculates velocity vector at a given time and position.

Parameters
tTime
position3D position [x, y, z]
Returns
3D velocity vector [vx, vy, vz]

Member Data Documentation

◆ type

InflowType kynema::interfaces::components::Inflow::type {InflowType::Uniform}

Type of inflow model.

◆ uniform_flow

UniformFlow kynema::interfaces::components::Inflow::uniform_flow

Uniform flow parameters.


The documentation for this struct was generated from the following files:
  • /home/runner/work/kynema/kynema/kynema/src/interfaces/components/inflow.hpp
  • /home/runner/work/kynema/kynema/kynema/src/interfaces/components/inflow.cpp