/home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/FLLC.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/FLLC.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
FLLC.H
Go to the documentation of this file.
1#ifndef FLLC
2#define FLLC
3
6#include "AMReX_REAL.H"
7
8using namespace amrex::literals;
9
10namespace amr_wind::actuator {
11
13
14static std::map<std::string, FLLCType> FLLCTypeMap{
15 {"constant_chord", FLLCType::ConstantChord},
16 {"variable_chord", FLLCType::VariableChord}};
17
19{
20 // constants
22 amrex::Real epsilon;
23 amrex::Real relaxation_factor{0.1_rt};
24 amrex::Real fllc_start_time{0.0_rt};
28
29 // computed values
36 bool initialized{false};
40
41 // non-uniform variables
42 bool nonuniform{true}; // non-uniform flag
43 amrex::Real eps_dr{1.}; // the ratio of epsilon to actuator width
44 RealList nonuniform_r; // non-uniform radius
45 RealList nonuniform_dr; // non-uniform spacing
46 VecList vel_rel; // uniform relative velocity
47 VecList nonuniform_vel_rel; // non-uniform relative velocity
48 RealList nonuniform_optimal_epsilon; // non-uniform radius
49 VecList nonuniform_lift; // non-uniform lift
50};
51
59void fllc_parse(const utils::ActParser& pp, FLLCData& data);
60
69void fllc_init(
70 FLLCData& data, const ComponentView& view, const amrex::Real eps_chord);
71
72} // namespace amr_wind::actuator
73
74#endif /* FLLC */
::amr_wind::utils::MultiParser ActParser
Definition ActParser.H:8
Definition ActParser.H:6
void fllc_init(FLLCData &data, const ComponentView &view, const amrex::Real eps_chord)
Initialize FLLC data structure. This should be called at the end of the first ComputeForceOp to ensur...
Definition FLLC.cpp:9
void fllc_parse(const utils::ActParser &pp, FLLCData &data)
Function to capture common parsing requirements for the filtered lifting line correction.
Definition FLLC.cpp:113
amrex::Vector< amrex::Real > RealList
Definition actuator_types.H:63
amrex::Vector< amr_wind::vs::Vector > VecList
Definition actuator_types.H:65
static std::map< std::string, FLLCType > FLLCTypeMap
Definition FLLC.H:14
FLLCType
Definition FLLC.H:12
@ ConstantChord
Definition FLLC.H:12
@ VariableChord
Definition FLLC.H:12
Definition actuator_types.H:129
Definition FLLC.H:19
RealList span_distance_force
Definition FLLC.H:39
amrex::Real epsilon
Definition FLLC.H:22
RealList nonuniform_r
Definition FLLC.H:44
VecList vel_rel
Definition FLLC.H:46
amrex::Real fllc_start_time
Definition FLLC.H:24
bool initialized
Definition FLLC.H:36
amrex::Real relaxation_factor
Definition FLLC.H:23
amrex::Real eps_dr
Definition FLLC.H:43
RealList dr
Definition FLLC.H:26
RealList nonuniform_optimal_epsilon
Definition FLLC.H:48
RealList optimal_epsilon
Definition FLLC.H:27
VecList optimal_velocity
Definition FLLC.H:32
bool different_sizes
Definition FLLC.H:37
RealList nonuniform_dr
Definition FLLC.H:45
VecList correction_velocity
Definition FLLC.H:33
bool nonuniform
Definition FLLC.H:42
VecList nonuniform_vel_rel
Definition FLLC.H:47
VecList force_point_velocity
Definition FLLC.H:30
FLLCType correction_type
Definition FLLC.H:21
VecList les_velocity
Definition FLLC.H:31
VecList nonuniform_lift
Definition FLLC.H:49
VecList grad_lift
Definition FLLC.H:35
RealList span_distance_vel
Definition FLLC.H:38
RealList r
Definition FLLC.H:25
VecList lift
Definition FLLC.H:34