Changeset 8490
- Timestamp:
- 06/03/11 08:48:18 (14 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r8487 r8490 3685 3685 double mixed_layer_capacity,thermal_exchange_velocity; 3686 3686 double rho_ice,rho_water,pressure,dt,scalar_ocean; 3687 double meltingpoint,beta,heatcapacity,t_pmp;3687 double heatcapacity,t_pmp; 3688 3688 double xyz_list[NUMVERTICES][3]; 3689 3689 double xyz_list_tria[NUMVERTICES2D][3]; … … 3705 3705 rho_ice=matpar->GetRhoIce(); 3706 3706 heatcapacity=matpar->GetHeatCapacity(); 3707 beta=matpar->GetBeta();3708 meltingpoint=matpar->GetMeltingPoint();3709 3707 this->parameters->FindParam(&dt,DtEnum); 3710 3708 Input* pressure_input=inputs->GetInput(PressureEnum); _assert_(pressure_input); … … 3720 3718 3721 3719 pressure_input->GetParameterValue(&pressure,gauss); 3722 t_pmp=m eltingpoint-beta*pressure;3720 t_pmp=matpar->TMeltingPoint(pressure); 3723 3721 3724 3722 scalar_ocean=gauss->weight*Jdet2d*rho_water*mixed_layer_capacity*thermal_exchange_velocity*(t_pmp)/(heatcapacity*rho_ice); -
issm/trunk/src/c/objects/Loads/Pengrid.cpp
r8408 r8490 465 465 double pressure; 466 466 double temperature; 467 double beta,t_pmp; 468 double meltingpoint; 467 double t_pmp; 469 468 int new_active; 470 469 int unstable=0; … … 487 486 488 487 //Recover our data: 489 meltingpoint=matpar->GetMeltingPoint();490 beta=matpar->GetBeta();491 488 parameters->FindParam(&stabilize_constraints,StabilizeConstraintsEnum); 492 489 493 490 //Compute pressure melting point 494 t_pmp=m eltingpoint-beta*pressure;491 t_pmp=matpar->TMeltingPoint(pressure); 495 492 496 493 //Figure out if temperature is over melting_point, in which case, this penalty needs to be activated. -
issm/trunk/src/c/objects/Materials/Matpar.cpp
r7674 r8490 385 385 } 386 386 /*}}}1*/ 387 /*FUNCTION Matpar::TMeltingPoint {{{1*/ 388 double Matpar::TMeltingPoint(double pressure){ 389 return meltingpoint-beta*pressure; 390 } 391 /*}}}1*/ -
issm/trunk/src/c/objects/Materials/Matpar.h
r8386 r8490 79 79 double GetGamma(); 80 80 double GetKn(); 81 double TMeltingPoint(double pressure); 81 82 /*}}}*/ 82 83
Note:
See TracChangeset
for help on using the changeset viewer.