Changeset 13676


Ignore:
Timestamp:
10/15/12 14:34:31 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added SquareSheetShelf.py

Location:
issm/trunk-jpl/test/Par
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/Par/79North.py

    r13675 r13676  
    1111
    1212#Geometry and observation
    13 f = netCDF4.Dataset('../Data/79North.nc','r')
     13f         = netCDF4.Dataset('../Data/79North.nc','r')
    1414x         = reshape(f.variables['x'][:],(-1))
    1515y         = reshape(f.variables['y'][:],(-1))
    16 vx= f.variables['vx'][:]
    17 vy= f.variables['vy'][:]
     16vx        = f.variables['vx'][:]
     17vy        = f.variables['vy'][:]
    1818index     = f.variables['index'][:]
    1919surface   = f.variables['surface'][:]
  • issm/trunk-jpl/test/Par/SquareSheetConstrained.py

    r13636 r13676  
    1111
    1212#Geometry
    13 hmin=300
    14 hmax=1000
     13hmin=300.
     14hmax=1000.
    1515ymin=numpy.min(md.mesh.y)
    1616ymax=numpy.max(md.mesh.y)
  • issm/trunk-jpl/test/Par/SquareSheetShelf.par

    r13234 r13676  
    22
    33%Geometry
    4 hmin=300;
    5 hmax=1000;
     4hmin=300.;
     5hmax=1000.;
    66ymin=min(md.mesh.y);
    77ymax=max(md.mesh.y);
     
    99md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness;
    1010bed_sheet=-md.materials.rho_ice/md.materials.rho_water*(hmax+(hmin-hmax)*(ymax/2-ymin)/(ymax-ymin));
    11 pos=find(md.mesh.y<=ymax/2);
     11pos=find(md.mesh.y<=ymax/2.);
    1212md.geometry.bed(pos)=bed_sheet;
    1313md.geometry.surface=md.geometry.bed+md.geometry.thickness;
     
    2626
    2727%Materials
    28 md.initialization.temperature=(273-20)*ones(md.mesh.numberofvertices,1);
     28md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1);
    2929md.materials.rheology_B=paterson(md.initialization.temperature);
    30 md.materials.rheology_n=3*ones(md.mesh.numberofelements,1);
     30md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
    3131
    3232%Accumulation and melting
    33 md.surfaceforcings.mass_balance=10*ones(md.mesh.numberofvertices,1);
    34 md.basalforcings.melting_rate=5*ones(md.mesh.numberofvertices,1);
     33md.surfaceforcings.mass_balance=10.*ones(md.mesh.numberofvertices,1);
     34md.basalforcings.melting_rate=5.*ones(md.mesh.numberofvertices,1);
    3535
    3636%Friction
    3737pos=find(md.mask.elementonfloatingice);
    38 md.friction.coefficient=20*ones(md.mesh.numberofvertices,1);
    39 md.friction.coefficient(md.mesh.elements(pos,:))=0;
     38md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
     39md.friction.coefficient(md.mesh.elements(pos,:))=0.;
    4040md.friction.p=ones(md.mesh.numberofelements,1);
    4141md.friction.q=ones(md.mesh.numberofelements,1);
     
    5151md.diagnostic.reltol=0.05;
    5252md.diagnostic.abstol=NaN;
    53 md.timestepping.time_step=1;
    54 md.timestepping.final_time=3;
     53md.timestepping.time_step=1.;
     54md.timestepping.final_time=3.;
    5555
    5656%Deal with boundary conditions:
Note: See TracChangeset for help on using the changeset viewer.