ForestDrag Class Reference

Kynema-SGF API: kynema_sgf::forestdrag::ForestDrag Class Reference
Kynema-SGF API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <ForestDrag.H>

Inheritance diagram for kynema_sgf::forestdrag::ForestDrag:
[legend]
Collaboration diagram for kynema_sgf::forestdrag::ForestDrag:
[legend]

Public Member Functions

 ForestDrag (CFDSim &sim)
 ~ForestDrag () override=default
void initialize_fields (int, const amrex::Geometry &) override
void pre_init_actions () override
void post_init_actions () override
void post_regrid_actions () override
void pre_advance_work () override
void post_advance_work () override
amrex::Vector< Forestread_cylinder_forests (int level) const
amrex::Vector< Forestread_point_cloud_forests (int level, amrex::Vector< ForestPoint > &points, amrex::Vector< ForestHullEdge > &hull_edges) const

Static Public Member Functions

static std::string identifier ()

Private Attributes

CFDSimm_sim
Fieldm_forest_drag
Fieldm_forest_id
std::string m_forest_file {"forest.amrwind"}
amrex::Vector< std::string > m_point_cloud_files
amrex::Vector< amrex::Real > m_forest_cd
int m_point_neighbors {4}
amrex::Real m_point_interp_eps {constants::TIGHT_TOL}

Detailed Description

Forestdrag Flow physics

Constructor & Destructor Documentation

◆ ForestDrag()

kynema_sgf::forestdrag::ForestDrag::ForestDrag ( CFDSim & sim)
explicit

◆ ~ForestDrag()

kynema_sgf::forestdrag::ForestDrag::~ForestDrag ( )
overridedefault

Member Function Documentation

◆ identifier()

std::string kynema_sgf::forestdrag::ForestDrag::identifier ( )
inlinestatic

◆ initialize_fields()

void kynema_sgf::forestdrag::ForestDrag::initialize_fields ( int level,
const amrex::Geometry & geom )
override

◆ post_advance_work()

void kynema_sgf::forestdrag::ForestDrag::post_advance_work ( )
inlineoverride

◆ post_init_actions()

void kynema_sgf::forestdrag::ForestDrag::post_init_actions ( )
inlineoverride

◆ post_regrid_actions()

void kynema_sgf::forestdrag::ForestDrag::post_regrid_actions ( )
override

◆ pre_advance_work()

void kynema_sgf::forestdrag::ForestDrag::pre_advance_work ( )
inlineoverride

◆ pre_init_actions()

void kynema_sgf::forestdrag::ForestDrag::pre_init_actions ( )
inlineoverride

◆ read_cylinder_forests()

amrex::Vector< Forest > kynema_sgf::forestdrag::ForestDrag::read_cylinder_forests ( int level) const
nodiscard

◆ read_point_cloud_forests()

amrex::Vector< Forest > kynema_sgf::forestdrag::ForestDrag::read_point_cloud_forests ( int level,
amrex::Vector< ForestPoint > & points,
amrex::Vector< ForestHullEdge > & hull_edges ) const
nodiscard

Member Data Documentation

◆ m_forest_cd

amrex::Vector<amrex::Real> kynema_sgf::forestdrag::ForestDrag::m_forest_cd
private

◆ m_forest_drag

Field& kynema_sgf::forestdrag::ForestDrag::m_forest_drag
private

◆ m_forest_file

std::string kynema_sgf::forestdrag::ForestDrag::m_forest_file {"forest.amrwind"}
private

◆ m_forest_id

Field& kynema_sgf::forestdrag::ForestDrag::m_forest_id
private

◆ m_point_cloud_files

amrex::Vector<std::string> kynema_sgf::forestdrag::ForestDrag::m_point_cloud_files
private

◆ m_point_interp_eps

amrex::Real kynema_sgf::forestdrag::ForestDrag::m_point_interp_eps {constants::TIGHT_TOL}
private

◆ m_point_neighbors

int kynema_sgf::forestdrag::ForestDrag::m_point_neighbors {4}
private

◆ m_sim

CFDSim& kynema_sgf::forestdrag::ForestDrag::m_sim
private

The documentation for this class was generated from the following files:
  • /home/runner/work/kynema-sgf/kynema-sgf/src/physics/ForestDrag.H
  • /home/runner/work/kynema-sgf/kynema-sgf/src/physics/ForestDrag.cpp