ODT
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
param Class Reference

#include <param.h>

Public Member Functions

 param (inputoutput *p_io)
 
void init (domain *p_domn)
 
 ~param ()
 

Public Attributes

domaindomn
 pointer to domain object
 
inputoutputio
 pointer to io object (has the input file)
 
int seed
 random number generator seed (negative to randomize it)
 
double tEnd
 ending time of realization
 
double domainLength
 length of domain (m)
 
int ngrd0
 initial grid points
 
double rho0
 initial uniform density (kg/m^3)
 
double kvisc0
 initial uniform kinematic viscosity (m^2/s)
 
double sdiff0
 initial uniform scalar diffusivity (m^2/s)
 
double dPdx
 initial pressure gradient (Pa/m)
 
double pres
 initial pressure (Pa)
 
string chemMechFile
 name of chemical mechanism file
 
string probType
 problem type: CHANNEL, CHANNEL_SCALAR, JETMIXL_RXN, COUETTE
 
double Z_param
 Viscous penalty parameter.
 
double A_param
 Energy Distribution parameter alpha.
 
double C_param
 Eddy frequency parameter.
 
string LES_type
 NONE, THIRDS, ELAPSEDTIME, FRACDOMAIN, INTEGRALSCALE.
 
double Z_LES
 large eddy suppression (nonpositive prevents les test)
 
double diffCFL
 multiplies min diffusion timestep
 
double cvode_atol
 absolute tolerace atol for cvode
 
double cvode_rtol
 relative tolerace rtol for cvode
 
double x0virtual
 LES virtual origin.
 
bool LdoDL
 flag to do the DL energy from the DL instability
 
bool Lrad
 radiation flag
 
bool Lbuoyant
 flag to turn on bouyancy (horizontal domain)
 
bool LPeEddy
 flag to turn on potential energy for eddies (vertical domain)
 
bool LplanarExpCent0
 flag: for planar cases (C=1) set the expansion center at 0 for outflow cases (normally expand about the expansion center.
 
double g
 gravity (default -9.81)
 
string Lsolver
 EXPLICIT, SEMI-IMPLICIT, or STRANG.
 
bool Lperiodic
 periodic if true
 
bool Lspatial
 spatial formulation if true
 
bool LTMA
 true for the triplet map TMA: 3 = vol segments; false for TMB: 3 equal length segments
 
bool LplanarTau
 true for computing cylindrical/spherical tau_eddy using a planar formulation. If accepted, a cylindrical eddy is implemented
 
bool Lignition
 true if starting with unreacted mixing profile to allow ignition
 
string bcType
 OUTFLOW, PERIODIC, WALL, WALL_OUT.
 
int cCoord
 1 = planar, 2 = cylindrical, 3 = spherical
 
double xDomainCenter
 position of the center of the domain
 
double gDens
 grid density for mesher
 
double dxmin
 min grid spacing: = dxmin / domain length
 
double dxmax
 max grid spacing = dxmax / domain length
 
double Pmax
 maximum eddy acceptance probability
 
double Pav
 Average acceptance probability.
 
double dtfac
 maximum factor to increase dtSmean
 
int nDtSmeanWait
 number of eddy samples before increase dtSmean
 
int eddyMinCells
 eddy must overlap at least this many cells
 
double DAtimeFac
 time until catch-up adaption is DAtimeFac * dtCUmax
 
double tdfac
 factor between dtCUmax and dtCFL for temporal flows; DEFAULT = 1.0
 
int sLastDA
 size of the lastDA vector for timing adaptmesh after diff
 
double Lp
 Most probable eddy size frac of domainLength.
 
double Lmax
 Max eddy size frac of domainLength.
 
double Lmin
 Min eddy size frac of domainLength.
 
int modDump
 accepted eddies before output file
 
int modDisp
 frequency to display results (# eddies)
 
bool Ltecplot
 set TRUE for tecplot friendly output
 
bool LmultiPhase
 true if domain has more than one phase (particles don't count)
 
double eSurfTens
 surface tension, J/m2 for liquid phases
 
double uBClo
 Dirichlet velocity boundary condition.
 
double uBChi
 Dirichlet velocity boundary condition.
 
double vBClo
 Dirichlet velocity boundary condition.
 
double vBChi
 Dirichlet velocity boundary condition.
 
double wBClo
 Dirichlet velocity boundary condition.
 
double wBChi
 Dirichlet velocity boundary condition.
 
double sBClo
 Dirichlet scalar boundary condition.
 
double sBChi
 Dirichlet scalar boundary condition.
 
string hWallBCtype
 ADIABATIC or ISOTHERMAL.
 
double TBClo
 Required if hWallBCtype = ISOTHERMAL.
 
double TBChi
 Required if hWallBCtype = ISOTHERMAL.
 
bool Lrestart
 true to restart from file, else false
 
string rstType
 "single" or "multiple"
 
double trst
 restart time (from restart file), default is 0.0;
 
double umin_spatial
 min u for spatial flows; used when kernels pull velocity
 
string radSolveType
 OPTHIN, TWOFLUX, FVDOM.
 
string radCoefType
 PLANCKMEAN, WSGG, RCSLW.
 
int npsi
 
int ntheta
 

Private Member Functions

template<class T >
errMsg (const string param)
 

Detailed Description

Class implementing inputoutput object

Author
David O. Lignell

Definition at line 23 of file param.h.

Constructor & Destructor Documentation

◆ param()

param::param ( inputoutput * p_io)

param constructor function

Parameters
p_ioinput: set inputoutput pointer with.

Definition at line 24 of file param.cc.

◆ ~param()

param::~param ( )
inline

Definition at line 137 of file param.h.

Member Function Documentation

◆ errMsg()

template<class T >
T param::errMsg ( const string param)
inlineprivate

Definition at line 124 of file param.h.

◆ init()

void param::init ( domain * p_domn)

param initialization function

Parameters
p_domninput: set domain pointer with.

Definition at line 14 of file param.cc.

Member Data Documentation

◆ A_param

double param::A_param

Energy Distribution parameter alpha.

Definition at line 45 of file param.h.

◆ bcType

string param::bcType

OUTFLOW, PERIODIC, WALL, WALL_OUT.

Definition at line 67 of file param.h.

◆ C_param

double param::C_param

Eddy frequency parameter.

Definition at line 46 of file param.h.

◆ cCoord

int param::cCoord

1 = planar, 2 = cylindrical, 3 = spherical

Definition at line 68 of file param.h.

◆ chemMechFile

string param::chemMechFile

name of chemical mechanism file

Definition at line 41 of file param.h.

◆ cvode_atol

double param::cvode_atol

absolute tolerace atol for cvode

Definition at line 50 of file param.h.

◆ cvode_rtol

double param::cvode_rtol

relative tolerace rtol for cvode

Definition at line 51 of file param.h.

◆ DAtimeFac

double param::DAtimeFac

time until catch-up adaption is DAtimeFac * dtCUmax

Definition at line 80 of file param.h.

◆ diffCFL

double param::diffCFL

multiplies min diffusion timestep

Definition at line 49 of file param.h.

◆ domainLength

double param::domainLength

length of domain (m)

Definition at line 34 of file param.h.

◆ domn

domain* param::domn

pointer to domain object

Definition at line 29 of file param.h.

◆ dPdx

double param::dPdx

initial pressure gradient (Pa/m)

Definition at line 39 of file param.h.

◆ dtfac

double param::dtfac

maximum factor to increase dtSmean

Definition at line 77 of file param.h.

◆ dxmax

double param::dxmax

max grid spacing = dxmax / domain length

Definition at line 73 of file param.h.

◆ dxmin

double param::dxmin

min grid spacing: = dxmin / domain length

Definition at line 72 of file param.h.

◆ eddyMinCells

int param::eddyMinCells

eddy must overlap at least this many cells

Definition at line 79 of file param.h.

◆ eSurfTens

double param::eSurfTens

surface tension, J/m2 for liquid phases

Definition at line 92 of file param.h.

◆ g

double param::g

gravity (default -9.81)

Definition at line 59 of file param.h.

◆ gDens

double param::gDens

grid density for mesher

Definition at line 71 of file param.h.

◆ hWallBCtype

string param::hWallBCtype

ADIABATIC or ISOTHERMAL.

Definition at line 102 of file param.h.

◆ io

inputoutput* param::io

pointer to io object (has the input file)

Definition at line 30 of file param.h.

◆ kvisc0

double param::kvisc0

initial uniform kinematic viscosity (m^2/s)

Definition at line 37 of file param.h.

◆ Lbuoyant

bool param::Lbuoyant

flag to turn on bouyancy (horizontal domain)

Definition at line 56 of file param.h.

◆ LdoDL

bool param::LdoDL

flag to do the DL energy from the DL instability

Definition at line 54 of file param.h.

◆ LES_type

string param::LES_type

NONE, THIRDS, ELAPSEDTIME, FRACDOMAIN, INTEGRALSCALE.

Definition at line 47 of file param.h.

◆ Lignition

bool param::Lignition

true if starting with unreacted mixing profile to allow ignition

Definition at line 65 of file param.h.

◆ Lmax

double param::Lmax

Max eddy size frac of domainLength.

Definition at line 84 of file param.h.

◆ Lmin

double param::Lmin

Min eddy size frac of domainLength.

Definition at line 85 of file param.h.

◆ LmultiPhase

bool param::LmultiPhase

true if domain has more than one phase (particles don't count)

Definition at line 91 of file param.h.

◆ Lp

double param::Lp

Most probable eddy size frac of domainLength.

Definition at line 83 of file param.h.

◆ LPeEddy

bool param::LPeEddy

flag to turn on potential energy for eddies (vertical domain)

Definition at line 57 of file param.h.

◆ Lperiodic

bool param::Lperiodic

periodic if true

Definition at line 61 of file param.h.

◆ LplanarExpCent0

bool param::LplanarExpCent0

flag: for planar cases (C=1) set the expansion center at 0 for outflow cases (normally expand about the expansion center.

Definition at line 58 of file param.h.

◆ LplanarTau

bool param::LplanarTau

true for computing cylindrical/spherical tau_eddy using a planar formulation. If accepted, a cylindrical eddy is implemented

Definition at line 64 of file param.h.

◆ Lrad

bool param::Lrad

radiation flag

Definition at line 55 of file param.h.

◆ Lrestart

bool param::Lrestart

true to restart from file, else false

Definition at line 106 of file param.h.

◆ Lsolver

string param::Lsolver

EXPLICIT, SEMI-IMPLICIT, or STRANG.

Definition at line 60 of file param.h.

◆ Lspatial

bool param::Lspatial

spatial formulation if true

Definition at line 62 of file param.h.

◆ Ltecplot

bool param::Ltecplot

set TRUE for tecplot friendly output

Definition at line 89 of file param.h.

◆ LTMA

bool param::LTMA

true for the triplet map TMA: 3 = vol segments; false for TMB: 3 equal length segments

Definition at line 63 of file param.h.

◆ modDisp

int param::modDisp

frequency to display results (# eddies)

Definition at line 88 of file param.h.

◆ modDump

int param::modDump

accepted eddies before output file

Definition at line 87 of file param.h.

◆ nDtSmeanWait

int param::nDtSmeanWait

number of eddy samples before increase dtSmean

Definition at line 78 of file param.h.

◆ ngrd0

int param::ngrd0

initial grid points

Definition at line 35 of file param.h.

◆ npsi

int param::npsi

Definition at line 116 of file param.h.

◆ ntheta

int param::ntheta

Definition at line 117 of file param.h.

◆ Pav

double param::Pav

Average acceptance probability.

Definition at line 76 of file param.h.

◆ Pmax

double param::Pmax

maximum eddy acceptance probability

Definition at line 75 of file param.h.

◆ pres

double param::pres

initial pressure (Pa)

Definition at line 40 of file param.h.

◆ probType

string param::probType

problem type: CHANNEL, CHANNEL_SCALAR, JETMIXL_RXN, COUETTE

Definition at line 42 of file param.h.

◆ radCoefType

string param::radCoefType

PLANCKMEAN, WSGG, RCSLW.

Definition at line 115 of file param.h.

◆ radSolveType

string param::radSolveType

OPTHIN, TWOFLUX, FVDOM.

Definition at line 114 of file param.h.

◆ rho0

double param::rho0

initial uniform density (kg/m^3)

Definition at line 36 of file param.h.

◆ rstType

string param::rstType

"single" or "multiple"

Definition at line 107 of file param.h.

◆ sBChi

double param::sBChi

Dirichlet scalar boundary condition.

Definition at line 101 of file param.h.

◆ sBClo

double param::sBClo

Dirichlet scalar boundary condition.

Definition at line 100 of file param.h.

◆ sdiff0

double param::sdiff0

initial uniform scalar diffusivity (m^2/s)

Definition at line 38 of file param.h.

◆ seed

int param::seed

random number generator seed (negative to randomize it)

Definition at line 32 of file param.h.

◆ sLastDA

int param::sLastDA

size of the lastDA vector for timing adaptmesh after diff

Definition at line 82 of file param.h.

◆ TBChi

double param::TBChi

Required if hWallBCtype = ISOTHERMAL.

Definition at line 104 of file param.h.

◆ TBClo

double param::TBClo

Required if hWallBCtype = ISOTHERMAL.

Definition at line 103 of file param.h.

◆ tdfac

double param::tdfac

factor between dtCUmax and dtCFL for temporal flows; DEFAULT = 1.0

Definition at line 81 of file param.h.

◆ tEnd

double param::tEnd

ending time of realization

Definition at line 33 of file param.h.

◆ trst

double param::trst

restart time (from restart file), default is 0.0;

Definition at line 108 of file param.h.

◆ uBChi

double param::uBChi

Dirichlet velocity boundary condition.

Definition at line 95 of file param.h.

◆ uBClo

double param::uBClo

Dirichlet velocity boundary condition.

Definition at line 94 of file param.h.

◆ umin_spatial

double param::umin_spatial

min u for spatial flows; used when kernels pull velocity

Definition at line 110 of file param.h.

◆ vBChi

double param::vBChi

Dirichlet velocity boundary condition.

Definition at line 97 of file param.h.

◆ vBClo

double param::vBClo

Dirichlet velocity boundary condition.

Definition at line 96 of file param.h.

◆ wBChi

double param::wBChi

Dirichlet velocity boundary condition.

Definition at line 99 of file param.h.

◆ wBClo

double param::wBClo

Dirichlet velocity boundary condition.

Definition at line 98 of file param.h.

◆ x0virtual

double param::x0virtual

LES virtual origin.

Definition at line 52 of file param.h.

◆ xDomainCenter

double param::xDomainCenter

position of the center of the domain

Definition at line 69 of file param.h.

◆ Z_LES

double param::Z_LES

large eddy suppression (nonpositive prevents les test)

Definition at line 48 of file param.h.

◆ Z_param

double param::Z_param

Viscous penalty parameter.

Definition at line 44 of file param.h.


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