Changeset 21729 for issm/trunk/test/Par/SquareEISMINT.py
- Timestamp:
- 05/19/17 14:48:02 (8 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
-
issm/trunk/test
- Property svn:mergeinfo changed
-
issm/trunk/test/Par/SquareEISMINT.py
r20500 r21729 7 7 ymin=numpy.min(md.mesh.y) 8 8 ymax=numpy.max(md.mesh.y) 9 md.geometry.thickness=500.*numpy.ones((md.mesh.numberofvertices ,1))9 md.geometry.thickness=500.*numpy.ones((md.mesh.numberofvertices)) 10 10 md.geometry.base=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness 11 11 md.geometry.surface=md.geometry.base+md.geometry.thickness 12 12 13 13 print " creating drag" 14 md.friction.coefficient=200.*numpy.ones((md.mesh.numberofvertices ,1))14 md.friction.coefficient=200.*numpy.ones((md.mesh.numberofvertices)) 15 15 md.friction.coefficient[numpy.nonzero(md.mask.groundedice_levelset<0.)[0]]=0. 16 md.friction.p=numpy.ones((md.mesh.numberofelements ,1))17 md.friction.q=numpy.ones((md.mesh.numberofelements ,1))16 md.friction.p=numpy.ones((md.mesh.numberofelements)) 17 md.friction.q=numpy.ones((md.mesh.numberofelements)) 18 18 19 19 print " creating initial values" 20 md.initialization.temperature=(273.-20.)*numpy.ones((md.mesh.numberofvertices ,1))21 md.initialization.vx=numpy.zeros((md.mesh.numberofvertices ,1))22 md.initialization.vy=numpy.zeros((md.mesh.numberofvertices ,1))23 md.initialization.vz=numpy.zeros((md.mesh.numberofvertices ,1))24 md.initialization.vel=numpy.zeros((md.mesh.numberofvertices ,1))25 md.initialization.pressure=numpy.zeros((md.mesh.numberofvertices ,1))20 md.initialization.temperature=(273.-20.)*numpy.ones((md.mesh.numberofvertices)) 21 md.initialization.vx=numpy.zeros((md.mesh.numberofvertices)) 22 md.initialization.vy=numpy.zeros((md.mesh.numberofvertices)) 23 md.initialization.vz=numpy.zeros((md.mesh.numberofvertices)) 24 md.initialization.vel=numpy.zeros((md.mesh.numberofvertices)) 25 md.initialization.pressure=numpy.zeros((md.mesh.numberofvertices)) 26 26 27 27 print " creating flow law parameter" 28 md.materials.rheology_B=1.7687*10**8*numpy.ones((md.mesh.numberofvertices ,1))29 md.materials.rheology_n=3.*numpy.ones((md.mesh.numberofelements ,1))28 md.materials.rheology_B=1.7687*10**8*numpy.ones((md.mesh.numberofvertices)) 29 md.materials.rheology_n=3.*numpy.ones((md.mesh.numberofelements)) 30 30 31 31 print " creating surface mass balance" 32 md.smb.mass_balance=0.2*numpy.ones((md.mesh.numberofvertices ,1)) #0m/a33 md.basalforcings.floatingice_melting_rate=0.*numpy.ones((md.mesh.numberofvertices ,1)) #0m/a34 md.basalforcings.groundedice_melting_rate=0.*numpy.ones((md.mesh.numberofvertices ,1)) #0m/a32 md.smb.mass_balance=0.2*numpy.ones((md.mesh.numberofvertices)) #0m/a 33 md.basalforcings.floatingice_melting_rate=0.*numpy.ones((md.mesh.numberofvertices)) #0m/a 34 md.basalforcings.groundedice_melting_rate=0.*numpy.ones((md.mesh.numberofvertices)) #0m/a 35 35 36 36 print " boundary conditions" … … 39 39 #Evolution of the ice shelf 40 40 pos=numpy.nonzero(md.mesh.y==200000.) #nodes on the upper boundary condition 41 md.balancethickness.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices ,1))41 md.balancethickness.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices)) 42 42 md.balancethickness.spcthickness[pos]=500. 43 md.masstransport.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices ,1))43 md.masstransport.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices)) 44 44 md.masstransport.spcthickness[pos]=500. 45 45 md.masstransport.stabilization=0 #Better result with no artificial diffusivity
Note:
See TracChangeset
for help on using the changeset viewer.