[19102] | 1 | Index: ../trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp (revision 18590)
|
---|
| 4 | +++ ../trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp (revision 18591)
|
---|
| 5 | @@ -3,6 +3,7 @@
|
---|
| 6 | #include "../classes/classes.h"
|
---|
| 7 | #include "../shared/shared.h"
|
---|
| 8 | #include "../modules/modules.h"
|
---|
| 9 | +#include "../solutionsequences/solutionsequences.h"
|
---|
| 10 |
|
---|
| 11 | /*Model processing*/
|
---|
| 12 | int EnthalpyAnalysis::DofsPerNode(int** doflist,int domaintype,int approximation){/*{{{*/
|
---|
| 13 | @@ -198,7 +199,19 @@
|
---|
| 14 |
|
---|
| 15 | /*Finite Element Analysis*/
|
---|
| 16 | void EnthalpyAnalysis::Core(FemModel* femmodel){/*{{{*/
|
---|
| 17 | - _error_("not implemented");
|
---|
| 18 | + if(VerboseSolution()) _printf0_(" computing enthalpy\n");
|
---|
| 19 | + femmodel->SetCurrentConfiguration(EnthalpyAnalysisEnum);
|
---|
| 20 | + solutionsequence_thermal_nonlinear(femmodel);
|
---|
| 21 | +
|
---|
| 22 | + /*transfer enthalpy to enthalpy picard for the next step: */
|
---|
| 23 | + InputDuplicatex(femmodel,EnthalpyEnum,EnthalpyPicardEnum);
|
---|
| 24 | +
|
---|
| 25 | + int solution_type;
|
---|
| 26 | + femmodel->parameters->FindParam(&solution_type,SolutionTypeEnum);
|
---|
| 27 | + if(solution_type!=SteadystateSolutionEnum){
|
---|
| 28 | + PostProcessing(femmodel);
|
---|
| 29 | + }
|
---|
| 30 | +
|
---|
| 31 | }/*}}}*/
|
---|
| 32 | ElementVector* EnthalpyAnalysis::CreateDVector(Element* element){/*{{{*/
|
---|
| 33 | /*Default, return NULL*/
|
---|
| 34 | Index: ../trunk-jpl/src/c/cores/thermal_core.cpp
|
---|
| 35 | ===================================================================
|
---|
| 36 | --- ../trunk-jpl/src/c/cores/thermal_core.cpp (revision 18590)
|
---|
| 37 | +++ ../trunk-jpl/src/c/cores/thermal_core.cpp (revision 18591)
|
---|
| 38 | @@ -27,20 +27,9 @@
|
---|
| 39 | if(numoutputs) femmodel->parameters->FindParam(&requested_outputs,&numoutputs,ThermalRequestedOutputsEnum);
|
---|
| 40 |
|
---|
| 41 | if(isenthalpy){
|
---|
| 42 | -
|
---|
| 43 | - if(VerboseSolution()) _printf0_(" computing enthalpy\n");
|
---|
| 44 | - femmodel->SetCurrentConfiguration(EnthalpyAnalysisEnum);
|
---|
| 45 | - solutionsequence_thermal_nonlinear(femmodel);
|
---|
| 46 | -
|
---|
| 47 | - /*transfer enthalpy to enthalpy picard for the next step: */
|
---|
| 48 | - InputDuplicatex(femmodel,EnthalpyEnum,EnthalpyPicardEnum);
|
---|
| 49 | -
|
---|
| 50 | - if(solution_type!=SteadystateSolutionEnum){
|
---|
| 51 | - /*Post process*/
|
---|
| 52 | - enthalpy_analysis = new EnthalpyAnalysis();
|
---|
| 53 | - enthalpy_analysis->PostProcessing(femmodel);
|
---|
| 54 | - delete enthalpy_analysis;
|
---|
| 55 | - }
|
---|
| 56 | + enthalpy_analysis = new EnthalpyAnalysis();
|
---|
| 57 | + enthalpy_analysis->Core(femmodel);
|
---|
| 58 | + delete enthalpy_analysis;
|
---|
| 59 | }
|
---|
| 60 | else{
|
---|
| 61 | if(VerboseSolution()) _printf0_(" computing temperatures\n");
|
---|