CartBoxRefinement Class Reference

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

#include <CartBoxRefinement.H>

Inheritance diagram for amr_wind::CartBoxRefinement:
[legend]
Collaboration diagram for amr_wind::CartBoxRefinement:
[legend]

Public Member Functions

 CartBoxRefinement (CFDSim &sim)
 
 ~CartBoxRefinement () override=default
 
void initialize (const std::string &key) override
 Read input file and initialize boxarray used to refine each level.
 
void operator() (int level, amrex::TagBoxArray &tags, amrex::Real time, int ngrow) override
 
void read_inputs (const amrex::AmrCore &, std::istream &)
 
const amrex::Vector< amrex::BoxArray > & boxarray_vec () const
 Vector of boxarrays that define refinement zones at each level.
 

Static Public Member Functions

static std::string identifier ()
 

Protected Attributes

const amrex::AmrCore & m_mesh
 
amrex::Vector< amrex::Vector< amrex::RealBox > > m_real_boxes
 Domain bounding boxes where refinement is performed at each level.
 
amrex::Vector< amrex::BoxArray > m_boxarrays
 Boxarrays for each level in AMR hierarchy.
 
int m_nlevels {-1}
 Number of levels of fixed nested refinement.
 

Detailed Description

Static refinement with Cartesian-aligned bounding boxes

Implements tagging functionality for nested refinement of meshes using bounding box specifications. This class only allows nested refinement of regions that are aligned with the coordinate directons.

Constructor & Destructor Documentation

◆ CartBoxRefinement()

amr_wind::CartBoxRefinement::CartBoxRefinement ( CFDSim & sim)
explicit

◆ ~CartBoxRefinement()

amr_wind::CartBoxRefinement::~CartBoxRefinement ( )
overridedefault

Member Function Documentation

◆ boxarray_vec()

const amrex::Vector< amrex::BoxArray > & amr_wind::CartBoxRefinement::boxarray_vec ( ) const
inline

Vector of boxarrays that define refinement zones at each level.

◆ identifier()

static std::string amr_wind::CartBoxRefinement::identifier ( )
inlinestatic

◆ initialize()

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

Read input file and initialize boxarray used to refine each level.

◆ operator()()

void amr_wind::CartBoxRefinement::operator() ( int level,
amrex::TagBoxArray & tags,
amrex::Real time,
int ngrow )
override

◆ read_inputs()

void amr_wind::CartBoxRefinement::read_inputs ( const amrex::AmrCore & mesh,
std::istream & ifh )

Helper function to process inputs

Created separate from initialize to allow unit testing

Member Data Documentation

◆ m_boxarrays

amrex::Vector<amrex::BoxArray> amr_wind::CartBoxRefinement::m_boxarrays
protected

Boxarrays for each level in AMR hierarchy.

◆ m_mesh

const amrex::AmrCore& amr_wind::CartBoxRefinement::m_mesh
protected

◆ m_nlevels

int amr_wind::CartBoxRefinement::m_nlevels {-1}
protected

Number of levels of fixed nested refinement.

◆ m_real_boxes

amrex::Vector<amrex::Vector<amrex::RealBox> > amr_wind::CartBoxRefinement::m_real_boxes
protected

Domain bounding boxes where refinement is performed at each level.


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