Changeset 26423
- Timestamp:
- 09/01/21 18:34:26 (4 years ago)
- Location:
- issm/trunk-jpl/src/c/analyses
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
r26420 r26423 221 221 basalelement->FindParam(&migrationmax,MigrationMaxEnum); 222 222 223 h = element->CharacteristicLength();223 h = basalelement->CharacteristicLength(); 224 224 225 225 Input* mf_vx_input = NULL; … … 388 388 Input* mf_vy_input = basalelement->GetInput(MovingFrontalVyEnum); _assert_(mf_vy_input); 389 389 390 IssmDouble h= element->CharacteristicLength();390 IssmDouble h=basalelement->CharacteristicLength(); 391 391 392 392 /* Start looping on the number of gaussian points: */ -
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r26371 r26423 1878 1878 /*Start looping on Gaussian points*/ 1879 1879 Gauss* gauss=element->NewGauss(xyz_list,xyz_list_front,3); 1880 1881 double time; 1882 element->FindParam(&time,TimeEnum); 1883 1880 1884 while(gauss->next()){ 1881 1885 thickness_input->GetInputValue(&thickness,gauss); … … 1890 1894 ice_pressure = 1.0/2.0*gravity*rho_ice*thickness*thickness; 1891 1895 pressure = ice_pressure + water_pressure; 1896 1897 /*double alpha = 0.1/2*(1+sin(2*pi*time/(365*24*3600)))'*/ 1898 /*double alpha = 0.01/2*(1+sin(2*pi*time/(365*24*3600)))'*/ 1899 /*double alpha = 0.05/2*(1+sin(2*pi*time/(365*24*3600)))'*/ 1900 1901 if(base<sealevel){ 1902 double alpha = 0*0.02/2*(1+sin(2*PI*time/(365*24*3600))); 1903 alpha = 0.1; 1904 pressure = ice_pressure -( 0.5*rho_ice*gravity*pow(alpha*thickness,2) + 0.5*rho_water*gravity*base*base-0.5*rho_ice*rho_ice/rho_water*gravity*pow(alpha*thickness,2)); 1905 //pressure = ice_pressure + 0.5*rho_ice*gravity*pow(alpha*thickness,2) + 0.5*rho_water*gravity*(surface_under_water*surface_under_water - base_under_water*base_under_water)-0.5*rho_ice*rho_ice/rho_water*gravity*pow(alpha*thickness,2); 1906 } 1892 1907 1893 1908 for(int i=0;i<numnodes;i++){
Note:
See TracChangeset
for help on using the changeset viewer.