Changeset 18591


Ignore:
Timestamp:
10/08/14 05:05:54 (10 years ago)
Author:
jbondzio
Message:

CHG: move enthalpy core to Enthalpy::Core

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

    r18589 r18591  
    44#include "../shared/shared.h"
    55#include "../modules/modules.h"
     6#include "../solutionsequences/solutionsequences.h"
    67
    78/*Model processing*/
     
    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){/*{{{*/
  • issm/trunk-jpl/src/c/cores/thermal_core.cpp

    r18589 r18591  
    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{
Note: See TracChangeset for help on using the changeset viewer.