source: issm/oecreview/Archive/18296-19100/ISSM-18590-18591.diff

Last change on this file was 19102, checked in by Mathieu Morlighem, 10 years ago

NEW: added 18296-19100

File size: 2.3 KB
  • ../trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

     
    33#include "../classes/classes.h"
    44#include "../shared/shared.h"
    55#include "../modules/modules.h"
     6#include "../solutionsequences/solutionsequences.h"
    67
    78/*Model processing*/
    89int  EnthalpyAnalysis::DofsPerNode(int** doflist,int domaintype,int approximation){/*{{{*/
     
    198199
    199200/*Finite Element Analysis*/
    200201void EnthalpyAnalysis::Core(FemModel* femmodel){/*{{{*/
    201         _error_("not implemented");
     202        if(VerboseSolution()) _printf0_("   computing enthalpy\n");
     203        femmodel->SetCurrentConfiguration(EnthalpyAnalysisEnum);
     204        solutionsequence_thermal_nonlinear(femmodel);
     205
     206        /*transfer enthalpy to enthalpy picard for the next step: */
     207        InputDuplicatex(femmodel,EnthalpyEnum,EnthalpyPicardEnum);
     208
     209        int solution_type;
     210        femmodel->parameters->FindParam(&solution_type,SolutionTypeEnum);
     211        if(solution_type!=SteadystateSolutionEnum){
     212                PostProcessing(femmodel);
     213        }
     214
    202215}/*}}}*/
    203216ElementVector* EnthalpyAnalysis::CreateDVector(Element* element){/*{{{*/
    204217        /*Default, return NULL*/
  • ../trunk-jpl/src/c/cores/thermal_core.cpp

     
    2727        if(numoutputs) femmodel->parameters->FindParam(&requested_outputs,&numoutputs,ThermalRequestedOutputsEnum);
    2828
    2929        if(isenthalpy){
    30 
    31                 if(VerboseSolution()) _printf0_("   computing enthalpy\n");
    32                 femmodel->SetCurrentConfiguration(EnthalpyAnalysisEnum);
    33                 solutionsequence_thermal_nonlinear(femmodel);
    34 
    35                 /*transfer enthalpy to enthalpy picard for the next step: */
    36                 InputDuplicatex(femmodel,EnthalpyEnum,EnthalpyPicardEnum);
    37 
    38                 if(solution_type!=SteadystateSolutionEnum){
    39                         /*Post process*/
    40                         enthalpy_analysis = new EnthalpyAnalysis();
    41                         enthalpy_analysis->PostProcessing(femmodel);
    42                         delete enthalpy_analysis;
    43                 }
     30                enthalpy_analysis = new EnthalpyAnalysis();
     31                enthalpy_analysis->Core(femmodel);
     32                delete enthalpy_analysis;
    4433        }
    4534        else{
    4635                if(VerboseSolution()) _printf0_("   computing temperatures\n");
Note: See TracBrowser for help on using the repository browser.