Changeset 13676
- Timestamp:
- 10/15/12 14:34:31 (12 years ago)
- Location:
- issm/trunk-jpl/test/Par
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/Par/79North.py
r13675 r13676 11 11 12 12 #Geometry and observation 13 f = netCDF4.Dataset('../Data/79North.nc','r')13 f = netCDF4.Dataset('../Data/79North.nc','r') 14 14 x = reshape(f.variables['x'][:],(-1)) 15 15 y = reshape(f.variables['y'][:],(-1)) 16 vx = f.variables['vx'][:]17 vy = f.variables['vy'][:]16 vx = f.variables['vx'][:] 17 vy = f.variables['vy'][:] 18 18 index = f.variables['index'][:] 19 19 surface = f.variables['surface'][:] -
issm/trunk-jpl/test/Par/SquareSheetConstrained.py
r13636 r13676 11 11 12 12 #Geometry 13 hmin=300 14 hmax=1000 13 hmin=300. 14 hmax=1000. 15 15 ymin=numpy.min(md.mesh.y) 16 16 ymax=numpy.max(md.mesh.y) -
issm/trunk-jpl/test/Par/SquareSheetShelf.par
r13234 r13676 2 2 3 3 %Geometry 4 hmin=300 ;5 hmax=1000 ;4 hmin=300.; 5 hmax=1000.; 6 6 ymin=min(md.mesh.y); 7 7 ymax=max(md.mesh.y); … … 9 9 md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness; 10 10 bed_sheet=-md.materials.rho_ice/md.materials.rho_water*(hmax+(hmin-hmax)*(ymax/2-ymin)/(ymax-ymin)); 11 pos=find(md.mesh.y<=ymax/2 );11 pos=find(md.mesh.y<=ymax/2.); 12 12 md.geometry.bed(pos)=bed_sheet; 13 13 md.geometry.surface=md.geometry.bed+md.geometry.thickness; … … 26 26 27 27 %Materials 28 md.initialization.temperature=(273 -20)*ones(md.mesh.numberofvertices,1);28 md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1); 29 29 md.materials.rheology_B=paterson(md.initialization.temperature); 30 md.materials.rheology_n=3 *ones(md.mesh.numberofelements,1);30 md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1); 31 31 32 32 %Accumulation and melting 33 md.surfaceforcings.mass_balance=10 *ones(md.mesh.numberofvertices,1);34 md.basalforcings.melting_rate=5 *ones(md.mesh.numberofvertices,1);33 md.surfaceforcings.mass_balance=10.*ones(md.mesh.numberofvertices,1); 34 md.basalforcings.melting_rate=5.*ones(md.mesh.numberofvertices,1); 35 35 36 36 %Friction 37 37 pos=find(md.mask.elementonfloatingice); 38 md.friction.coefficient=20 *ones(md.mesh.numberofvertices,1);39 md.friction.coefficient(md.mesh.elements(pos,:))=0 ;38 md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1); 39 md.friction.coefficient(md.mesh.elements(pos,:))=0.; 40 40 md.friction.p=ones(md.mesh.numberofelements,1); 41 41 md.friction.q=ones(md.mesh.numberofelements,1); … … 51 51 md.diagnostic.reltol=0.05; 52 52 md.diagnostic.abstol=NaN; 53 md.timestepping.time_step=1 ;54 md.timestepping.final_time=3 ;53 md.timestepping.time_step=1.; 54 md.timestepping.final_time=3.; 55 55 56 56 %Deal with boundary conditions:
Note:
See TracChangeset
for help on using the changeset viewer.