45 from fireworks.utilities.fw_utilities
import explicit_serialize
46 from jinja2
import Template
51 name=
'diffusivity_pol_species',
52 names= [
'CO2',
'CyP',
'N2',
'O2' ]
57 f_diffusivity = CFunction(
64 const modena_model_t* model, 69 {% block variables %}{% endblock %} 71 const double a = parameters[0]; 72 const double b = parameters[1]; 74 outputs[0] = a*exp(-(b*(1/T))); 79 'T': {
'min': 273,
'max': 550},
82 'diffusivity': {
'min': 0,
'max': +9e99,
'argPos': 0},
85 'param0[A]': {
'min': 0.0,
'max': +9e99,
'argPos': 0},
86 'param1[A]': {
'min': 0.0,
'max': +9e99,
'argPos': 1},
95 m_CO2_diffusivity = ForwardMappingModel(
96 _id=
'diffusivityPol[A=CO2]',
97 surrogateFunction=f_diffusivity,
99 parameters=[0.00123, 6156],
104 m_CyP_diffusivity = ForwardMappingModel(
105 _id=
'diffusivityPol[A=CyP]',
106 surrogateFunction=f_diffusivity,
108 parameters=[1.7e-7, 4236],
113 m_N2_diffusivity = ForwardMappingModel(
114 _id=
'diffusivityPol[A=N2]',
115 surrogateFunction=f_diffusivity,
117 parameters=[0.003235, 6927],
122 m_O2_diffusivity = ForwardMappingModel(
123 _id=
'diffusivityPol[A=O2]',
124 surrogateFunction=f_diffusivity,
126 parameters=[0.00085, 6411],