110 double arrhenius (
double &,
double &,
double &);
111 double BAdilution(
double &,
double &,
double &);
114 double &,
double &,
double &,
double &,
double &,
double &,
double &
121 double &wBA_g,
double &p,
double &R
126 double &wBA_g_val,
double &wCO2_g_val,
127 double &prsr,
double &bubble_radius
129 double wCO2Max (
double &
M_CO2,
double &M_liq,
double &pCO2,
double &henryCoeff);
130 double xBL (
double &T,
double &dxdT);
132 double LmaxR11(
double &tmptr);
135 double dTdtSecondOrder(
double &Tc,
double &To,
double &Too,
double &timeStep);
142 const double a = 0.0064, h = 0.0551, T0 = 298.0, ww = 17.8;
146 double tempDummy = Foam::pow((tmptr-T0),2.0);
147 lMax = (a + h*Foam::exp((-tempDummy/(2.0*ww*ww))));
159 const double h = 0.0551, T0 = 298.0, ww = 17.8;
160 double tempDummy = Foam::pow((tmptr-T0),2.0);
161 return ((-h*(tmptr-T0)*Foam::exp((-tempDummy/(2.0*ww*ww))))/(ww*ww));
164 double arrhenius (
double& AOH,
double& EOH,
double& tempt)
166 const double R = 8.3145;
167 return (AOH*Foam::exp(-EOH/(R*tempt)));
172 return (1/(1+L_l*(rhoPoly/rhoBL)));
177 double& AW,
double& EW,
double& tempi,
double& Lliq,
182 return (AW*(Foam::exp(-EW/(R*tempi)))*(1/(1+Lliq*(rhoPoly/rhoBL))));
195 return (a + b*T + c*T*T + d*T*T*T);
205 if (m0 != 0.0 && m1 != 0.0)
208 R = Foam::pow((3.0*m1/(4.0*M_PI*m0)), 1.0/3.0);
220 double &wBA_g,
double &p,
double &R
232 (wCO2_g/
M_CO2)/(wBA_g/M_B + wCO2_g/M_CO2)
240 double &M_B,
double &M_CO2,
double &surfaceTension,
double &wBA_g,
241 double &wCO2_g,
double &p,
double &R
254 (wBA_g/
M_B)/(wBA_g/M_B + wCO2_g/M_CO2)
260 double wCO2Max (
double &M_CO2,
double &M_liq,
double &pCO2,
double &henryCoeff)
262 if ((henryCoeff - pCO2 ) > 0.0)
264 return ((M_CO2/M_liq)*(pCO2/(henryCoeff - pCO2)));
268 Info<<
"\nWarning! Invalid wCO2Max value!" << endl;
269 Info<<
"'wCO2Max' is replaced by a constant." << endl;
275 double xBL (
double &T,
double &dxdT)
278 xBL_value = dxdT*(T - 300.0) + 0.5;
284 else if (xBL_value > 0.5)
306 double LmaxR11(
double &tmptr)
309 const double a = 1e-7, h = 4.293, T0 = 203.4, ww = 40.02;
313 double tempDummy = Foam::pow((tmptr-T0),2.0);
314 lMax = (a + h*Foam::exp((-tempDummy/(2.0*ww*ww))));
325 return ((xBL0-0.5)/dxdT + 300.0);
330 return (mag(Tc - To)/(max(timeStep,ROOTVSMALL)));
334 return (mag((3.0*Tc - 4*To + Too))/(max((2.0*timeStep),ROOTVSMALL)));
339 return (2.56008e-3*std::pow(T,0.5)/(1+207.009/T))/1010/1.2;
343 return (Foam::pow(3.0*v/(4.0*M_PI), 1/3.0));
double partialPressureBA(double &M_B, double &M_CO2, double &surfaceTension, double &wBA_g_val, double &wCO2_g_val, double &prsr, double &bubble_radius)
partial pressure of blowing agent
double dTdtSecondOrder(double &Tc, double &To, double &Too, double &timeStep)
second order accurate dTdt
double henryCoefficient(double &T)
Henry coefficient for CO2.
double partialPressureCO2(double &M_CO2, double &M_B, double &surfaceTension, double &wCO2_g, double &wBA_g, double &p, double &R)
partial pressure of CO2
double surfaceTension
required for the computation of partial pressure
double M_CO2
Molecular mass of carbon dioxide, kg/kmol.
double M_NCO
Molecular weight of NCO, kg/kmol.
double ddT_LliqMax(double &)
derivative of LliqMax with respect to temperature
double creamTemperature(double &xBL0, double &dxdT)
criticall temperature that foaming process starts
double bubbleRadius(const double m0, const double m1)
radius of bubbles based on the moments
double LliqMax(double &)
maximum allowable amount of liquid blowing agent (n-pentane) in liquid
real(dp), dimension(:), allocatable d
diffusion coefficients (for each dissolved gas)
double wBL_D(double &xBL, double &M_B, double &M_NCO, double &L0)
weight fraction of maximum allowable blowing agent (R-11) in liquid
double rhoPoly
density of the liquid polymer, kg/m3
double thermalDiffusivityGas(double &T)
thermal diffusivity of gas as a function of temperature
double arrhenius(double &, double &, double &)
Arrhenius function.
double nodeRadius(const double &v)
radius of bubbles at each node
double BAdilution(double &, double &, double &)
dilution term for the blowing agent (n-pentane)
double rhoBL
density of the blowing agent, kg/m3
double M_B
Molecular mass of blowing agent, kg/kmol.
double xBL(double &T, double &dxdT)
mole fraction of blowing agent (R-11) in liquid polymer
double QKinW(double &AW, double &EW, double &tempi, double &Lliq, double &rhoPoly, double &rhoBL)
arrhenius term times by dilution term
double L0
Initial weight fraction of blowing agent in the liquid, -.
double wCO2Max(double &M_CO2, double &M_liq, double &pCO2, double &henryCoeff)
dissolved amount of CO2 in liquid
double dTdtFirstOrder(double &Tc, double &To, double &timeStep)
first order accurate dTdt