47 from modena
import ForwardMappingModel, BackwardMappingModel, SurrogateModel, CFunction
49 from fireworks.user_objects.firetasks.script_task
import FireTaskBase, ScriptTask
50 from fireworks
import Firework, Workflow, FWAction
51 from fireworks.utilities.fw_utilities
import explicit_serialize
52 from blessings
import Terminal
53 from jinja2
import Template
61 f_polymer_thermal_conductivity = CFunction(
66 void thermal_conductivity 68 const modena_model_t* model, 73 {% block variables %}{% endblock %} 75 const double a = parameters[0]; 76 const double b = parameters[1]; 83 'T': {
'min': 273,
'max': 550},
86 'polymer_thermal_conductivity': {
87 'min': 0,
'max': +9e99,
'argPos': 0
91 'param0': {
'min': -9e99,
'max': +9e99,
'argPos': 0},
92 'param1': {
'min': -9e99,
'max': +9e99,
'argPos': 1},
99 m_polymer_thermal_conductivity = ForwardMappingModel(
100 _id=
'polymer_thermal_conductivity',
101 surrogateFunction=f_polymer_thermal_conductivity,
103 parameters=[0.198e-3, 151.08e-3],
105 'T': {
'min': 273,
'max': 450},
108 'polymer_thermal_conductivity': {
'min': 0,
'max': +9e99},