@@ -39,56 +39,6 @@ CPengRobinson::CPengRobinson(su2double gamma, su2double R, su2double Pstar, su2d
3939 k = 0.37464 + 1.54226 * w - 0.26992 * w * w;
4040 else
4141 k = 0.379642 + 1.48503 * w - 0.164423 * w * w + 0.016666 * w * w * w;
42-
43- vector<string> call_input_variables;
44- vector<string> call_output_variables;
45- vector<su2double> call_inputs;
46- vector<su2double*> call_outputs;
47- call_input_variables.push_back (" Progress_Variable" );
48- call_inputs.push_back (-5.74934292655689e-01 );
49- call_input_variables.push_back (" Enthalpy" );
50- call_inputs.push_back (+2.22692201641688e+03 );
51- call_input_variables.push_back (" Mixture_Fraction" );
52- call_inputs.push_back (0.0144045 );
53-
54- call_output_variables.push_back (" Temperature" );
55- call_outputs.push_back (&Temperature);
56- call_output_variables.push_back (" Density" );
57- call_outputs.push_back (&Density);
58-
59- vector<string> call_inputvars_lean;
60- call_inputvars_lean.push_back (" Progress_Variable_lean" );
61- call_inputvars_lean.push_back (" Enthalpy_lean" );
62- call_inputvars_lean.push_back (" Mixture_Fraction_lean" );
63-
64- vector<string> call_inputvars_rich;
65- call_inputvars_rich.push_back (" Progress_Variable_rich" );
66- call_inputvars_rich.push_back (" Enthalpy_rich" );
67- call_inputvars_rich.push_back (" Mixture_Fraction_rich" );
68-
69- MLPToolbox::CLookUp_ANN * test_mlp = new MLPToolbox::CLookUp_ANN (" MLP_collection.mlp" );
70- MLPToolbox::CIOMap * test_map = new MLPToolbox::CIOMap (test_mlp, call_input_variables, call_output_variables);
71- MLPToolbox::CIOMap * lean_map = new MLPToolbox::CIOMap (test_mlp, call_inputvars_lean, call_output_variables);
72- MLPToolbox::CIOMap * rich_map = new MLPToolbox::CIOMap (test_mlp, call_inputvars_rich, call_output_variables);
73-
74-
75- test_mlp->Predict_ANN (test_map, call_inputs, call_outputs);
76- cout << " in flame zone: " << Density << " " << Temperature << endl;
77- call_inputs[0 ] = -7.36 ;
78- call_inputs[1 ] = 26468.5 ;
79- call_inputs[2 ] = 1.0 ;
80- test_mlp->Predict_ANN (rich_map, call_inputs, call_outputs);
81- cout << " rich: " << Density << " " << Temperature << endl;
82- call_inputs[0 ] = -0.4753 ;
83- call_inputs[1 ] = 3144.6 ;
84- call_inputs[2 ] = 0.0 ;
85- test_mlp->Predict_ANN (lean_map, call_inputs, call_outputs);
86- cout << " lean: " << Density << " " << Temperature << endl;
87-
88- delete test_mlp;
89- delete test_map;
90- delete rich_map;
91- delete lean_map;
9242}
9343
9444su2double CPengRobinson::alpha2 (su2double T) const {
0 commit comments