Changeset 1040


Ignore:
Timestamp:
06/22/09 12:16:30 (15 years ago)
Author:
seroussi
Message:

pressure corrected for transient

Location:
issm/trunk/src/m/solutions/ice
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/ice/ModelProcessorDiagnosticVert.m

    r1024 r1040  
    9090grids(pos)=SetStructureField(grids(pos),'grid','z',md.z(pos));
    9191grids(pos)=SetStructureField(grids(pos),'grid','s',(md.z(pos)-md.bed(pos))./md.thickness(pos));
     92grids(pos)=SetStructureField(grids(pos),'grid','surface',md.surface(pos));
    9293grids(pos)=SetStructureField(grids(pos),'grid','onbed',md.gridonbed(pos));
    9394grids(pos)=SetStructureField(grids(pos),'grid','border',bordergrids(pos));
  • issm/trunk/src/m/solutions/ice/ModelProcessorMelting.m

    r1024 r1040  
    8787grids(pos)=SetStructureField(grids(pos),'grid','z',md.z(pos));
    8888grids(pos)=SetStructureField(grids(pos),'grid','s',(md.z(pos)-md.bed(pos))./md.thickness(pos));
     89grids(pos)=SetStructureField(grids(pos),'grid','surface',md.surface(pos));
    8990grids(pos)=SetStructureField(grids(pos),'grid','onbed',md.gridonbed(pos));
    9091grids(pos)=SetStructureField(grids(pos),'grid','border',bordergrids(pos));
  • issm/trunk/src/m/solutions/ice/ModelProcessorPrognostic.m

    r1024 r1040  
    8080grids(pos)=SetStructureField(grids(pos),'grid','z',md.z(pos));
    8181grids(pos)=SetStructureField(grids(pos),'grid','s',(md.z(pos)-md.bed(pos))./md.thickness(pos));
     82grids(pos)=SetStructureField(grids(pos),'grid','surface',md.surface(pos));
    8283grids(pos)=SetStructureField(grids(pos),'grid','onbed',md.gridonbed(pos));
    8384grids(pos)=SetStructureField(grids(pos),'grid','border',bordergrids(pos));
  • issm/trunk/src/m/solutions/ice/ModelProcessorSlopeCompute.m

    r1024 r1040  
    8080grids(pos)=SetStructureField(grids(pos),'grid','z',md.z(pos));
    8181grids(pos)=SetStructureField(grids(pos),'grid','s',(md.z(pos)-md.bed(pos))./md.thickness(pos));
     82grids(pos)=SetStructureField(grids(pos),'grid','surface',md.surface(pos));
    8283grids(pos)=SetStructureField(grids(pos),'grid','onbed',md.gridonbed(pos));
    8384grids(pos)=SetStructureField(grids(pos),'grid','border',bordergrids(pos));
  • issm/trunk/src/m/solutions/ice/ModelProcessorThermal.m

    r1024 r1040  
    104104grids(pos)=SetStructureField(grids(pos),'grid','z',md.z(pos));
    105105grids(pos)=SetStructureField(grids(pos),'grid','s',(md.z(pos)-md.bed(pos))./md.thickness(pos));
     106grids(pos)=SetStructureField(grids(pos),'grid','surface',md.surface(pos));
    106107grids(pos)=SetStructureField(grids(pos),'grid','onbed',md.gridonbed(pos));
    107108grids(pos)=SetStructureField(grids(pos),'grid','border',bordergrids(pos));
  • issm/trunk/src/m/solutions/ice/UpdateGridPosition.m

    r1024 r1040  
    1414        for j=1:size(count,1),
    1515                grids(count(j)).grid.z=bed(count(j))+grids(count(j)).grid.s*thickness(count(j));
     16                grids(count(j)).grid.surface=bed(count(j))+thickness(count(j));
    1617        end
    1718end
  • issm/trunk/src/m/solutions/ice/diagnostic3d.m

    r648 r1040  
    8080
    8181%Computation of pressure with Pattyn's assumptions (P=rho_ice*g*(s-z) in Pa)
    82 u_g(4:6:m_dv.gridset.gsize)=md.rho_ice*md.g*(md.surface-md.z)/md.stokesreconditioning;
     82pressure=zeros(length(fem.m_dv.grids),1);
     83for i=1:length(fem.m_dv.grids),
     84        pressure(i)=md.rho_ice*md.g*(fem.m_dv.grids(i).grid.surface-fem.m_dv.grids(i).grid.z)/md.stokesreconditioning;
     85end
     86        u_g(4:6:m_dv.gridset.gsize)=pressure;
    8387
    8488if fem.isstokes,
Note: See TracChangeset for help on using the changeset viewer.