Changeset 21409 for issm/trunk-jpl/test/Par/RoundSheetEISMINT.py
- Timestamp:
- 11/22/16 02:33:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/Par/RoundSheetEISMINT.py
r19527 r21409 4 4 #Ok, start defining model parameters here 5 5 print " creating thickness" 6 md.geometry.thickness=10.*numpy.ones((md.mesh.numberofvertices ,1))7 md.geometry.base=numpy.zeros((md.mesh.numberofvertices ,1))6 md.geometry.thickness=10.*numpy.ones((md.mesh.numberofvertices)) 7 md.geometry.base=numpy.zeros((md.mesh.numberofvertices)) 8 8 md.geometry.surface=md.geometry.base+md.geometry.thickness 9 9 10 10 print " creating drag" 11 md.friction.coefficient=20.*numpy.ones((md.mesh.numberofvertices ,1))12 md.friction.p=numpy.ones((md.mesh.numberofelements ,1))13 md.friction.q=numpy.ones((md.mesh.numberofelements ,1))11 md.friction.coefficient=20.*numpy.ones((md.mesh.numberofvertices)) 12 md.friction.p=numpy.ones((md.mesh.numberofelements)) 13 md.friction.q=numpy.ones((md.mesh.numberofelements)) 14 14 15 15 print " creating temperatures" 16 16 tmin=238.15 #K 17 17 st=1.67*10**-2/1000. #k/m 18 radius=numpy.sqrt((md.mesh.x)**2+(md.mesh.y)**2) .reshape(-1,1)18 radius=numpy.sqrt((md.mesh.x)**2+(md.mesh.y)**2) 19 19 md.initialization.temperature=tmin+st*radius 20 md.basalforcings.geothermalflux=4.2*10**-2*numpy.ones((md.mesh.numberofvertices ,1))20 md.basalforcings.geothermalflux=4.2*10**-2*numpy.ones((md.mesh.numberofvertices)) 21 21 22 22 print " creating flow law parameter" 23 md.materials.rheology_B=6.81*10**7*numpy.ones((md.mesh.numberofvertices ,1)) #to have the same B as the analytical solution24 md.materials.rheology_n=3.*numpy.ones((md.mesh.numberofelements ,1))23 md.materials.rheology_B=6.81*10**7*numpy.ones((md.mesh.numberofvertices)) #to have the same B as the analytical solution 24 md.materials.rheology_n=3.*numpy.ones((md.mesh.numberofelements)) 25 25 26 26 print " creating surface mass balance" … … 32 32 print " creating velocities" 33 33 constant=0.3 34 md.inversion.vx_obs=constant/2.*md.mesh.x .reshape(-1,1)*(md.geometry.thickness)**-135 md.inversion.vy_obs=constant/2.*md.mesh.y .reshape(-1,1)*(md.geometry.thickness)**-134 md.inversion.vx_obs=constant/2.*md.mesh.x*(md.geometry.thickness)**-1 35 md.inversion.vy_obs=constant/2.*md.mesh.y*(md.geometry.thickness)**-1 36 36 md.inversion.vel_obs=numpy.sqrt((md.inversion.vx_obs)**2+(md.inversion.vy_obs)**2) 37 md.initialization.vx=numpy.zeros((md.mesh.numberofvertices ,1))38 md.initialization.vy=numpy.zeros((md.mesh.numberofvertices ,1))39 md.initialization.vz=numpy.zeros((md.mesh.numberofvertices ,1))40 md.initialization.pressure=numpy.zeros((md.mesh.numberofvertices ,1))37 md.initialization.vx=numpy.zeros((md.mesh.numberofvertices)) 38 md.initialization.vy=numpy.zeros((md.mesh.numberofvertices)) 39 md.initialization.vz=numpy.zeros((md.mesh.numberofvertices)) 40 md.initialization.pressure=numpy.zeros((md.mesh.numberofvertices)) 41 41 42 42 #Deal with boundary conditions:
Note:
See TracChangeset
for help on using the changeset viewer.