Mixture Solver

Mixture Solver is pretty cool.

class Solvers.Mixture.Liquid(mix)

Bases: Solvers.AbstractPhase

LIQUID Summary of this class goes here Detailed explanation goes here

Constructor Summary
Liquid(mix)

LIQUID Construct an instance of this class Detailed explanation goes here

Method Summary
TIME(liquid)

TIME() Time series [s] Detailed explanation goes here

Z(liquid, zIdx)

Z() Axial nodes [m] Detailed explanation goes here

X(liquid, zIdx)

X() Mass fraction [-]

VF(liquid, zIdx)

VF() Void fraction [-]

W(liquid, zIdx)

W() Mass flow rate [kg/s]

U(liquid, zIdx)

U() Velocity [m/s] NOTE: need to be verified

H(liquid, zIdx)

H() Enthalpy [J/kg]

MFLUX(liquid, zIdx)

MFLUX() Mass flux [kg/m^2-s]

RE(liquid, zIdx)

RE() Reynolds number [-]

class Solvers.Mixture.Vapor(mix)

Bases: Solvers.AbstractPhase

VAPOR Summary of this class goes here Detailed explanation goes here

Constructor Summary
Vapor(mix)

VAPOR Construct an instance of this class Detailed explanation goes here

Method Summary
TIME(vapor)

TIME() Time series [s] Detailed explanation goes here

Z(vapor, zIdx)

Z() Axial nodes [m] Detailed explanation goes here

X(vapor, zIdx)

X() Mass fraction [-]

VF(vapor, zIdx)

VF() Void fraction [-]

W(vapor, zIdx)

W() Mass flow rate [kg/s]

U(vapor, zIdx)

U() Velocity [m/s] NOTE: need to be verified

H(vapor, zIdx)

H() Enthalpy [J/kg]

MFLUX(vapor, zIdx)

MFLUX() Mass flux [kg/m^2-s]

RE(vapor, zIdx)

RE() Reynolds number [-]

class Solvers.Mixture.Mixture(inputSet, fluid)

Bases: Solvers.AbstractField

MIXTURE Summary of this class goes here Detailed explanation goes here

Constructor Summary
Mixture(inputSet, fluid)

MIXTURE Creates a Mixture(), mix Detailed explanation goes here

Property Summary
NZ = 0

Solver properties

NTIME = 0

[-] Number of time steps

TIME = 0

[s] Time series

DT = 0

[s] Time step size

TIDX = 1

[-] Time step index

Z = 1.

[m] Elevation

HFLUX = 1.

[W/m^2] Wall heat flux

W = 1.

Flow properties

P = 7E6

[Pa] Pressure

H = 1E6

[J/kg] Enthalpy

DP

[-] Detailed pressure drops

ITR

Iteration properties

liquid

Phases

DZ = 0

[m] Axial step size

Method Summary
MFLUX(mix, zIdx)

MFLUX() Mass flux [kg/m^2-s]

XEQ(mix, zIdx)

XEQ() Equilibrium quality [-] This function only retrieves the mix.xeq values pre-calculated when mix.H is set. This is to eliminate the redundant calculation as a result of requent function calls. The values are calculated via mix.XEQ_CALC()

X(mix, zIdx)

X() Vapor quality [-] This function only retrieves the mix.x values pre-calculated when mix.H is set. This is to eliminate the redundant calculation as a result of requent function calls. The values are calculated via mix.X_CALC()

VF(mix, zIdx)

VF() Void fraction [-]

RHO(mix, zIdx)

RHO() Density [kg/m^3]

MU(mix, zIdx)

MU() Dynamic viscosity [Pa-s]

U(mix, zIdx)

U() Velocity [m/s]

JL(mix, zIdx)

JL() Superfacial liquid velocity [m/s]

JG(mix, zIdx)

JG() Superfacial vapor velocity [m/s]

RE(mix, zIdx)

RE() Reynolds number [-]

REL(mix, zIdx)

REL() Liquid-equivalent Reynolds number [-]

FW(mix, zIdx)

FW() Wall friction factor [-]

TAUW(mix, zIdx)

TAUW() wall shear stress [Pa]

KLOSS(mix, zIdx)

KLOSS() Local pressure loss coefficient [-] TODO: NEED TO BE VERIFIED

DPGRAV(mix, zIdx)

DPK Gravitational pressure loss [Pa]

DPWALL(mix, zIdx)

DPWALL() Wall friction pressure drop [Pa]

DPACCZ(mix, zIdx)

DPACCZ() Spatial acceleration pressure drop [Pa]

DPACCT(mix, Uold, zIdx)

DPACCT() Temporal acceleration pressure drop [Pa]

DPK(mix, zIdx)

DPK() Local pressure loss [Pa]

DPTOT(mix, Uold, zIdx)

DPTOT() Total pressure loss [Pa]

DPPARTS(mix, Uold, zIdx)

DPPARTS() Pressure loss components[Pa]

T(mix, zIdx)

T() Temperature [K]

OAFIDX(mix)

OAFIDX() Onset of annular flow node

OAFZ(mix)

OAFZ() Onset of annular flow elevation

OAFWL(mix)

OAFWL() Liquid mass flow rate at onset of annular flow

AFFNC(mix, zIdx)

AFFNC() Annular flow function

AFDISTR(mix, param1, param2, zIdx)

AFDISTR() Annular flow distribution function