flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
peclet::flow::Solver< Grid >::UnitScales Struct Reference

#include <flow_ibm.hpp>

Public Member Functions

double lenToInt () const
double lenToPhys () const
double velToInt (int a) const
double velToPhys (int a) const
double timeToInt () const
double rhoToInt () const
double muToInt () const
double pToInt () const
double pToPhys () const
double forceToInt (int a) const
double sigmaToInt () const
double curvToPhys () const
double divToPhys () const
double timeToPhys () const
double angVelToInt () const
double forceTotalToPhys () const
double torqueToPhys () const
vof::VofMetric vofMetric () const
double diffToInt () const
double mdotToInt () const
double mdotToPhys () const
double latentToInt () const
double condToInt () const
double rcpToInt () const
double rintToInt () const
double divToInt () const
double areaToPhys () const
double volToPhys () const
double energyToPhys () const
 An internal energy (rho c_p T summed over cells of volume hRef^3) to joules: the internal energy unit is rhoRef*hRef^5/tRef^2.
double powerToPhys () const
double speedToInt () const
double resistToInt () const

Public Attributes

bool physical = false
 an extent was given (the scales are armed)
double h [3] = {1.0, 1.0, 1.0}
 cell size per axis = extent / cells
double org [3] = {0.0, 0.0, 0.0}
 physical lower corner of the GLOBAL inner grid
double ext [3] = {0.0, 0.0, 0.0}
 physical extent of the GLOBAL inner grid
long cells [3] = {0, 0, 0}
 the GLOBAL cell counts the extent spans
double hRef = 1.0
 reference length = min_a h_a (== h_a, Phase 1)
double rhoRef = 1.0
 reference density = the first set_rho
double tRef = 1.0
 reference time = the first set_dt
bool rhoRefSet = false
bool tRefSet = false
double hp [3] = {1.0, 1.0, 1.0}
 h_a' = h_a / hRef (>= 1, exactly 1 on the finest axis)
double w [3] = {1.0, 1.0, 1.0}
 w_a = 1 / h_a'^2 (<= 1)
double vol = 1.0
 V' = h_x' h_y' h_z' (cell volume in hRef^3).
bool aniso = false
 some h_a' != 1 — kernels dispatch the per-axis body
double hpMax = 1.0
 max_a h_a'

Detailed Description

template<class Grid>
struct peclet::flow::Solver< Grid >::UnitScales

Definition at line 138 of file flow_ibm.hpp.

Member Function Documentation

◆ lenToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::lenToInt ( ) const
inline

Definition at line 150 of file flow_ibm.hpp.

References hRef.

◆ lenToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::lenToPhys ( ) const
inline

Definition at line 151 of file flow_ibm.hpp.

References hRef.

◆ velToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::velToInt ( int a) const
inline

Definition at line 152 of file flow_ibm.hpp.

References h, and tRef.

◆ velToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::velToPhys ( int a) const
inline

Definition at line 153 of file flow_ibm.hpp.

References h, and tRef.

◆ timeToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::timeToInt ( ) const
inline

Definition at line 154 of file flow_ibm.hpp.

References tRef.

◆ rhoToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::rhoToInt ( ) const
inline

Definition at line 155 of file flow_ibm.hpp.

References rhoRef.

◆ muToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::muToInt ( ) const
inline

Definition at line 156 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ pToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::pToInt ( ) const
inline

Definition at line 157 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ pToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::pToPhys ( ) const
inline

Definition at line 158 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ forceToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::forceToInt ( int a) const
inline

Definition at line 159 of file flow_ibm.hpp.

References h, rhoRef, and tRef.

◆ sigmaToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::sigmaToInt ( ) const
inline

Definition at line 160 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ curvToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::curvToPhys ( ) const
inline

Definition at line 161 of file flow_ibm.hpp.

References hRef.

◆ divToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::divToPhys ( ) const
inline

Definition at line 162 of file flow_ibm.hpp.

References tRef.

◆ timeToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::timeToPhys ( ) const
inline

Definition at line 163 of file flow_ibm.hpp.

References tRef.

◆ angVelToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::angVelToInt ( ) const
inline

Definition at line 164 of file flow_ibm.hpp.

References tRef.

◆ forceTotalToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::forceTotalToPhys ( ) const
inline

Definition at line 167 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

Referenced by torqueToPhys().

◆ torqueToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::torqueToPhys ( ) const
inline

Definition at line 171 of file flow_ibm.hpp.

References forceTotalToPhys(), and hRef.

◆ vofMetric()

template<class Grid>
vof::VofMetric peclet::flow::Solver< Grid >::UnitScales::vofMetric ( ) const
inline

Definition at line 191 of file flow_ibm.hpp.

References hp.

◆ diffToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::diffToInt ( ) const
inline

Definition at line 209 of file flow_ibm.hpp.

References hRef, and tRef.

◆ mdotToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::mdotToInt ( ) const
inline

Definition at line 210 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ mdotToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::mdotToPhys ( ) const
inline

Definition at line 211 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ latentToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::latentToInt ( ) const
inline

Definition at line 212 of file flow_ibm.hpp.

References hRef, and tRef.

◆ condToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::condToInt ( ) const
inline

Definition at line 213 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ rcpToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::rcpToInt ( ) const
inline

Definition at line 217 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ rintToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::rintToInt ( ) const
inline

Definition at line 218 of file flow_ibm.hpp.

References hRef, rhoRef, and tRef.

◆ divToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::divToInt ( ) const
inline

Definition at line 219 of file flow_ibm.hpp.

References tRef.

◆ areaToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::areaToPhys ( ) const
inline

Definition at line 220 of file flow_ibm.hpp.

References hRef.

◆ volToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::volToPhys ( ) const
inline

Definition at line 221 of file flow_ibm.hpp.

References hRef.

Referenced by energyToPhys().

◆ energyToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::energyToPhys ( ) const
inline

An internal energy (rho c_p T summed over cells of volume hRef^3) to joules: the internal energy unit is rhoRef*hRef^5/tRef^2.

Definition at line 224 of file flow_ibm.hpp.

References hRef, rhoRef, tRef, and volToPhys().

Referenced by powerToPhys().

◆ powerToPhys()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::powerToPhys ( ) const
inline

Definition at line 225 of file flow_ibm.hpp.

References energyToPhys(), and tRef.

◆ speedToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::speedToInt ( ) const
inline

Definition at line 231 of file flow_ibm.hpp.

References hRef, and tRef.

◆ resistToInt()

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::resistToInt ( ) const
inline

Definition at line 235 of file flow_ibm.hpp.

References hRef, and tRef.

Member Data Documentation

◆ physical

template<class Grid>
bool peclet::flow::Solver< Grid >::UnitScales::physical = false

an extent was given (the scales are armed)

Definition at line 139 of file flow_ibm.hpp.

◆ h

◆ org

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::org[3] = {0.0, 0.0, 0.0}

physical lower corner of the GLOBAL inner grid

Definition at line 141 of file flow_ibm.hpp.

◆ ext

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::ext[3] = {0.0, 0.0, 0.0}

physical extent of the GLOBAL inner grid

Definition at line 142 of file flow_ibm.hpp.

Referenced by gsv1.Case::face_avg().

◆ cells

template<class Grid>
long peclet::flow::Solver< Grid >::UnitScales::cells[3] = {0, 0, 0}

the GLOBAL cell counts the extent spans

Definition at line 143 of file flow_ibm.hpp.

◆ hRef

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::hRef = 1.0

◆ rhoRef

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::rhoRef = 1.0

reference density = the first set_rho

Definition at line 145 of file flow_ibm.hpp.

Referenced by condToInt(), energyToPhys(), forceToInt(), forceTotalToPhys(), mdotToInt(), mdotToPhys(), muToInt(), pToInt(), pToPhys(), rcpToInt(), rhoToInt(), rintToInt(), and sigmaToInt().

◆ tRef

◆ rhoRefSet

template<class Grid>
bool peclet::flow::Solver< Grid >::UnitScales::rhoRefSet = false

Definition at line 147 of file flow_ibm.hpp.

◆ tRefSet

template<class Grid>
bool peclet::flow::Solver< Grid >::UnitScales::tRefSet = false

Definition at line 147 of file flow_ibm.hpp.

◆ hp

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::hp[3] = {1.0, 1.0, 1.0}

h_a' = h_a / hRef (>= 1, exactly 1 on the finest axis)

Definition at line 180 of file flow_ibm.hpp.

Referenced by vofMetric().

◆ w

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::w[3] = {1.0, 1.0, 1.0}

w_a = 1 / h_a'^2 (<= 1)

Definition at line 181 of file flow_ibm.hpp.

◆ vol

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::vol = 1.0

V' = h_x' h_y' h_z' (cell volume in hRef^3).

Definition at line 182 of file flow_ibm.hpp.

◆ aniso

template<class Grid>
bool peclet::flow::Solver< Grid >::UnitScales::aniso = false

some h_a' != 1 — kernels dispatch the per-axis body

Definition at line 183 of file flow_ibm.hpp.

◆ hpMax

template<class Grid>
double peclet::flow::Solver< Grid >::UnitScales::hpMax = 1.0

max_a h_a'

Definition at line 190 of file flow_ibm.hpp.


The documentation for this struct was generated from the following file: