48 from modena
import CFunction, IndexSet, \
49 ForwardMappingModel, BackwardMappingModel, SurrogateModel
51 from fireworks.user_objects.firetasks.script_task
import FireTaskBase, ScriptTask
52 from fireworks
import Firework, Workflow, FWAction
53 from fireworks.utilities.fw_utilities
import explicit_serialize
54 from blessings
import Terminal
55 from jinja2
import Template
66 void densityreactionmixture 68 const modena_model_t* model, 73 {% block variables %}{% endblock %} 75 const double a_L0 = parameters[0]; 76 const double b_L0 = parameters[1]; 77 const double a_P0 = parameters[2]; 78 const double b_P0 = parameters[3]; 80 outputs[0] = ((a_L0*T + b_L0) + ((a_P0*T + b_P0) - (a_L0*T + b_L0))*XOH); 85 'T': {
'min': 273,
'max': 550},
86 'XOH': {
'min': 0,
'max': 1},
89 'density_polymer': {
'min': 0,
'max': 8000,
'argPos': 0 },
92 'param0': {
'min': -9e99,
'max': +9e99,
'argPos': 0 },
93 'param1': {
'min': 0.0,
'max': +9e99,
'argPos': 1 },
94 'param2': {
'min': -9e99,
'max': +9e99,
'argPos': 2 },
95 'param3': {
'min': 0.0,
'max': +9e99,
'argPos': 3 },
101 m = ForwardMappingModel(
102 _id=
'density_reaction_mixture',
104 substituteModels= [ ],
105 parameters=[-0.0006, 1287.8, -0.000048, 992.8],