RectangularSubvolume Class Reference

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

#include <RectangularSubvolume.H>

Inheritance diagram for amr_wind::subvolume::RectangularSubvolume:
[legend]
Collaboration diagram for amr_wind::subvolume::RectangularSubvolume:
[legend]

Public Member Functions

 RectangularSubvolume (const CFDSim &)
 ~RectangularSubvolume () override
void initialize (const std::string &key) override
void evaluate_inputs () override
 Check if inputs have a valid correspondence in the mesh and save quantities for output steps.
std::string label () const override
 Name of this subvolume object.
std::string & label () override
std::string subvolumetype () const override
 Type of this subvolume object.
int lev () const override
amrex::BoxArray box_array () const override

Static Public Member Functions

static std::string identifier ()

Protected Attributes

const CFDSimm_sim
amrex::Vector< amrex::Real > m_origin
amrex::Vector< int > m_npts_vec
amrex::Vector< amrex::Real > m_dx_vec
amrex::Vector< int > m_chunk_size_vec
int m_lev_for_sub {0}
int m_verbose {0}
bool m_chunk_size_present
amrex::BoxArray m_ba
std::string m_label

Detailed Description

Get subvolume defined by 3D rectangle

Defines volume region with origin, number of points in each direction, and target mesh resolution in each direction. Also has an optional parameter regarding the data organization, which is the chunk size.

Constructor & Destructor Documentation

◆ RectangularSubvolume()

amr_wind::subvolume::RectangularSubvolume::RectangularSubvolume ( const CFDSim & sim)
explicit

◆ ~RectangularSubvolume()

amr_wind::subvolume::RectangularSubvolume::~RectangularSubvolume ( )
overridedefault

Member Function Documentation

◆ box_array()

amrex::BoxArray amr_wind::subvolume::RectangularSubvolume::box_array ( ) const
inlineoverride

◆ evaluate_inputs()

void amr_wind::subvolume::RectangularSubvolume::evaluate_inputs ( )
override

Check if inputs have a valid correspondence in the mesh and save quantities for output steps.

◆ identifier()

std::string amr_wind::subvolume::RectangularSubvolume::identifier ( )
inlinestatic

◆ initialize()

void amr_wind::subvolume::RectangularSubvolume::initialize ( const std::string & key)
override

Read user inputs and initialize the subvolume object

Parameters
keyPrefix used to parse inputs from file

◆ label() [1/2]

std::string amr_wind::subvolume::RectangularSubvolume::label ( ) const
inlineoverride

Name of this subvolume object.

◆ label() [2/2]

std::string & amr_wind::subvolume::RectangularSubvolume::label ( )
inlineoverride

◆ lev()

int amr_wind::subvolume::RectangularSubvolume::lev ( ) const
inlineoverride

◆ subvolumetype()

std::string amr_wind::subvolume::RectangularSubvolume::subvolumetype ( ) const
inlineoverride

Type of this subvolume object.

Member Data Documentation

◆ m_ba

amrex::BoxArray amr_wind::subvolume::RectangularSubvolume::m_ba
protected

◆ m_chunk_size_present

bool amr_wind::subvolume::RectangularSubvolume::m_chunk_size_present
protected

◆ m_chunk_size_vec

amrex::Vector<int> amr_wind::subvolume::RectangularSubvolume::m_chunk_size_vec
protected

◆ m_dx_vec

amrex::Vector<amrex::Real> amr_wind::subvolume::RectangularSubvolume::m_dx_vec
protected

◆ m_label

std::string amr_wind::subvolume::RectangularSubvolume::m_label
protected

◆ m_lev_for_sub

int amr_wind::subvolume::RectangularSubvolume::m_lev_for_sub {0}
protected

◆ m_npts_vec

amrex::Vector<int> amr_wind::subvolume::RectangularSubvolume::m_npts_vec
protected

◆ m_origin

amrex::Vector<amrex::Real> amr_wind::subvolume::RectangularSubvolume::m_origin
protected

◆ m_sim

const CFDSim& amr_wind::subvolume::RectangularSubvolume::m_sim
protected

◆ m_verbose

int amr_wind::subvolume::RectangularSubvolume::m_verbose {0}
protected

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