ConvectingTaylorVortex Class Reference

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

#include <ConvectingTaylorVortex.H>

Inheritance diagram for amr_wind::ctv::ConvectingTaylorVortex:
[legend]
Collaboration diagram for amr_wind::ctv::ConvectingTaylorVortex:
[legend]

Public Member Functions

 ConvectingTaylorVortex (const CFDSim &sim)
 
 ~ConvectingTaylorVortex () override=default
 
void initialize_fields (int level, const amrex::Geometry &geom) override
 
template<typename T >
amrex::Real compute_error (const Field &)
 
void post_init_actions () override
 
void post_regrid_actions () override
 
void pre_advance_work () override
 
void post_advance_work () override
 
amrex::Real get_u0 () const
 
amrex::Real get_v0 () const
 
amrex::Real get_omega () const
 

Static Public Member Functions

static std::string identifier ()
 

Private Member Functions

void output_error ()
 

Private Attributes

const amr_wind::SimTimem_time
 
const amr_wind::CFDSimm_sim
 
const FieldRepom_repo
 
const amrex::AmrCore & m_mesh
 
Fieldm_velocity
 
Fieldm_gradp
 
Fieldm_density
 
amrex::Real m_rho {1.0}
 initial density value
 
amrex::Real m_u0 {1.0}
 mean x-velocity value
 
amrex::Real m_v0 {1.0}
 mean y-velocity value
 
amrex::Real m_omega
 damping
 
const int m_w {18}
 output precision
 
std::string m_output_fname {"ctv.log"}
 error log file
 
bool m_activate_pressure {false}
 
bool m_mesh_mapping {false}
 

Detailed Description

Convecting Taylor Vortex physics

Constructor & Destructor Documentation

◆ ConvectingTaylorVortex()

amr_wind::ctv::ConvectingTaylorVortex::ConvectingTaylorVortex ( const CFDSim & sim)
explicit

◆ ~ConvectingTaylorVortex()

amr_wind::ctv::ConvectingTaylorVortex::~ConvectingTaylorVortex ( )
overridedefault

Member Function Documentation

◆ compute_error()

template<typename T >
amrex::Real amr_wind::ctv::ConvectingTaylorVortex::compute_error ( const Field & field)

◆ get_omega()

amrex::Real amr_wind::ctv::ConvectingTaylorVortex::get_omega ( ) const
inline

◆ get_u0()

amrex::Real amr_wind::ctv::ConvectingTaylorVortex::get_u0 ( ) const
inline

◆ get_v0()

amrex::Real amr_wind::ctv::ConvectingTaylorVortex::get_v0 ( ) const
inline

◆ identifier()

static std::string amr_wind::ctv::ConvectingTaylorVortex::identifier ( )
inlinestatic

◆ initialize_fields()

void amr_wind::ctv::ConvectingTaylorVortex::initialize_fields ( int level,
const amrex::Geometry & geom )
override

Initialize the velocity and density fields at the beginning of the simulation.

◆ output_error()

void amr_wind::ctv::ConvectingTaylorVortex::output_error ( )
private

◆ post_advance_work()

void amr_wind::ctv::ConvectingTaylorVortex::post_advance_work ( )
override

◆ post_init_actions()

void amr_wind::ctv::ConvectingTaylorVortex::post_init_actions ( )
override

◆ post_regrid_actions()

void amr_wind::ctv::ConvectingTaylorVortex::post_regrid_actions ( )
inlineoverride

◆ pre_advance_work()

void amr_wind::ctv::ConvectingTaylorVortex::pre_advance_work ( )
inlineoverride

Member Data Documentation

◆ m_activate_pressure

bool amr_wind::ctv::ConvectingTaylorVortex::m_activate_pressure {false}
private

◆ m_density

Field& amr_wind::ctv::ConvectingTaylorVortex::m_density
private

◆ m_gradp

Field& amr_wind::ctv::ConvectingTaylorVortex::m_gradp
private

◆ m_mesh

const amrex::AmrCore& amr_wind::ctv::ConvectingTaylorVortex::m_mesh
private

◆ m_mesh_mapping

bool amr_wind::ctv::ConvectingTaylorVortex::m_mesh_mapping {false}
private

◆ m_omega

amrex::Real amr_wind::ctv::ConvectingTaylorVortex::m_omega
private

damping

◆ m_output_fname

std::string amr_wind::ctv::ConvectingTaylorVortex::m_output_fname {"ctv.log"}
private

error log file

◆ m_repo

const FieldRepo& amr_wind::ctv::ConvectingTaylorVortex::m_repo
private

◆ m_rho

amrex::Real amr_wind::ctv::ConvectingTaylorVortex::m_rho {1.0}
private

initial density value

◆ m_sim

const amr_wind::CFDSim& amr_wind::ctv::ConvectingTaylorVortex::m_sim
private

◆ m_time

const amr_wind::SimTime& amr_wind::ctv::ConvectingTaylorVortex::m_time
private

◆ m_u0

amrex::Real amr_wind::ctv::ConvectingTaylorVortex::m_u0 {1.0}
private

mean x-velocity value

◆ m_v0

amrex::Real amr_wind::ctv::ConvectingTaylorVortex::m_v0 {1.0}
private

mean y-velocity value

◆ m_velocity

Field& amr_wind::ctv::ConvectingTaylorVortex::m_velocity
private

◆ m_w

const int amr_wind::ctv::ConvectingTaylorVortex::m_w {18}
private

output precision


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