8 module physicalproperties
13 public polymerconductivity,gasconductivity,strutcontent
17 subroutine polymerconductivity(ksol,temp)
18 real(dp),
intent(out) :: ksol
19 real(dp),
intent(in) :: temp
21 integer(c_size_t) :: ksolTemppos
25 type(c_ptr) :: ksolModena = c_null_ptr
26 type(c_ptr) :: ksolInputs = c_null_ptr
27 type(c_ptr) :: ksolOutputs = c_null_ptr
29 c_char_
"polymer_thermal_conductivity"//c_null_char)
35 ksoltemppos = modena_model_inputs_argpos(&
36 ksolmodena, c_char_
"T"//c_null_char)
37 call modena_model_argpos_check(ksolmodena)
47 end subroutine polymerconductivity
53 subroutine gasconductivity(kgas,temp,xO2,xN2,xCO2,xCyP)
54 real(dp),
intent(out) :: kgas
55 real(dp),
intent(in) :: temp
56 real(dp),
intent(in) :: xO2
57 real(dp),
intent(in) :: xN2
58 real(dp),
intent(in) :: xCO2
59 real(dp),
intent(in) :: xCyP
61 integer(c_size_t) :: kgasTemppos
62 integer(c_size_t) :: kgasXCO2pos
63 integer(c_size_t) :: kgasXCyPpos
64 integer(c_size_t) :: kgasXO2pos
65 integer(c_size_t) :: kgasXN2pos
69 type(c_ptr) :: kgasModena = c_null_ptr
70 type(c_ptr) :: kgasInputs = c_null_ptr
71 type(c_ptr) :: kgasOutputs = c_null_ptr
73 c_char_
"gasMixtureConductivity"//c_null_char)
79 kgastemppos = modena_model_inputs_argpos(&
80 kgasmodena, c_char_
"T"//c_null_char)
81 kgasxco2pos = modena_model_inputs_argpos(&
82 kgasmodena, c_char_
"x[A=CO2]"//c_null_char)
83 kgasxcyppos = modena_model_inputs_argpos(&
84 kgasmodena, c_char_
"x[A=CyP]"//c_null_char)
85 kgasxo2pos = modena_model_inputs_argpos(&
86 kgasmodena, c_char_
"x[A=O2]"//c_null_char)
87 kgasxn2pos = modena_model_inputs_argpos(&
88 kgasmodena, c_char_
"x[A=N2]"//c_null_char)
89 call modena_model_argpos_check(kgasmodena)
103 end subroutine gasconductivity
109 subroutine strutcontent(strut_content,foam_density)
110 real(dp),
intent(out) :: strut_content
111 real(dp),
intent(in) :: foam_density
113 integer(c_size_t) :: fspos
114 integer(c_size_t) :: rhopos
116 integer(c_int) :: ret
118 type(c_ptr) :: fsModena = c_null_ptr
119 type(c_ptr) :: fsInputs = c_null_ptr
120 type(c_ptr) :: fsOutputs = c_null_ptr
127 rhopos = modena_model_inputs_argpos(&
128 fsmodena, c_char_
"rho"//c_null_char)
129 call modena_model_argpos_check(fsmodena)
139 end subroutine strutcontent
141 end module physicalproperties