29 void ddtpartialPressure(
const state_type &
y ,
const double t ,
const double dt ,
double *
dpdt ,
double *
pOld,
const double p_1,
const double p_2,
const double R);
30 bool isNaN(
double var);
36 void ddtpartialPressure(
const state_type &
y ,
const double t ,
const double dt ,
double *
dpdt ,
double *
pOld,
const double p_1,
const double p_2,
const double R)
39 dpdt[0] = (p_1 - pOld[0])/(dt);
43 dpdt[1] = (p_2 - pOld[1])/(dt);
46 bool isNaN(
double var)
48 volatile double d = var;
54 R = pow((3.0*m1/(4.0*M_PI*m0)), 1.0/3.0);
63 return (pow((6.0*v/M_PI),1.0/3)/2.0);
real(dp), dimension(:), allocatable y
state variables
double partialPressureCO2(const state_type &y)
partial pressure of CO2
double surfaceTension
required for the computation of partial pressure
double M_CO2
Molecular mass of carbon dioxide, kg/kmol.
bool isNaN(double var)
checks if the passed argument is not a number
double init_size
initial mean bubble diameter, m
double Pr
initial/final pressure of the mixture, Pa
double dpdt[2]
This is used to compute the partial pressures.
double bubbleRadius(const double m0, const double m1)
radius of bubbles based on the moments
double air_g
air weight fraction
real(dp), dimension(:), allocatable d
diffusion coefficients (for each dissolved gas)
double nodeRadius(const double &v)
radius of bubbles at each node
double M_B
Molecular mass of blowing agent, kg/kmol.
double partialPressureBA(const state_type &y)
partial pressure of the physical blowing agent
double M_air
Molecular weight of air, kg/kmol.
double pOld[2]
This is to hold the old pressure values during the partial pressure calculations. ...
void ddtpartialPressure(const state_type &y, const double t, const double dt, double *dpdt, double *pOld, const double p_1, const double p_2, const double R)
time derivative of partial pressure