44 import SurfaceTension, polymerViscosity
46 from modena
import ForwardMappingModel, BackwardMappingModel, SurrogateModel, CFunction, ModenaFireTask
48 from fireworks.user_objects.firetasks.script_task
import FireTaskBase, ScriptTask
49 from fireworks
import Firework, Workflow, FWAction
50 from fireworks.utilities.fw_utilities
import explicit_serialize
51 from jinja2
import Template
61 const modena_model_t* model, 66 {% block variables %}{% endblock %} 68 const double A_mu = 0.0387; // could be loaded from some library for consistence 69 const double E_mu = 10000; 70 const double R_rh = 8.314; 74 f_t = A_mu * exp(E_mu / R_rh / T ); 77 // printf("apparent viscosity %f", mu_ap); 82 'T': {
'min': 0,
'max': 9e99 },
83 'shear': {
'min': 0,
'max': 9e99 },
84 'X': {
'min': 0,
'max': 1 },
85 'm0' : {
'min': 0,
'max' : 9e99},
86 'm1' : {
'min': 0,
'max' : 9e99},
87 'mu' : {
'min': 0,
'max' : 9e99},
88 'ST' : {
'min': 0,
'max' : 9e99},
89 'mu_car' : {
'min': 0,
'max' : 9e99},
92 'mu_ap': {
'min': 0,
'max': 9e99,
'argPos': 0 },
95 'Rgas' : {
'min': 8.31,
'max': 8.32,
'argPos': 0},
100 m = ForwardMappingModel(
101 _id=
'Rheology_Arrhenius',
103 substituteModels=[ Rheology.m ],
104 parameters=[ 8.314 ],