BoussinesqBuoyancy Class Reference

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

#include <BoussinesqBuoyancy.H>

Inheritance diagram for amr_wind::pde::icns::BoussinesqBuoyancy:
[legend]
Collaboration diagram for amr_wind::pde::icns::BoussinesqBuoyancy:
[legend]

Public Member Functions

 BoussinesqBuoyancy (const CFDSim &sim)
 
 ~BoussinesqBuoyancy () override
 
void operator() (const int lev, const amrex::MFIter &mfi, const amrex::Box &bx, const FieldState fstate, const amrex::Array4< amrex::Real > &src_term) const override
 

Static Public Member Functions

static std::string identifier ()
 

Private Attributes

const Fieldm_temperature
 
const Fieldm_vof
 
amrex::Vector< amrex::Real > m_gravity {0.0, 0.0, -9.81}
 
amrex::Real m_ref_theta {300.0}
 Reference temperature (Kelvin)
 
amrex::Real m_beta {0.0}
 Thermal expansion coefficient.
 
bool m_is_vof {false}
 Check for VOF.
 

Detailed Description

Boussinesq buoyancy source term

\[ S = \beta g \left( T_\mathrm{ref} - T \right) \]

Constructor & Destructor Documentation

◆ BoussinesqBuoyancy()

amr_wind::pde::icns::BoussinesqBuoyancy::BoussinesqBuoyancy ( const CFDSim & sim)
explicit

Boussinesq buoyancy source term for ABL simulations

Reads in the following parameters from BoussinesqBuoyancy namespace:

  • reference_temperature (Mandatory) temperature (T0) in Kelvin
  • thermal_expansion_coeff Optional, default = 1.0 / T0
  • gravity acceleration due to gravity (m/s)

◆ ~BoussinesqBuoyancy()

amr_wind::pde::icns::BoussinesqBuoyancy::~BoussinesqBuoyancy ( )
overridedefault

Member Function Documentation

◆ identifier()

static std::string amr_wind::pde::icns::BoussinesqBuoyancy::identifier ( )
inlinestatic

◆ operator()()

void amr_wind::pde::icns::BoussinesqBuoyancy::operator() ( const int lev,
const amrex::MFIter & mfi,
const amrex::Box & bx,
const FieldState fstate,
const amrex::Array4< amrex::Real > & src_term ) const
override

Member Data Documentation

◆ m_beta

amrex::Real amr_wind::pde::icns::BoussinesqBuoyancy::m_beta {0.0}
private

Thermal expansion coefficient.

◆ m_gravity

amrex::Vector<amrex::Real> amr_wind::pde::icns::BoussinesqBuoyancy::m_gravity {0.0, 0.0, -9.81}
private

◆ m_is_vof

bool amr_wind::pde::icns::BoussinesqBuoyancy::m_is_vof {false}
private

Check for VOF.

◆ m_ref_theta

amrex::Real amr_wind::pde::icns::BoussinesqBuoyancy::m_ref_theta {300.0}
private

Reference temperature (Kelvin)

◆ m_temperature

const Field& amr_wind::pde::icns::BoussinesqBuoyancy::m_temperature
private

◆ m_vof

const Field* amr_wind::pde::icns::BoussinesqBuoyancy::m_vof
private

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