source: issm/oecreview/Archive/16554-17801/ISSM-17466-17467.diff@ 17802

Last change on this file since 17802 was 17802, checked in by Mathieu Morlighem, 11 years ago

Added archives

File size: 3.2 KB
  • ../trunk-jpl/test/Par/ValleyGlacierShelf.par

     
     1%Start defining model parameters here
     2x = md.mesh.x
     3y = md.mesh.y
     4xmin = min(x)
     5xmax = max(x)
     6ymin = min(y)
     7ymax = max(y)
     8Lx = (xmax-xmin)
     9Ly = (ymax-ymin)
     10xm = (xmin+xmax)/2.
     11ym = (ymin+ymax)/2.
     12
     13%Geometry: U-shaped valley in y direction
     14thk_center = 1000.
     15thk_margin = 0.5*thk_center
     16bmax = 0.
     17bmin = -thk_center*md.materials.rho_ice/md.materials.rho_water
     18
     19alpha = 2./3.
     20slope = 0.9*(bmin-bmax)*(x-xmin)/(Lx*alpha) + 0.1*(bmin-bmax)*(y-ymin)/(Ly) + bmax
     21md.geometry.surface = (thk_center+bmax) + slope
     22md.geometry.bed = bmax + slope + 4./Ly^2*(thk_center-thk_margin)*(y-ym).^2)
     23md.geometry.thickness = md.geometry.surface - md.geometry.bed
     24md.geometry.bathymetry = md.geometry.bed
     25
     26%Mask
     27md.mask.ice_levelset = x - alpha*Lx
     28md.mask.groundedice_levelset = ones(md.mesh.numberofvertices,1)
     29
     30%Initial velocity
     31md.initialization.vx = zeros(md.mesh.numberofvertices,1)
     32md.initialization.vy = zeros(md.mesh.numberofvertices,1)
     33md.initialization.vz = zeros(md.mesh.numberofvertices,1)
     34md.initialization.pressure = zeros(md.mesh.numberofvertices,1)
     35
     36%Materials
     37md.initialization.temperature = (273.15-5.)*ones(md.mesh.numberofvertices,1)
     38md.initialization.waterfraction = zeros(md.mesh.numberofvertices,1)
     39md.initialization.watercolumn = zeros(md.mesh.numberofvertices,1)
     40md.materials.rheology_B = paterson(md.initialization.temperature)
     41md.materials.rheology_n = 3.*ones(md.mesh.numberofelements,1)
     42
     43%Thermal
     44md.thermal.isenthalpy = 0
     45md.thermal.spctemperature = NaN(md.mesh.numberofvertices,1)
     46
     47%Groundingline
     48md.groundingline.migration = 'SubelementMigration'
     49
     50%Damage
     51md.damage.D = zeros(md.mesh.numberofvertices,1)
     52
     53%Surface mass balance and basal melting
     54md.surfaceforcings.mass_balance = 0.3*ones(md.mesh.numberofvertices,1)
     55md.basalforcings.melting_rate = md.surfaceforcings.mass_balance
     56
     57%Friction
     58md.friction.coefficient = 20.*ones(md.mesh.numberofvertices,1)
     59md.friction.coefficient(find(md.mask.groundedice_levelset<0.)) = 0.
     60md.friction.p = ones(md.mesh.numberofelements,1)
     61md.friction.q = ones(md.mesh.numberofelements,1)
     62
     63%Transient
     64md.transient.isstressbalance = 1
     65md.transient.islevelset = 1
     66md.transient.ismasstransport = 0
     67md.transient.isthermal = 0
     68md.transient.isgroundingline = 1
     69md.transient.isgia = 0
     70
     71%Stressbalance
     72md.stressbalance.maxiter = 100
     73md.stressbalance.viscosity_overshoot = 0.0
     74md.stressbalance.restol = 0.05
     75md.stressbalance.reltol = 0.05
     76md.stressbalance.abstol = NaN
     77
     78%Masstransport
     79md.masstransport.calvingrate = 0.*ones(md.mesh.numberofvertices,1)
     80md.masstransport.stabilization = 1.
     81
     82%Numerical parameters
     83md.thermal.stabilization = 1.
     84md.settings.waitonlock = 30
     85md.steadystate.reltol = 0.05
     86md.timestepping.time_step = 1.
     87md.timestepping.final_time = 3.
     88
     89%Verbose
     90md.verbose = verbose(0)
     91
     92%Deal with boundary conditions:
     93md = SetIceShelfBC(md)
     94
     95%Change name so that no test have the same name
     96A = dbstack;
     97if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.