ZalesakDiskScalarVel Class Reference

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

#include <ZalesakDiskScalarVel.H>

Inheritance diagram for amr_wind::zds::ZalesakDiskScalarVel:
[legend]
Collaboration diagram for amr_wind::zds::ZalesakDiskScalarVel:
[legend]

Public Member Functions

 ZalesakDiskScalarVel (CFDSim &sim)
 
 ~ZalesakDiskScalarVel () override=default
 
void initialize_fields (int level, const amrex::Geometry &geom) override
 Initialize the levelset and velocity fields for Vortex Patch simulations.
 
void post_init_actions () override
 
void post_regrid_actions () override
 
void pre_advance_work () override
 
void post_advance_work () override
 
template<typename T >
amrex::Real compute_error (const Field &)
 

Static Public Member Functions

static std::string identifier ()
 

Private Member Functions

void output_error ()
 

Private Attributes

const CFDSimm_sim
 
Fieldm_velocity
 
Fieldm_levelset
 
Fieldm_density
 
amrex::Vector< amrex::Real > m_loc {0.5, 0.72, 0.24}
 Initial ZalesakDiskScalarVel location.
 
amrex::Real m_radius {0.16}
 sphere radius value
 
amrex::Real m_halfwidth {0.04}
 slot half-width value
 
amrex::Real m_depth {0.2}
 slot depth
 
amrex::Real m_TT {6.0}
 prescribed velocity period
 
const int m_w {18}
 output precision
 
std::string m_output_fname {"zds.log"}
 error log file
 

Constructor & Destructor Documentation

◆ ZalesakDiskScalarVel()

amr_wind::zds::ZalesakDiskScalarVel::ZalesakDiskScalarVel ( CFDSim & sim)
explicit

◆ ~ZalesakDiskScalarVel()

amr_wind::zds::ZalesakDiskScalarVel::~ZalesakDiskScalarVel ( )
overridedefault

Member Function Documentation

◆ compute_error()

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

◆ identifier()

static std::string amr_wind::zds::ZalesakDiskScalarVel::identifier ( )
inlinestatic

◆ initialize_fields()

void amr_wind::zds::ZalesakDiskScalarVel::initialize_fields ( int level,
const amrex::Geometry & geom )
override

Initialize the levelset and velocity fields for Vortex Patch simulations.

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

See also
amr_wind::ZalesakDiskScalarVelFieldInit

◆ output_error()

void amr_wind::zds::ZalesakDiskScalarVel::output_error ( )
private

◆ post_advance_work()

void amr_wind::zds::ZalesakDiskScalarVel::post_advance_work ( )
override

◆ post_init_actions()

void amr_wind::zds::ZalesakDiskScalarVel::post_init_actions ( )
inlineoverride

◆ post_regrid_actions()

void amr_wind::zds::ZalesakDiskScalarVel::post_regrid_actions ( )
inlineoverride

◆ pre_advance_work()

void amr_wind::zds::ZalesakDiskScalarVel::pre_advance_work ( )
override

Member Data Documentation

◆ m_density

Field& amr_wind::zds::ZalesakDiskScalarVel::m_density
private

◆ m_depth

amrex::Real amr_wind::zds::ZalesakDiskScalarVel::m_depth {0.2}
private

slot depth

◆ m_halfwidth

amrex::Real amr_wind::zds::ZalesakDiskScalarVel::m_halfwidth {0.04}
private

slot half-width value

◆ m_levelset

Field& amr_wind::zds::ZalesakDiskScalarVel::m_levelset
private

◆ m_loc

amrex::Vector<amrex::Real> amr_wind::zds::ZalesakDiskScalarVel::m_loc {0.5, 0.72, 0.24}
private

Initial ZalesakDiskScalarVel location.

◆ m_output_fname

std::string amr_wind::zds::ZalesakDiskScalarVel::m_output_fname {"zds.log"}
private

error log file

◆ m_radius

amrex::Real amr_wind::zds::ZalesakDiskScalarVel::m_radius {0.16}
private

sphere radius value

◆ m_sim

const CFDSim& amr_wind::zds::ZalesakDiskScalarVel::m_sim
private

◆ m_TT

amrex::Real amr_wind::zds::ZalesakDiskScalarVel::m_TT {6.0}
private

prescribed velocity period

◆ m_velocity

Field& amr_wind::zds::ZalesakDiskScalarVel::m_velocity
private

◆ m_w

const int amr_wind::zds::ZalesakDiskScalarVel::m_w {18}
private

output precision


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