Changeset 8498


Ignore:
Timestamp:
06/03/11 10:54:35 (14 years ago)
Author:
seroussi
Message:

impose enthalpy and not tempeture for the spc in EnthalpySolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/Enthalpy/CreateConstraintsEnthalpy.cpp

    r8483 r8498  
    4343                        if ((int)iomodel->spctemperature[2*i]){
    4444
    45                                 constraints->AddObject(new Spc(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1,iomodel->spctemperature[2*i+1],EnthalpyAnalysisEnum));
     45                                constraints->AddObject(new Spc(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1,iomodel->heatcapacity*(iomodel->spctemperature[2*i+1]-iomodel->referencetemperature),EnthalpyAnalysisEnum));
    4646                                count++;
    4747
Note: See TracChangeset for help on using the changeset viewer.