OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
OpenImpala::ThroughThicknessProfile Class Reference

Computes a through-thickness volume fraction profile. More...

#include <ThroughThicknessProfile.H>

Public Member Functions

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).
int numSlices () const
 Returns the number of slices.
ThroughThicknessProfile & operator= (const ThroughThicknessProfile &)=delete
ThroughThicknessProfile & operator= (ThroughThicknessProfile &&)=default
 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.
 ThroughThicknessProfile (const ThroughThicknessProfile &)=delete
 ThroughThicknessProfile (ThroughThicknessProfile &&)=default
const std::vector< amrex::Real > & volumeFractionProfile () const
 Returns the volume fraction profile (one value per slice).
 ~ThroughThicknessProfile ()=default

Detailed Description

Computes a through-thickness volume fraction profile.

Slices the domain along the specified direction into individual planes (one voxel thick each) and computes the local volume fraction of the target phase in each slice. This produces a 1D array epsilon(z).

Note
Ghost cells are not required; only valid regions are used.
Warning
The iMultiFab must remain valid for the lifetime of this object.

Constructor & Destructor Documentation

◆ ThroughThicknessProfile() [1/3]

OpenImpala::ThroughThicknessProfile::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.

Parameters
geomAMReX Geometry.
mf_phaseiMultiFab containing phase IDs.
phase_idPhase to compute the profile for.
dirDirection to slice along.
compComponent index within mf_phase (default 0).

◆ ThroughThicknessProfile() [2/3]

OpenImpala::ThroughThicknessProfile::ThroughThicknessProfile ( const ThroughThicknessProfile & )
delete

◆ ThroughThicknessProfile() [3/3]

OpenImpala::ThroughThicknessProfile::ThroughThicknessProfile ( ThroughThicknessProfile && )
default

◆ ~ThroughThicknessProfile()

OpenImpala::ThroughThicknessProfile::~ThroughThicknessProfile ( )
default

Member Function Documentation

◆ compute()

void OpenImpala::ThroughThicknessProfile::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).

◆ numSlices()

int OpenImpala::ThroughThicknessProfile::numSlices ( ) const
inline

Returns the number of slices.

◆ operator=() [1/2]

ThroughThicknessProfile & OpenImpala::ThroughThicknessProfile::operator= ( const ThroughThicknessProfile & )
delete

◆ operator=() [2/2]

ThroughThicknessProfile & OpenImpala::ThroughThicknessProfile::operator= ( ThroughThicknessProfile && )
default

◆ volumeFractionProfile()

const std::vector< amrex::Real > & OpenImpala::ThroughThicknessProfile::volumeFractionProfile ( ) const
inline

Returns the volume fraction profile (one value per slice).


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