CartBoxRefinement Class Reference

Kynema-SGF API: kynema_sgf::CartBoxRefinement Class Reference
Kynema-SGF API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <CartBoxRefinement.H>

Inheritance diagram for kynema_sgf::CartBoxRefinement:
[legend]
Collaboration diagram for kynema_sgf::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 &)
 Helper function to process inputs.
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()

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

◆ ~CartBoxRefinement()

kynema_sgf::CartBoxRefinement::~CartBoxRefinement ( )
overridedefault

Member Function Documentation

◆ boxarray_vec()

const amrex::Vector< amrex::BoxArray > & kynema_sgf::CartBoxRefinement::boxarray_vec ( ) const
inlinenodiscard

Vector of boxarrays that define refinement zones at each level.

◆ identifier()

std::string kynema_sgf::CartBoxRefinement::identifier ( )
inlinestatic

◆ initialize()

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

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

◆ operator()()

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

◆ read_inputs()

void kynema_sgf::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> kynema_sgf::CartBoxRefinement::m_boxarrays
protected

Boxarrays for each level in AMR hierarchy.

◆ m_mesh

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

◆ m_nlevels

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

Number of levels of fixed nested refinement.

◆ m_real_boxes

amrex::Vector<amrex::Vector<amrex::RealBox> > kynema_sgf::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: