Changeset 20746


Ignore:
Timestamp:
06/15/16 19:08:16 (9 years ago)
Author:
schlegel
Message:

CHG: update to be consistent with Greenland par files

Location:
issm/trunk-jpl/examples/IceBridge
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/examples/IceBridge/Greenland.par

    r20743 r20746  
    2626md.geometry.thickness(pos0)=1;
    2727md.geometry.surface=md.geometry.thickness+md.geometry.base;
     28
     29%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     30%Reading IceBridge data for Jakobshavn
     31disp('      reading IceBridge Jakobshavn bedrock');
     32fid  = fopen('../Data/Jakobshavn_2008_2011_Composite_XYZGrid.txt');
     33titles = fgets(fid);
     34data = fscanf(fid,'%g,%g,%g,%g,%g',[5 266400])';
     35fclose(fid);
     36
     37[xi,yi]= ll2xy(md.mesh.lat,md.mesh.long,+1,45,70);
     38bed  = flipud(reshape(data(:,5),[360 740])); bed(find(bed==-9999))=NaN;
     39bedy = flipud(reshape(data(:,1),[360 740]));
     40bedx = flipud(reshape(data(:,2),[360 740]));
     41
     42%Insert Icebridge bed and recalculate thickness
     43bed_jks=InterpFromGridToMesh(bedx(1,:)',bedy(:,1),bed,xi,yi,NaN);
     44in=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,...
     45           'Jak_grounded.exp','node',1);
     46bed_jks(~in)=NaN;
     47pos=find(~isnan(bed_jks));
     48md.geometry.base(pos)=bed_jks(pos);
     49md.geometry.thickness=md.geometry.surface-md.geometry.base;
     50%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    2851
    2952disp('   Interpolating velocities ');
     
    5881disp('   Set other boundary conditions');
    5982md.mask.ice_levelset(md.mesh.vertexonboundary==1)=0;
     83md.basalforcings.groundedice_melting_rate = zeros(md.mesh.numberofvertices,1);
    6084md.basalforcings.floatingice_melting_rate = zeros(md.mesh.numberofvertices,1);
    61 md.basalforcings.groundedice_melting_rate = zeros(md.mesh.numberofvertices,1);
    6285md.thermal.spctemperature     = [md.initialization.temperature;1]; %impose observed temperature on surface
    6386md.masstransport.spcthickness    = NaN*ones(md.mesh.numberofvertices,1);
     
    7093
    7194disp('   Single point constraints');
    72 %Initialize single point constraint arrarys
     95%Initialize single point constraint arrays
    7396md.stressbalance.referential=NaN*ones(md.mesh.numberofvertices,6);
    7497md.stressbalance.spcvx = NaN*ones(md.mesh.numberofvertices,1);
    7598md.stressbalance.spcvy = NaN*ones(md.mesh.numberofvertices,1);
    7699md.stressbalance.spcvz = NaN*ones(md.mesh.numberofvertices,1);
    77 
  • issm/trunk-jpl/examples/IceBridge/Greenland_solution.par

    r20743 r20746  
    1 %Name and hemisphere
     1%Name and Coordinate system
    22md.miscellaneous.name='SeaRISEgreenland';
    3 
     3md.mesh.epsg=3413;
    44
    55disp('   Loading SeaRISE data from NetCDF');
     
    3131disp('      reading IceBridge Jakobshavn bedrock');
    3232fid  = fopen('../Data/Jakobshavn_2008_2011_Composite_XYZGrid.txt');
    33 titles = fgets(fid); data = fscanf(fid,'%g,%g,%g,%g,%g',[5 266400])';
     33titles = fgets(fid);
     34data = fscanf(fid,'%g,%g,%g,%g,%g',[5 266400])';
    3435fclose(fid);
    3536
     
    4445surf_jks=InterpFromGridToMesh(bedx(1,:)',bedy(:,1),surf,xi,yi,NaN);
    4546in=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,...
    46         'Jak_grounded.exp','node',1);
     47           'Jak_grounded.exp','node',1);
    4748bed_jks(~in)=NaN;
    4849surf_jks(~in)=NaN;
     
    6667
    6768disp('   Interpolating surface mass balance');
    68 md.surfaceforcings.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0);
    69 md.surfaceforcings.mass_balance=md.surfaceforcings.mass_balance*md.materials.rho_water/md.materials.rho_ice;
     69md.smb.mass_balance=InterpFromGridToMesh(x1,y1,smb,md.mesh.x,md.mesh.y,0);
     70md.smb.mass_balance=md.smb.mass_balance*md.materials.rho_water/md.materials.rho_ice;
    7071
    7172disp('   Construct basal friction parameters');
     
    8485disp('   Set other boundary conditions');
    8586md.mask.ice_levelset(md.mesh.vertexonboundary==1)=0;
    86 md.basalforcings.melting_rate = zeros(md.mesh.numberofvertices,1);
     87md.basalforcings.groundedice_melting_rate = zeros(md.mesh.numberofvertices,1);
     88md.basalforcings.floatingice_melting_rate = zeros(md.mesh.numberofvertices,1);
    8789md.thermal.spctemperature     = [md.initialization.temperature;1]; %impose observed temperature on surface
    8890md.masstransport.spcthickness    = NaN*ones(md.mesh.numberofvertices,1);
     
    9496md.initialization.pressure=md.materials.rho_ice*md.constants.g*md.geometry.thickness;
    9597
    96 disp('   Single point constraint for continental model');
    97 %Set at least one vertex to velocity 0 so as to not get a singular problem (point on the wet peninsula)
     98disp('   Single point constraints');
     99%Initialize single point constraint arrays
    98100md.stressbalance.referential=NaN*ones(md.mesh.numberofvertices,6);
    99101md.stressbalance.spcvx = NaN*ones(md.mesh.numberofvertices,1);
    100102md.stressbalance.spcvy = NaN*ones(md.mesh.numberofvertices,1);
    101103md.stressbalance.spcvz = NaN*ones(md.mesh.numberofvertices,1);
    102 location = 1.0e+06 *[.32011 -2.2039];
    103 [dist pos]=min(sqrt((md.mesh.x - location(1)).^2 + (md.mesh.y - location(2)).^2));
    104 md.stressbalance.spcvx(pos) = 0;
    105 md.stressbalance.spcvy(pos) = 0;
    106 md.stressbalance.spcvz(pos) = 0;
    107 
Note: See TracChangeset for help on using the changeset viewer.