OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
ThroughThicknessProfile.H
Go to the documentation of this file.
1
4#ifndef OPENIMPALA_THROUGH_THICKNESS_PROFILE_H
5#define OPENIMPALA_THROUGH_THICKNESS_PROFILE_H
6
7#include "Tortuosity.H" // For OpenImpala::Direction
8
9#include <AMReX_Geometry.H>
10#include <AMReX_iMultiFab.H>
11#include <AMReX_REAL.H>
12
13#include <vector>
14
15namespace OpenImpala {
16
28public:
38 ThroughThicknessProfile(const amrex::Geometry& geom, const amrex::iMultiFab& mf_phase,
39 int phase_id, OpenImpala::Direction dir, int comp = 0);
40
46
48 const std::vector<amrex::Real>& volumeFractionProfile() const {
49 return m_vf_profile;
50 }
51
53 int numSlices() const {
54 return static_cast<int>(m_vf_profile.size());
55 }
56
58 void compute(const amrex::Geometry& geom, const amrex::iMultiFab& mf_phase, int phase_id,
59 OpenImpala::Direction dir, int comp);
60
61private:
62 std::vector<amrex::Real> m_vf_profile;
63};
64
65} // namespace OpenImpala
66
67#endif // OPENIMPALA_THROUGH_THICKNESS_PROFILE_H
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
Definition CathodeWrite.cpp:12
Direction
Defines cardinal directions for calculations.
Definition Tortuosity.H:13