15 public molar_balance,kinmodel,odesystem,dim_var
21 subroutine odesystem (neq, t, y, ydot)
22 use phys_prop
, only:rderiv
23 integer,
intent(in) :: neq
24 real(dp),
intent(in) :: t
25 real(dp),
intent(in) :: y(neq)
26 real(dp),
intent(out) :: ydot(neq)
28 real(dp) :: z,zw,ze,zww,zee,lamw,lame,cw,ce,cww,cee,c,dcw,dce,dil,bll
48 if (y(
xoheq)>0.5_dp .and. y(
xoheq)<0.87_dp)
then 50 (-2.027_dp*y(
xoheq)+2.013_dp)
52 if (y(
xoheq)>0.87_dp)
then 146 ce=cee*lame+c*(1-lame)
154 lamw=(zw-zww)/(z-zww)
157 cw=c*lamw+cww*(1-lamw)
167 lamw=(zw-zww)/(z-zww)
172 cw=c*lamw+cww*(1-lamw)
173 ce=cee*lame+c*(1-lame)
180 9*
d(j)*((ze+
radius**3)**(4._dp/3)*dce -&
181 (zw+
radius**3)**(4._dp/3)*dcw)/
dz(i)
197 end subroutine odesystem
205 subroutine molar_balance(y)
206 real(dp),
intent(in) :: y(:)
229 end subroutine molar_balance
238 subroutine dim_var(t,y)
239 use phys_prop
, only:physical_properties,rb
240 real(dp),
intent(in) :: t
241 real(dp),
intent(in) :: y(:)
273 end subroutine dim_var
282 subroutine kinmodel(y)
283 real(dp),
intent(in) :: y(:)
302 end subroutine kinmodel
real(dp) porosity
foam porosity
real(dp), dimension(:), allocatable dhv
evaporation heat of blowing agent (for each gas)
integer teq
temperature equation (index)
real(dp) st
shell thickness
integer ngas
number of dissolved gases
real(dp) rhop
polymer density
real(dp) temp
temperature (K)
real(dp) aw
frequential factor of blowing reaction
integer req
radius equation (index)
real(dp) pair0
initial partial pressure of air
real(dp) radius
bubble radius (m)
real(dp), dimension(:), allocatable kh
Henry constants (for each dissolved gas)
real(dp) aoh
frequential factor of gelling reaction
real(dp), dimension(:), allocatable mb2
moles in bubble
real(dp) w0
initial concentration of water (can be zero)
logical dilution
use dilution effect for kinetics (t/f)
real(dp), dimension(:), allocatable dz
spatial discretization
real(dp), dimension(:), allocatable pressure
partial pressure(Pa)
real(dp), dimension(:), allocatable kinsource
kinetic source term
real(dp) s0
initial shell thickness
real(dp) laplace_pres
Laplace pressure (Pa)
logical inertial_term
include inertial term in equations (t/f)
real(dp) sigma
interfacial tension
real(dp) rhobl
density of liquid physical blowing agent
real(dp), dimension(:), allocatable mbl
blowing agent molar mass (for each dissolved gas)
real(dp) eoh
activation energy of gelling reaction
real(dp) eqconc
equivalent concentration for first gas
real(dp) conv
conversion of polyol
character(len=99) geometry
geometry 3D=spherical, 2D=cylindrical
integer, dimension(:), allocatable kineq
kinetics state variable equations (indexes)
real(dp) nco0
initial concentration of isocyanate
real(dp), dimension(:), allocatable mb3
total moles
integer lpeq
last pressure equation (index)
real(dp) rhofoam
foam density
real(dp) temp0
initial temperature
integer co2_pos
carbon dioxide position
real(dp), dimension(:), allocatable d
diffusion coefficients (for each dissolved gas)
real(dp), dimension(:), allocatable avconc
average concentration in reaction mixture
real(dp), dimension(:), allocatable mb
moles in polymer
real(dp) pamb
ambient pressure (in the liquid)
integer kin_model
reaction kinetics model.
real(dp), dimension(:), allocatable wblpol
weight fraction of blowing agents in reaction mixture
real(dp) cp
heat capacity of the reaction mixture
integer fceq
first concentration equation (index)
integer xoheq
polyol conversion equation (index)
real(dp) r0
initial radius
integer fpeq
first pressure equation (index)
real(dp) dhw
blowing reaction enthalpy
namespace with global variables
real(dp) pair
partial pressure of air
integer p
number of internal nodes
real(dp) dhoh
gelling reaction enthalpy
real(dp) oh0
initial concentration of polyol (don't set to zero)
real(dp) ew
activation energy of blowing reaction
integer xweq
water conversion equation (index)