ABLWallFunction Class Reference

AMR-Wind API: amr_wind::ABLWallFunction Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <ABLWallFunction.H>

Collaboration diagram for amr_wind::ABLWallFunction:
[legend]

Public Member Functions

 ABLWallFunction (const CFDSim &sim)
 
 ~ABLWallFunction ()=default
 
MODatamo ()
 
const MODatamo () const
 
amrex::Real utau () const
 
void init_log_law_height ()
 Initialize the log-law height based on user inputs.
 
void update_umean (const VelPlaneAveragingFine &vpa, const FieldPlaneAveragingFine &tpa)
 Update the mean velocity at a given timestep.
 
void update_tflux (const amrex::Real tflux)
 

Private Attributes

const CFDSimm_sim
 
const amrex::AmrCore & m_mesh
 
MOData m_mo
 Monin-Obukhov instance.
 
int m_direction {2}
 Direction normal to wall.
 
bool m_use_fch {true}
 Use first cell height?
 
amrex::Vector< amrex::Real > m_gravity {0.0, 0.0, -9.81}
 
bool m_tempflux {true}
 
amrex::Real m_surf_temp_rate {0.0}
 
amrex::Real m_surf_temp_rate_tstart {0.0}
 
amrex::Real m_surf_temp_init {300.0}
 
bool m_inflow_outflow {false}
 
amrex::Real m_wf_vmag {0.0}
 
amrex::Array< amrex::Real, 2 > m_wf_vel {0.0, 0.0}
 
amrex::Real m_wf_theta {300.0}
 

Detailed Description

Wall-function computations for LES simulations of ABL

This class performs the necessary computations at the beginning of predictor/corrector steps. The actual BC population in ghost cells is performed by ABLVelWallFunc BC interface class.

Constructor & Destructor Documentation

◆ ABLWallFunction()

amr_wind::ABLWallFunction::ABLWallFunction ( const CFDSim & sim)
explicit

◆ ~ABLWallFunction()

amr_wind::ABLWallFunction::~ABLWallFunction ( )
default

Member Function Documentation

◆ init_log_law_height()

void amr_wind::ABLWallFunction::init_log_law_height ( )

Initialize the log-law height based on user inputs.

◆ mo() [1/2]

MOData & amr_wind::ABLWallFunction::mo ( )
inline

◆ mo() [2/2]

const MOData & amr_wind::ABLWallFunction::mo ( ) const
inline

◆ update_tflux()

void amr_wind::ABLWallFunction::update_tflux ( const amrex::Real tflux)

◆ update_umean()

void amr_wind::ABLWallFunction::update_umean ( const VelPlaneAveragingFine & vpa,
const FieldPlaneAveragingFine & tpa )

Update the mean velocity at a given timestep.

◆ utau()

amrex::Real amr_wind::ABLWallFunction::utau ( ) const
inline

Return the plane-averaged computed friction velocity at any given instance

Member Data Documentation

◆ m_direction

int amr_wind::ABLWallFunction::m_direction {2}
private

Direction normal to wall.

◆ m_gravity

amrex::Vector<amrex::Real> amr_wind::ABLWallFunction::m_gravity {0.0, 0.0, -9.81}
private

◆ m_inflow_outflow

bool amr_wind::ABLWallFunction::m_inflow_outflow {false}
private

◆ m_mesh

const amrex::AmrCore& amr_wind::ABLWallFunction::m_mesh
private

◆ m_mo

MOData amr_wind::ABLWallFunction::m_mo
private

Monin-Obukhov instance.

◆ m_sim

const CFDSim& amr_wind::ABLWallFunction::m_sim
private

◆ m_surf_temp_init

amrex::Real amr_wind::ABLWallFunction::m_surf_temp_init {300.0}
private

◆ m_surf_temp_rate

amrex::Real amr_wind::ABLWallFunction::m_surf_temp_rate {0.0}
private

◆ m_surf_temp_rate_tstart

amrex::Real amr_wind::ABLWallFunction::m_surf_temp_rate_tstart {0.0}
private

◆ m_tempflux

bool amr_wind::ABLWallFunction::m_tempflux {true}
private

◆ m_use_fch

bool amr_wind::ABLWallFunction::m_use_fch {true}
private

Use first cell height?

◆ m_wf_theta

amrex::Real amr_wind::ABLWallFunction::m_wf_theta {300.0}
private

◆ m_wf_vel

amrex::Array<amrex::Real, 2> amr_wind::ABLWallFunction::m_wf_vel {0.0, 0.0}
private

◆ m_wf_vmag

amrex::Real amr_wind::ABLWallFunction::m_wf_vmag {0.0}
private

The documentation for this class was generated from the following files: