4#ifndef OPENIMPALA_VOLUME_FRACTION_H
5#define OPENIMPALA_VOLUME_FRACTION_H
7#include <AMReX_iMultiFab.H>
37 explicit VolumeFraction(
const amrex::iMultiFab& fm,
const int phase = 0,
int comp = 0);
73 void value(
long long& phase_count,
long long& total_count,
bool local =
false)
const;
76 amrex::Real
value_vf(
bool local =
false)
const {
79 return (tc > 0) ?
static_cast<amrex::Real
>(pc) /
static_cast<amrex::Real
>(tc) : 0.0;
84 const amrex::iMultiFab& m_mf;
VolumeFraction(const amrex::iMultiFab &fm, const int phase=0, int comp=0)
Constructs a new VolumeFraction property calculator.
Definition VolumeFraction.cpp:12
virtual ~VolumeFraction()=default
Default virtual destructor (safer if inherited from).
VolumeFraction(VolumeFraction &&)=delete
Deleted move constructor.
amrex::Real value_vf(bool local=false) const
Definition VolumeFraction.H:76
VolumeFraction & operator=(const VolumeFraction &)=delete
Deleted copy assignment operator (due to reference member).
void value(long long &phase_count, long long &total_count, bool local=false) const
Computes the count of the specified phase and the total cell count.
Definition VolumeFraction.cpp:18
VolumeFraction(const VolumeFraction &)=delete
Deleted copy constructor (due to reference member).
VolumeFraction & operator=(VolumeFraction &&)=delete
Deleted move assignment operator.
Definition CathodeWrite.cpp:12