source: issm/branches/trunk-larour-NatGeoScience2016/test/NightlyRun/test513.py@ 21759

Last change on this file since 21759 was 21759, checked in by Eric.Larour, 8 years ago

CHG: merged branch back to trunk-jpl 21754.

File size: 1.9 KB
RevLine 
[19049]1#Test Name: PigCMDragSteaSSA3d
[13662]2from model import *
[21759]3from socket import gethostname
[13662]4from triangle import *
5from setmask import *
6from parameterize import *
7from setflowequation import *
8from solve import *
9
[21759]10
[13662]11md=triangle(model(),'../Exp/Pig.exp',30000.)
12md=setmask(md,'../Exp/PigShelves.exp','../Exp/PigIslands.exp')
13md=parameterize(md,'../Par/Pig.py')
[13672]14md.extrude(3,1.)
[15565]15md=setflowequation(md,'SSA','all')
[13662]16
17# control parameters
18md.inversion.iscontrol=1
19md.inversion.control_parameters=['FrictionCoefficient']
[21759]20md.inversion.min_parameters=1.*np.ones((md.mesh.numberofvertices))
21md.inversion.max_parameters=200.*np.ones((md.mesh.numberofvertices))
[13662]22md.inversion.nsteps=2
[16307]23md.inversion.cost_functions=[103,501]
[21759]24md.inversion.cost_functions_coefficients=np.ones((md.mesh.numberofvertices,2))
[13662]25md.inversion.cost_functions_coefficients[:,1]=2.*10**-7
[21759]26md.inversion.gradient_scaling=3.*np.ones((md.inversion.nsteps))
27md.inversion.maxiter_per_step=2.*np.ones((md.inversion.nsteps))
28md.inversion.step_threshold=0.99*np.ones((md.inversion.nsteps))
[13662]29md.inversion.vx_obs=md.initialization.vx
30md.inversion.vy_obs=md.initialization.vy
[13663]31md.timestepping.time_step=0.
[13662]32
33md.thermal.penalty_lock=5
[21759]34md.cluster=generic('name',gethostname(),'np',3)
[21056]35md=solve(md,'Steadystate')
[13662]36
37# Fields and tolerances to track changes
[18068]38field_names =['Gradient','Misfits','FrictionCoefficient','Pressure','Vel','Vx','Vy','Vz','Temperature','BasalforcingsGroundediceMeltingRate']
[19797]39field_tolerances=[5e-08,4e-10,1e-10,1e-10,3e-6,4e-6,3.4e-6,3e-6,2e-6,2e-06]
[13662]40field_values=[\
[13967]41 md.results.SteadystateSolution.Gradient1,\
42 md.results.SteadystateSolution.J,\
43 md.results.SteadystateSolution.FrictionCoefficient,\
44 md.results.SteadystateSolution.Pressure,\
45 md.results.SteadystateSolution.Vel,\
46 md.results.SteadystateSolution.Vx,\
47 md.results.SteadystateSolution.Vy,\
48 md.results.SteadystateSolution.Vz,\
49 md.results.SteadystateSolution.Temperature,\
[18068]50 md.results.SteadystateSolution.BasalforcingsGroundediceMeltingRate
[13662]51]
Note: See TracBrowser for help on using the repository browser.