ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
erf_actuator::CoverageGrids Struct Reference

#include <ERF_ActuatorSampling.H>

Collaboration diagram for erf_actuator::CoverageGrids:

Public Member Functions

 CoverageGrids (const amrex::BoxArray &ba, const amrex::Geometry &geom)
 

Public Attributes

amrex::BoxArray cells
 the boxes, cell-centered More...
 
amrex::BoxArray footprints
 each box flattened onto the bottom layer (they may overlap) More...
 

Detailed Description

A level's boxes as points_covered_by tests them, built once for every test of a check: the boxes cell-centered, and flattened onto the domain's bottom layer (for CoverZ::Footprint).

Constructor & Destructor Documentation

◆ CoverageGrids()

erf_actuator::CoverageGrids::CoverageGrids ( const amrex::BoxArray &  ba,
const amrex::Geometry &  geom 
)
737  : cells(amrex::convert(ba, IntVect::TheZeroVector()))
738 {
739  BL_PROFILE("erf_actuator::CoverageGrids()");
740  const Box& domain = geom.Domain();
741  BoxList flat;
742  for (int b = 0; b < static_cast<int>(cells.size()); ++b) {
743  Box f = cells[b];
744  f.setSmall(2, domain.smallEnd(2));
745  f.setBig(2, domain.smallEnd(2));
746  flat.push_back(f);
747  }
748  footprints = BoxArray(flat);
749 }
amrex::BoxArray footprints
each box flattened onto the bottom layer (they may overlap)
Definition: ERF_ActuatorSampling.H:300
amrex::BoxArray cells
the boxes, cell-centered
Definition: ERF_ActuatorSampling.H:299

Member Data Documentation

◆ cells

amrex::BoxArray erf_actuator::CoverageGrids::cells

the boxes, cell-centered

Referenced by CoverageGrids(), and erf_actuator::points_covered_by().

◆ footprints

amrex::BoxArray erf_actuator::CoverageGrids::footprints

each box flattened onto the bottom layer (they may overlap)

Referenced by CoverageGrids(), and erf_actuator::points_covered_by().


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