ActModel< ActTrait, SrcTrait > Class Template Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
amr_wind::actuator::ActModel< ActTrait, SrcTrait > Class Template Reference
#include <ActuatorModel.H>
Inheritance diagram for amr_wind::actuator::ActModel< ActTrait, SrcTrait >:
Collaboration diagram for amr_wind::actuator::ActModel< ActTrait, SrcTrait >:
Public Member Functions | |
ActModel (CFDSim &sim, const std::string &label, const int id) | |
const std::string & | label () const override |
Return the unique identifier (name) for this instance. | |
int | id () const override |
Return the unique tag (integer ID) for this instance. | |
const ActInfo & | info () const override |
Return the core info object for this actuator instance. | |
ActInfo & | info () override |
Return the core info object for this actuator instance. | |
const auto & | meta () const |
Return the meta info object for this actuator instance. | |
void | read_inputs (const utils::ActParser &pp) override |
void | determine_influenced_procs () override |
void | determine_root_proc (amrex::Vector< int > &act_proc_count) override |
int | num_velocity_points () const override |
void | update_positions (VecSlice &pos) override |
void | update_fields (const VecSlice &vel, const RealSlice &density) override |
void | compute_forces () override |
void | compute_source_term (const int lev, const amrex::MFIter &mfi, const amrex::Geometry &geom) override |
void | prepare_outputs (const std::string &out_dir) override |
void | write_outputs () override |
void | init_actuator_source () override |
Static Public Member Functions | |
static std::string | identifier () |
Private Attributes | |
ActTrait::DataType | m_data |
Instance that holds all data related to a particular actuator type. | |
ops::ActSrcOp< ActTrait, SrcTrait > | m_src_op |
Source computation operator. | |
ops::ProcessOutputsOp< ActTrait, SrcTrait > | m_out_op |
Outputs processor. | |
Detailed Description
template<typename ActTrait, typename SrcTrait = ActSrcLine>
class amr_wind::actuator::ActModel< ActTrait, SrcTrait >
class amr_wind::actuator::ActModel< ActTrait, SrcTrait >
Concrete implementation of the ActuatorModel for different actuator types.
- Template Parameters
-
ActTrait An actuator type trait that defines the behavior of the different actions (initialization, velocity sampling, force computation, and momentum source term computations) that are executed by the ActuatorModel class through the amr_wind::Actuator physics driver class. SrcTrait A source type trait that defines how the forcing term is computed, e.g., if the turbine rotor is represented as a line or a disk. For most cases, like the fixed wing case, this will just be line, therefore, it is set as default for convenience.
Constructor & Destructor Documentation
◆ ActModel()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inline |
- Parameters
-
sim CFD simulation environment instance label Unique string identifier for this instance id Unique integer tag for this instance
Member Function Documentation
◆ compute_forces()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ compute_source_term()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ determine_influenced_procs()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ determine_root_proc()
template<typename ActTrait , typename SrcTrait >
|
override |
◆ id()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
Return the unique tag (integer ID) for this instance.
◆ identifier()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlinestatic |
◆ info() [1/2]
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
Return the core info object for this actuator instance.
◆ info() [2/2]
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
Return the core info object for this actuator instance.
◆ init_actuator_source()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ label()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
Return the unique identifier (name) for this instance.
◆ meta()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inline |
Return the meta info object for this actuator instance.
◆ num_velocity_points()
template<typename ActTrait , typename SrcTrait >
|
override |
◆ prepare_outputs()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ read_inputs()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ update_fields()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ update_positions()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
◆ write_outputs()
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
inlineoverride |
Member Data Documentation
◆ m_data
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
private |
Instance that holds all data related to a particular actuator type.
◆ m_out_op
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
private |
Outputs processor.
◆ m_src_op
template<typename ActTrait , typename SrcTrait = ActSrcLine>
|
private |
Source computation operator.
The documentation for this class was generated from the following file:
- /home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/ActuatorModel.H
Generated by 1.12.0