Changeset 27417 for issm/trunk-jpl/test/NightlyRun/test355.py
- Timestamp:
- 11/24/22 00:49:18 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test355.py
r27396 r27417 10 10 from generic import generic 11 11 12 # create model:12 # Create model 13 13 md = triangle(model(), '../Exp/Square.exp', 50000.) 14 14 md.mesh.x = md.mesh.x / 100 15 15 md.mesh.y = md.mesh.y / 100 16 #miscellaneous 17 md = setmask(md, '', '') #everywhere grounded 16 md.miscellaneous.name = 'testChannels' 17 18 # Miscellaneous 19 md = setmask(md, '', '') # Everywhere grounded 18 20 md = setflowequation(md, 'SSA', 'all') 19 md.miscellaneous.name = 'testChannels' 20 md.stressbalance.maxiter = 2 #Make sure it runs quickly... 21 md.stressbalance.maxiter = 2 # Make sure it runs quickly... 21 22 22 # Some constants23 # Some constants 23 24 md.constants.g = 9.8 24 25 md.materials.rho_ice = 910 25 26 26 # Geometry27 # Geometry 27 28 md.geometry.surface = -0.02 * md.mesh.x + 320 28 29 md.geometry.bed = np.zeros((md.mesh.numberofvertices)) … … 30 31 md.geometry.thickness = md.geometry.surface - md.geometry.bed 31 32 32 # Define initial conditions33 # Define initial conditions 33 34 md.initialization.vx = 1.0e-6 * md.constants.yts * np.ones((md.mesh.numberofvertices)) 34 35 md.initialization.vy = np.zeros((md.mesh.numberofvertices)) … … 37 38 md.initialization.hydraulic_potential = md.materials.rho_ice * md.constants.g * md.geometry.thickness 38 39 39 # Materials40 #cMaterials 40 41 md.materials.rheology_B = (5e-25)**(-1./3.) * np.ones((md.mesh.numberofvertices)) 41 42 md.materials.rheology_n = 3. * np.ones((md.mesh.numberofelements)) 42 43 43 # Friction44 #cFriction 44 45 md.friction.coefficient = np.zeros((md.mesh.numberofvertices)) 45 46 md.friction.p = np.ones((md.mesh.numberofelements)) … … 47 48 #md.friction.coupling = 0 48 49 49 #B oundary conditions:50 #Bcoundary conditions: 50 51 md = SetIceSheetBC(md) 51 52 … … 74 75 75 76 md.cluster = generic('np', 2) 76 md = solve(md, 'Transient') #or 'tr'77 md = solve(md, 'Transient') # Or 'tr' 77 78 78 # Fields and tolerances to track changes79 # Fields and tolerances to track changes 79 80 field_names = ['HydrologySheetThickness1', 'HydraulicPotential1', 'ChannelArea1', 80 81 'HydrologySheetThickness2', 'HydraulicPotential2', 'ChannelArea2',
Note:
See TracChangeset
for help on using the changeset viewer.