Changeset 26907 for issm/trunk-jpl/test/NightlyRun/test621.py
- Timestamp:
- 02/25/22 00:34:01 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/test/NightlyRun/test621.py ¶
r26679 r26907 12 12 13 13 md = triangle(model(), '../Exp/79North.exp', 6000) 14 md = setmask(md, '../Exp/79NorthShelf.exp', '')14 md = setmask(md, '../Exp/79NorthShelf.exp', '') 15 15 md = parameterize(md, '../Par/79North.py') 16 16 md = setflowequation(md, 'SSA', 'all') 17 17 18 18 #Default friction 19 md.friction 20 md.friction.coefficient = 30 *np.ones(md.mesh.numberofvertices)21 md.friction.p = 1*np.ones((md.mesh.numberofelements))22 md.friction.q = 1*np.ones((md.mesh.numberofelements))19 md.friction = friction() 20 md.friction.coefficient = 30 * np.ones(md.mesh.numberofvertices) 21 md.friction.p = np.ones((md.mesh.numberofelements)) 22 md.friction.q = np.ones((md.mesh.numberofelements)) 23 23 24 24 # Basin separation default 25 idb_df = np.zeros((md.mesh.numberofelements ,))26 iid1 = np.where(md.mesh.y <=-1.08e6)[0]25 idb_df = np.zeros((md.mesh.numberofelements)) 26 iid1 = np.where(md.mesh.y <= -1.08e6)[0] 27 27 for ii in range(md.mesh.numberofelements): 28 28 for vertex in range(3): … … 33 33 idb_df[ii] = 2 34 34 #Covariance matrix 35 covPw = np.array([[0.75e10, 0.0],[0.0,0.5e10]])35 covPw = np.array([[0.75e10, 0.0], [0.0, 0.5e10]]) 36 36 37 37 # Stochastic forcing 38 38 md.stochasticforcing.isstochasticforcing = 1 39 md.stochasticforcing.fields 40 md.stochasticforcing.defaultdimension 41 md.stochasticforcing.default_id = idb_df-1 #NOTE: offset because of 1-based vertex indexing42 md.stochasticforcing.covariance = covPw# global covariance43 md.stochasticforcing.randomflag = 0# determines true/false randomness39 md.stochasticforcing.fields = ['FrictionWaterPressure'] 40 md.stochasticforcing.defaultdimension = 2 41 md.stochasticforcing.default_id = idb_df 42 md.stochasticforcing.covariance = covPw # global covariance 43 md.stochasticforcing.randomflag = 0 # determines true/false randomness 44 44 45 md.transient.issmb = 0;46 md.transient.ismasstransport = 1;47 md.transient.isstressbalance = 1;48 md.transient.isthermal = 0;49 md.transient.isgroundingline = 0;45 md.transient.issmb = 0 46 md.transient.ismasstransport = 1 47 md.transient.isstressbalance = 1 48 md.transient.isthermal = 0 49 md.transient.isgroundingline = 0 50 50 51 51 md.transient.requested_outputs = ['default', 'FrictionWaterPressure'] 52 52 md.timestepping.start_time = 0 53 md.timestepping.time_step 53 md.timestepping.time_step = 1 54 54 md.timestepping.final_time = 5 55 md.cluster = generic('name', gethostname(),'np',3)55 md.cluster = generic('name', gethostname(), 'np', 3) 56 56 md = solve(md, 'Transient') 57 57 58 58 # Fields and tolerances to track changes 59 field_names = [ 60 'Vx1','Vy1','Vel1','Thickness1','FrictionWaterPressure1', 61 'Vx2','Vy2','Vel2','Thickness2','FrictionWaterPressure2', 62 'Vx10','Vy10','Vel10','Thickness10','FrictionWaterPressure10' 63 ] 59 field_names = ['Vx1', 'Vy1', 'Vel1', 'Thickness1', 'FrictionWaterPressure1', 60 'Vx2', 'Vy2', 'Vel2', 'Thickness2', 'FrictionWaterPressure2', 61 'Vx10', 'Vy10', 'Vel10', 'Thickness10', 'FrictionWaterPressure10'] 64 62 65 field_tolerances = [ 66 2e-10,2e-10,2e-10,2e-10,2e-10, 67 4e-10,4e-10,4e-10,4e-10,4e-10, 68 8e-10,8e-10,8e-10,8e-10,8e-10 69 ] 63 field_tolerances = [2e-10, 2e-10, 2e-10, 2e-10, 2e-10, 64 4e-10, 4e-10, 4e-10, 4e-10, 4e-10, 65 8e-10, 8e-10, 8e-10, 8e-10, 8e-10] 70 66 71 field_values = [ 72 md.results.TransientSolution[0].Vx, 73 md.results.TransientSolution[0].Vy, 74 md.results.TransientSolution[0].Vel, 75 md.results.TransientSolution[0].Thickness, 76 md.results.TransientSolution[0].FrictionWaterPressure, 77 md.results.TransientSolution[1].Vx, 78 md.results.TransientSolution[1].Vy, 79 md.results.TransientSolution[1].Vel, 80 md.results.TransientSolution[1].Thickness, 81 md.results.TransientSolution[1].FrictionWaterPressure, 82 md.results.TransientSolution[4].Vx, 83 md.results.TransientSolution[4].Vy, 84 md.results.TransientSolution[4].Vel, 85 md.results.TransientSolution[4].Thickness, 86 md.results.TransientSolution[4].FrictionWaterPressure 87 ] 88 89 90 91 67 field_values = [md.results.TransientSolution[0].Vx, 68 md.results.TransientSolution[0].Vy, 69 md.results.TransientSolution[0].Vel, 70 md.results.TransientSolution[0].Thickness, 71 md.results.TransientSolution[0].FrictionWaterPressure, 72 md.results.TransientSolution[1].Vx, 73 md.results.TransientSolution[1].Vy, 74 md.results.TransientSolution[1].Vel, 75 md.results.TransientSolution[1].Thickness, 76 md.results.TransientSolution[1].FrictionWaterPressure, 77 md.results.TransientSolution[4].Vx, 78 md.results.TransientSolution[4].Vy, 79 md.results.TransientSolution[4].Vel, 80 md.results.TransientSolution[4].Thickness, 81 md.results.TransientSolution[4].FrictionWaterPressure]
Note:
See TracChangeset
for help on using the changeset viewer.