Block-Structured AMR Software Framework
amrex::EBToPVD Class Reference

#include <AMReX_EBToPVD.H>

Public Member Functions

 EBToPVD ()=default
 
void EBToPolygon (const Real *problo, const Real *dx, const Box &bx, Array4< EBCellFlag const > const &flag, Array4< Real const > const &bcent, Array4< Real const > const &apx, Array4< Real const > const &apy, Array4< Real const > const &apz)
 
void WriteEBVTP (int myID) const
 
void EBGridCoverage (int myID, const Real *problo, const Real *dx, const Box &bx, Array4< EBCellFlag const > const &flag)
 

Static Public Member Functions

static void WritePVTP (int nProcs)
 

Private Member Functions

void reorder_polygon (const std::vector< std::array< Real, 3 >> &lpoints, std::array< int, 7 > &lconnect, const std::array< Real, 3 > &lnormal)
 
void print_points (std::ofstream &myfile) const
 
void print_connectivity (std::ofstream &myfile) const
 
void print_grids (std::ofstream &myfile) const
 

Static Private Member Functions

static void calc_hesse (Real &distance, std::array< Real, 3 > &n0, Real &p, const std::array< Real, 3 > &normal, const std::array< Real, 3 > &centroid)
 
static void calc_alpha (std::array< Real, 12 > &alpha, const std::array< Real, 3 > &n0, Real p, const std::array< std::array< Real, 3 >, 8 > &vertex, const Real *dx)
 
static void calc_intersects (int &int_count, std::array< bool, 12 > &intersects_flags, const std::array< Real, 12 > &alpha)
 

Private Attributes

std::vector< std::array< Real, 3 > > m_points
 
std::vector< std::array< int, 7 > > m_connectivity
 
int m_grid {0}
 

Constructor & Destructor Documentation

◆ EBToPVD()

amrex::EBToPVD::EBToPVD ( )
default

Member Function Documentation

◆ calc_alpha()

void amrex::EBToPVD::calc_alpha ( std::array< Real, 12 > &  alpha,
const std::array< Real, 3 > &  n0,
Real  p,
const std::array< std::array< Real, 3 >, 8 > &  vertex,
const Real *  dx 
)
staticprivate

◆ calc_hesse()

void amrex::EBToPVD::calc_hesse ( Real &  distance,
std::array< Real, 3 > &  n0,
Real &  p,
const std::array< Real, 3 > &  normal,
const std::array< Real, 3 > &  centroid 
)
staticprivate

◆ calc_intersects()

void amrex::EBToPVD::calc_intersects ( int int_count,
std::array< bool, 12 > &  intersects_flags,
const std::array< Real, 12 > &  alpha 
)
staticprivate

◆ EBGridCoverage()

void amrex::EBToPVD::EBGridCoverage ( int  myID,
const Real *  problo,
const Real *  dx,
const Box bx,
Array4< EBCellFlag const > const &  flag 
)

◆ EBToPolygon()

void amrex::EBToPVD::EBToPolygon ( const Real *  problo,
const Real *  dx,
const Box bx,
Array4< EBCellFlag const > const &  flag,
Array4< Real const > const &  bcent,
Array4< Real const > const &  apx,
Array4< Real const > const &  apy,
Array4< Real const > const &  apz 
)

◆ print_connectivity()

void amrex::EBToPVD::print_connectivity ( std::ofstream &  myfile) const
private

◆ print_grids()

void amrex::EBToPVD::print_grids ( std::ofstream &  myfile) const
private

◆ print_points()

void amrex::EBToPVD::print_points ( std::ofstream &  myfile) const
private

◆ reorder_polygon()

void amrex::EBToPVD::reorder_polygon ( const std::vector< std::array< Real, 3 >> &  lpoints,
std::array< int, 7 > &  lconnect,
const std::array< Real, 3 > &  lnormal 
)
private

◆ WriteEBVTP()

void amrex::EBToPVD::WriteEBVTP ( int  myID) const

◆ WritePVTP()

void amrex::EBToPVD::WritePVTP ( int  nProcs)
static

Member Data Documentation

◆ m_connectivity

std::vector<std::array<int,7> > amrex::EBToPVD::m_connectivity
private

◆ m_grid

int amrex::EBToPVD::m_grid {0}
private

◆ m_points

std::vector<std::array<Real,3> > amrex::EBToPVD::m_points
private

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