MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
modenaCalls.H
Go to the documentation of this file.
1 
12 #ifndef MODENACALLS_H
13 #define MODENACALLS_H
14 
16 for(label pid=0; pid < Pstream::nProcs();++pid) {
17  if(Pstream::myProcNo()==pid) {
18  Pout << "Allocating modena models for process " << Pstream::myProcNo() << "..." << endl;
19  kinetics = modena_model_new("RF-1-public");
20  Pout << " finished. " << endl;
21  }
22 
23  label tmp = Pstream::myProcNo();
24  reduce(tmp,sumOp<label>());
25 }
28 bblgr1 = modena_model_new("bubbleGrowth1");
30 if (modena_error_occurred())
31 {
32  return modena_error();
33 }
36 bblgr2 = modena_model_new("bubbleGrowth2");
38 if (modena_error_occurred())
39 {
40  return modena_error();
41 }
44 kinetics = modena_model_new("RF-1-public");
46 if (modena_error_occurred())
47 {
48  return modena_error();
49 }
52 density_reaction_mixturemodel = modena_model_new("density_reaction_mixture");
54 if (modena_error_occurred())
55 {
56  return modena_error();
57 }
60 rheologymodel = modena_model_new("Rheology_Arrhenius");
62 if (modena_error_occurred())
63 {
64  return modena_error();
65 }
69 
71 if (modena_error_occurred())
72 {
73  return modena_error();
74 }
77 thermalConductivitymodel = modena_model_new("foamConductivity");
79 if (modena_error_occurred())
80 {
81  return modena_error();
82 }
84 inputs_bblgr1 = modena_inputs_new(bblgr1);
85 outputs_bblgr1 = modena_outputs_new(bblgr1);
86 
87 inputs_bblgr2 = modena_inputs_new(bblgr2);
88 outputs_bblgr2 = modena_outputs_new(bblgr2);
89 
90 inputs_kinetics = modena_inputs_new(kinetics);
91 outputs_kinetics = modena_outputs_new(kinetics);
92 
95 
96 inputs_rheo = modena_inputs_new (rheologymodel);
97 outputs_rheo = modena_outputs_new (rheologymodel);
98 
99 inputs_strutContent = modena_inputs_new (strutContentmodel);
100 outputs_strutContent = modena_outputs_new (strutContentmodel);
101 
146 
148 
149 // strut contents argPos
153 
154 // thermal conductivity argPos
164 
170 // modena_model_argPos_check(rheologymodel);
171 #endif
172 ///@endcond
size_t source_CE_Ireac2_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:160
size_t source_CE_PBA_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:142
size_t source_CE_A1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:124
size_t strut_content_Pos
memory allocation for the strut content as the input of thermal conductivity surrogate model ...
Definition: modenaData.H:206
size_t m0_rheopos
memory allocation for the moment of order zero as the input of rheology surrogate model ...
Definition: modenaData.H:220
size_t CE_I2_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:79
size_t source_CE_Breac_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:145
outputs_rheo
set the output for the rheology surrogate model
Definition: modenaCalls.H:97
bblgr2
instantiate the second bubble growth surrogate model
Definition: modenaCalls.H:36
size_t source_Bulk_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:163
size_t modena_model_inputs_argPos(const modena_model_t *self, const char *name)
Function determining position of an argument in the input vector.
Definition: model.c:366
inputs_kinetics
set the inputs for the kinetics surrogate model
Definition: modenaCalls.H:90
kinetics
instantiate the RF-1 kinetics surrogate model
Definition: modenaCalls.H:44
size_t X_CO2_Pos
memory allocation for the partial pressure of CO2 as the input of thermal conductivity surrogate mode...
Definition: modenaData.H:194
size_t source_CE_Areac0_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:148
inputs_bblgr1
set the inputs for the first bubble growth surrogate model
Definition: modenaCalls.H:84
size_t temp_Pos
memory allocation for the temperature as the input of thermal conductivity surrogate model ...
Definition: modenaData.H:191
inputs_strutContent
set the inputs for strut content surrogate model
Definition: modenaCalls.H:99
size_t porosity_Pos
memory allocation for the gas volume fraction as the input of thermal conductivity surrogate model ...
Definition: modenaData.H:182
size_t CE_Ireac0_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:94
size_t CE_PBA_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:82
size_t CE_Breac_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:85
strutContentmodel
instantiate the strut content surrogate model
Definition: modenaCalls.H:68
size_t X_N2_Pos
memory allocation for the partial pressure of N2 as the input of thermal conductivity surrogate model...
Definition: modenaData.H:203
outputs_bblgr2
set the output for the second bubble growth surrogate model
Definition: modenaCalls.H:88
size_t R_1_mass_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:112
size_t cell_size_Pos
memory allocation for the bubble size as the input of thermal conductivity surrogate model ...
Definition: modenaData.H:185
rheologymodel
instantiate the Arrhenius rheology model
Definition: modenaCalls.H:60
size_t source_CE_I1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:136
modena_model_t * thermalConductivitymodel
pointer to the surrogate model for thermal conductivity
Definition: modenaData.H:22
size_t Catalyst_1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:58
size_t source_R_1_temp_RF1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:172
size_t source_CE_B_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:127
modena_model_t * modena_model_new(const char *modelId)
Function fetching a surrogate model from MongoDB.
Definition: model.c:281
size_t CE_Areac1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:91
inputs_den
set the inputs for the surrogate model for density of reacting mixture
Definition: modenaCalls.H:93
size_t X_Cyp_Pos
memory allocation for the partial pressure of cyclo-pentane as the input of thermal conductivity surr...
Definition: modenaData.H:197
inputs_thermalConductivity
set the inputs for thermal conductivity surrogate model
Definition: modenaCalls.H:102
size_t CE_I1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:76
size_t temp_rheopos
memory allocation for the temperature as the input of rheology surrogate model
Definition: modenaData.H:211
size_t source_CE_Ireac1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:157
size_t CE_Ireac2_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:100
outputs_thermalConductivity
Definition: modenaCalls.H:103
size_t source_CE_A0_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:121
size_t CE_Areac0_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:88
size_t source_CE_I2_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:139
size_t m1_rheopos
memory allocation for the moment of order one as the input of rheology surrogate model ...
Definition: modenaData.H:223
size_t R_1_vol_RF1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:115
size_t source_CE_I0_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:133
size_t CE_I0_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:73
size_t source_R_1_mass_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:169
size_t source_CE_Ireac0_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:154
size_t rho_foam_Pos
memory allocation for the foam density as the input of thermal conductivity surrogate model ...
Definition: modenaData.H:179
size_t conv_rheopos
memory allocation for the conversion as the input of rheology surrogate model
Definition: modenaData.H:217
outputs_kinetics
set the outputs for the kinetics surrogate model
Definition: modenaCalls.H:91
bblgr1
instantiate the first bubble growth surrogate model
Definition: modenaCalls.H:28
size_t source_R_1_vol_RF1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:175
size_t source_Catalyst_1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:118
inputs_bblgr2
set the inputs for the second bubble growth surrogate model
Definition: modenaCalls.H:87
size_t R_1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:106
size_t modena_model_outputs_argPos(const modena_model_t *self, const char *name)
Function determining position of a result in the output vector.
Definition: model.c:392
density_reaction_mixturemodel
instantiate the surrogate model the density of polymer mixture
Definition: modenaCalls.H:52
outputs_bblgr1
set the output for the first bubble growth surrogate model
Definition: modenaCalls.H:85
size_t Bulk_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:103
size_t source_CE_Areac1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:151
size_t kineticTime_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:55
size_t CE_A1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:64
size_t CE_B_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:67
size_t strut_c_Pos
memory allocation for the strut content as the input of thermal conductivity surrogate model ...
Definition: modenaData.H:188
outputs_strutContent
set the output for the strut content surrogate model
Definition: modenaCalls.H:100
size_t shear_rheopos
memory allocation for the shear rate as the input of rheology surrogate model
Definition: modenaData.H:214
size_t source_CE_B2_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:130
size_t CE_B2_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:70
size_t X_O2_Pos
memory allocation for the partial pressure of O2 as the input of thermal conductivity surrogate model...
Definition: modenaData.H:200
inputs_rheo
set the inputs for the rheology surrogate model
Definition: modenaCalls.H:96
void modena_model_argPos_check(const modena_model_t *self)
Function checking that the user has queried all input positions.
Definition: model.c:408
size_t CE_Ireac1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:97
outputs_den
set the output for the surrogate model for the density of reacting mixture
Definition: modenaCalls.H:94
size_t R_1_temp_RF1_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:109
size_t CE_A0_Pos
memory allocation for inputs of kinetics surrogate model
Definition: modenaData.H:61
size_t source_R_1_Pos
memory allocation for outputs of kinetics surrogate model
Definition: modenaData.H:166