4#ifndef OPENIMPALA_THROUGH_THICKNESS_PROFILE_H
5#define OPENIMPALA_THROUGH_THICKNESS_PROFILE_H
9#include <AMReX_Geometry.H>
10#include <AMReX_iMultiFab.H>
11#include <AMReX_REAL.H>
54 return static_cast<int>(m_vf_profile.size());
58 void compute(
const amrex::Geometry& geom,
const amrex::iMultiFab& mf_phase,
int phase_id,
62 std::vector<amrex::Real> m_vf_profile;
Abstract base class for tortuosity solvers and shared enums (Direction, CellType, SolverType).
void compute(const amrex::Geometry &geom, const amrex::iMultiFab &mf_phase, int phase_id, OpenImpala::Direction dir, int comp)
Compute the profile (public for CUDA device lambda compatibility).
Definition ThroughThicknessProfile.cpp:18
ThroughThicknessProfile & operator=(ThroughThicknessProfile &&)=default
ThroughThicknessProfile & operator=(const ThroughThicknessProfile &)=delete
const std::vector< amrex::Real > & volumeFractionProfile() const
Returns the volume fraction profile (one value per slice).
Definition ThroughThicknessProfile.H:48
ThroughThicknessProfile(const amrex::Geometry &geom, const amrex::iMultiFab &mf_phase, int phase_id, OpenImpala::Direction dir, int comp=0)
Construct and compute the through-thickness profile.
Definition ThroughThicknessProfile.cpp:12
int numSlices() const
Returns the number of slices.
Definition ThroughThicknessProfile.H:53
ThroughThicknessProfile(const ThroughThicknessProfile &)=delete
ThroughThicknessProfile(ThroughThicknessProfile &&)=default
~ThroughThicknessProfile()=default
Definition CathodeWrite.cpp:12
Direction
Defines cardinal directions for calculations.
Definition Tortuosity.H:13