Changeset 24284


Ignore:
Timestamp:
10/28/19 15:55:28 (5 years ago)
Author:
jdquinn
Message:

CHG: Zero-filled md.slr.hydro_rate

Location:
issm/trunk-jpl/test/NightlyRun
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test2002.m

    r22979 r24284  
    11%Test Name: EarthSlr
    22
    3 %mesh earth: 
    4 md=model; 
     3%mesh earth:
     4md=model;
    55md.mesh=gmshplanet('radius',6.371012*10^3,'resolution',700.); %500 km resolution mesh
    66
     
    1515pos=find(late <-80);
    1616md.slr.deltathickness(pos)=-100;
    17 %greenland 
     17%greenland
    1818pos=find(late > 70 &  late < 80 & longe>-60 & longe<-30);
    1919md.slr.deltathickness(pos)=-100;
    2020
    21 %elastic loading from love numbers: 
     21%elastic loading from love numbers:
    2222nlov=101;
    2323md.slr.love_h = love_numbers('h','CM'); md.slr.love_h(nlov+1:end)=[];
     
    2727%}}}
    2828%mask:  {{{
    29 md.mask=maskpsl(); % use maskpsl class (instead of mask) to store the ocean function as a ocean_levelset 
    30 mask=gmtmask(md.mesh.lat,md.mesh.long); 
     29md.mask=maskpsl(); % use maskpsl class (instead of mask) to store the ocean function as a ocean_levelset
     30mask=gmtmask(md.mesh.lat,md.mesh.long);
    3131
    3232icemask=ones(md.mesh.numberofvertices,1);
     
    3939%make sure that the ice level set is all inclusive:
    4040md.mask.land_levelset=zeros(md.mesh.numberofvertices,1);
    41 md.mask.groundedice_levelset=-ones(md.mesh.numberofvertices,1); 
     41md.mask.groundedice_levelset=-ones(md.mesh.numberofvertices,1);
    4242
    4343%make sure that the elements that have loads are fully grounded:
     
    4545md.mask.groundedice_levelset(md.mesh.elements(pos,:))=1;
    4646
    47 %make sure wherever there is an ice load, that the mask is set to ice: 
    48 pos=find(md.slr.deltathickness); 
     47%make sure wherever there is an ice load, that the mask is set to ice:
     48pos=find(md.slr.deltathickness);
    4949md.mask.ice_levelset(md.mesh.elements(pos,:))=-1;
    5050% }}}
    5151
    52 md.slr.ocean_area_scaling=0; 
     52md.slr.ocean_area_scaling=0;
    5353
    5454%geometry
     
    6868md.slr.Ngia = zeros(md.mesh.numberofvertices,1);
    6969md.slr.Ugia = zeros(md.mesh.numberofvertices,1);
     70md.slr.hydro_rate = zeros(md.mesh.numberofvertices,1);
    7071
    7172%Miscellaneous
     
    7879
    7980% max number of iteration reverted back to 10 (i.e., the original default value)
    80 md.slr.maxiter=10; 
     81md.slr.maxiter=10;
    8182
    82 %eustatic run: 
     83%eustatic run:
    8384md.slr.rigid=0; md.slr.elastic=0;md.slr.rotation=0;
    8485md=solve(md,'Sealevelrise');
    8586Seustatic=md.results.SealevelriseSolution.Sealevel;
    8687
    87 %eustatic + rigid run: 
     88%eustatic + rigid run:
    8889md.slr.rigid=1; md.slr.elastic=0;md.slr.rotation=0;
    8990md=solve(md,'Sealevelrise');
    9091Srigid=md.results.SealevelriseSolution.Sealevel;
    9192
    92 %eustatic + rigid + elastic run: 
     93%eustatic + rigid + elastic run:
    9394md.slr.rigid=1; md.slr.elastic=1;md.slr.rotation=0;
    9495md=solve(md,'Sealevelrise');
    9596Selastic=md.results.SealevelriseSolution.Sealevel;
    9697
    97 %eustatic + rigid + elastic + rotation run: 
     98%eustatic + rigid + elastic + rotation run:
    9899md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=1;
    99100md=solve(md,'Sealevelrise');
  • issm/trunk-jpl/test/NightlyRun/test2002.py

    r24261 r24284  
    7979md.slr.Ngia = np.zeros((md.mesh.numberofvertices, ))
    8080md.slr.Ugia = np.zeros((md.mesh.numberofvertices, ))
     81md.slr.hydro_rate = np.zeros((md.mesh.numberofvertices, ))
    8182
    8283#Miscellaneous
  • issm/trunk-jpl/test/NightlyRun/test2003.m

    r22986 r24284  
    11%Test Name: EarthSlr_rotationalFeedback
    22
    3 %mesh earth: 
    4 md=model; 
     3%mesh earth:
     4md=model;
    55md.mesh=gmshplanet('radius',6.371012*10^3,'resolution',1000.); %500 km resolution mesh
    66
     
    1616md.slr.deltathickness(pos)=-1;
    1717
    18 %elastic loading from love numbers: 
     18%elastic loading from love numbers:
    1919nlov=1001;
    2020md.slr.love_h = love_numbers('h'); md.slr.love_h(nlov+1:end)=[];
     
    2424%}}}
    2525%mask:  {{{
    26 md.mask=maskpsl(); % use maskpsl class (instead of mask) to store the ocean function as a ocean_levelset 
    27 mask=gmtmask(md.mesh.lat,md.mesh.long); 
     26md.mask=maskpsl(); % use maskpsl class (instead of mask) to store the ocean function as a ocean_levelset
     27mask=gmtmask(md.mesh.lat,md.mesh.long);
    2828
    2929icemask=ones(md.mesh.numberofvertices,1);
     
    3636%make sure that the ice level set is all inclusive:
    3737md.mask.land_levelset=zeros(md.mesh.numberofvertices,1);
    38 md.mask.groundedice_levelset=-ones(md.mesh.numberofvertices,1); 
     38md.mask.groundedice_levelset=-ones(md.mesh.numberofvertices,1);
    3939
    4040%make sure that the elements that have loads are fully grounded:
     
    4242md.mask.groundedice_levelset(md.mesh.elements(pos,:))=1;
    4343
    44 %make sure wherever there is an ice load, that the mask is set to ice: 
     44%make sure wherever there is an ice load, that the mask is set to ice:
    4545pos=find(md.slr.deltathickness); md.mask.ice_levelset(md.mesh.elements(pos,:))=-1;
    4646% }}}
    4747
    48 % use model representation of ocea area (not the ture area) 
    49 md.slr.ocean_area_scaling = 0; 
     48% use model representation of ocea area (not the ture area)
     49md.slr.ocean_area_scaling = 0;
    5050
    5151%geometry
     
    6868md.slr.Ngia = zeros(md.mesh.numberofvertices,1);
    6969md.slr.Ugia = zeros(md.mesh.numberofvertices,1);
     70md.slr.hydro_rate = zeros(md.mesh.numberofvertices,1);
    7071
    7172%Solution parameters
     
    7475md.slr.geodetic=1;
    7576
    76 %eustatic + rigid + elastic run: 
    77 md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=0; 
     77%eustatic + rigid + elastic run:
     78md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=0;
    7879md.cluster=generic('name',oshostname(),'np',3);
    7980%md.verbose=verbose('111111111');
     
    8182SnoRotation=md.results.SealevelriseSolution.Sealevel;
    8283
    83 %eustatic + rigid + elastic + rotation run: 
     84%eustatic + rigid + elastic + rotation run:
    8485md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=1;
    8586md.cluster=generic('name',oshostname(),'np',3);
  • issm/trunk-jpl/test/NightlyRun/test2003.py

    r24261 r24284  
    8888md.slr.Ngia = np.zeros((md.mesh.numberofvertices, ))
    8989md.slr.Ugia = np.zeros((md.mesh.numberofvertices, ))
     90md.slr.hydro_rate = np.zeros((md.mesh.numberofvertices, ))
    9091
    9192#Solution parameters
  • issm/trunk-jpl/test/NightlyRun/test2010.m

    r22986 r24284  
    11%Test Name: MomentOfIntertia
    22
    3 %mesh earth: 
    4 md=model; 
     3%mesh earth:
     4md=model;
    55rad_e = 6.371012*10^3; % mean radius of Earth, km
    6 md.mesh=gmshplanet('radius',rad_e,'resolution',1000.0);  % km resolution 
     6md.mesh=gmshplanet('radius',rad_e,'resolution',1000.0);  % km resolution
    77
    88%parameterize slr solution:
     
    1717md.slr.sealevel=zeros(md.mesh.numberofvertices,1);
    1818md.slr.steric_rate=zeros(md.mesh.numberofvertices,1);
    19 md.slr.ocean_area_scaling = 1; 
     19md.slr.ocean_area_scaling = 1;
    2020
    21 %elastic loading from love numbers: 
     21%elastic loading from love numbers:
    2222nlov=1001;
    2323md.slr.love_h = love_numbers('h'); md.slr.love_h(nlov+1:end)=[];
     
    2727%}}}
    2828%mask:  {{{
    29 md.mask=maskpsl(); % use maskpsl class (instead of mask) to store the ocean function as a ocean_levelset 
    30 mask=gmtmask(md.mesh.lat,md.mesh.long); 
     29md.mask=maskpsl(); % use maskpsl class (instead of mask) to store the ocean function as a ocean_levelset
     30mask=gmtmask(md.mesh.lat,md.mesh.long);
    3131
    3232icemask=ones(md.mesh.numberofvertices,1);
     
    3939%make sure that the ice level set is all inclusive:
    4040md.mask.land_levelset=zeros(md.mesh.numberofvertices,1);
    41 md.mask.groundedice_levelset=-ones(md.mesh.numberofvertices,1); 
     41md.mask.groundedice_levelset=-ones(md.mesh.numberofvertices,1);
    4242
    4343%make sure that the elements that have loads are fully grounded:
     
    4545md.mask.groundedice_levelset(md.mesh.elements(pos,:))=1;
    4646
    47 %make sure wherever there is an ice load, that the mask is set to ice: 
     47%make sure wherever there is an ice load, that the mask is set to ice:
    4848md.mask.ice_levelset=ones(md.mesh.numberofvertices,1);
    49 pos=find(md.slr.deltathickness); 
     49pos=find(md.slr.deltathickness);
    5050md.mask.ice_levelset(md.mesh.elements(pos,:))=-1;
    5151% }}}
     
    7575md.slr.Ngia = zeros(md.mesh.numberofvertices,1);
    7676md.slr.Ugia = zeros(md.mesh.numberofvertices,1);
     77md.slr.hydro_rate = zeros(md.mesh.numberofvertices,1);
    7778
    78 %eustatic + rigid + elastic run: 
    79 md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=1; 
     79%eustatic + rigid + elastic run:
     80md.slr.rigid=1; md.slr.elastic=1; md.slr.rotation=1;
    8081md.cluster=generic('name',oshostname(),'np',3);
    8182
    82 % uncomment following 2 lines for 
     83% uncomment following 2 lines for
    8384md=solve(md,'Sealevelrise');
    8485eus=md.results.SealevelriseSolution.SealevelRSLEustatic;
    8586slr=md.results.SealevelriseSolution.Sealevel;
    86 moixz=md.results.SealevelriseSolution.SealevelInertiaTensorXZ; 
    87 moiyz=md.results.SealevelriseSolution.SealevelInertiaTensorYZ; 
    88 moizz=md.results.SealevelriseSolution.SealevelInertiaTensorZZ; 
     87moixz=md.results.SealevelriseSolution.SealevelInertiaTensorXZ;
     88moiyz=md.results.SealevelriseSolution.SealevelInertiaTensorYZ;
     89moizz=md.results.SealevelriseSolution.SealevelInertiaTensorZZ;
    8990
    9091% analytical moi => just checking FOR ICE only!!! {{{
    91 % ...have to mute ** slr induced MOI in Tria.cpp ** prior to the comparison 
    92 %rad_e = rad_e*1e3; % now in meters 
     92% ...have to mute ** slr induced MOI in Tria.cpp ** prior to the comparison
     93%rad_e = rad_e*1e3; % now in meters
    9394%areas=GetAreasSphericalTria(md.mesh.elements,md.mesh.lat,md.mesh.long,rad_e);
    94 %lat=late*pi/180; lon=longe*pi/180; 
     95%lat=late*pi/180; lon=longe*pi/180;
    9596%moi_xz = sum(-md.materials.rho_freshwater.*md.slr.deltathickness.*areas.*rad_e^2.*sin(lat).*cos(lat).*cos(lon));
    9697%moi_yz = sum(-md.materials.rho_freshwater.*md.slr.deltathickness.*areas.*rad_e^2.*sin(lat).*cos(lat).*sin(lon));
  • issm/trunk-jpl/test/NightlyRun/test2010.py

    r24261 r24284  
    9090md.slr.Ngia = np.zeros((md.mesh.numberofvertices, ))
    9191md.slr.Ugia = np.zeros((md.mesh.numberofvertices, ))
     92md.slr.hydro_rate = np.zeros((md.mesh.numberofvertices, ))
    9293
    9394#eustatic + rigid + elastic run:
Note: See TracChangeset for help on using the changeset viewer.