Changeset 19167
- Timestamp:
- 02/27/15 08:31:27 (10 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/calvinglevermann.m
r19048 r19167 7 7 properties (SetAccess=public) 8 8 stabilization = 0; 9 spclevelset = NaN; 9 10 coeff = NaN; 10 11 meltingrate = NaN; … … 30 31 end % }}} 31 32 function self = extrude(self,md) % {{{ 33 self.spclevelset=project3d(md,'vector',self.spclevelset,'type','node'); 32 34 self.coeff=project3d(md,'vector',self.coeff,'type','node'); 33 35 self.meltingrate=project3d(md,'vector',self.meltingrate,'type','node'); … … 45 47 if (solution~=TransientSolutionEnum() | md.transient.iscalving==0), return; end 46 48 49 md = checkfield(md,'fieldname','calving.spclevelset','timeseries',1); 47 50 md = checkfield(md,'fieldname','calving.stabilization','values',[0 1 2]); 48 51 md = checkfield(md,'fieldname','calving.coeff','>',0,'size',[md.mesh.numberofvertices 1]); … … 52 55 disp(sprintf(' Calving Levermann parameters:')); 53 56 fielddisplay(self,'stabilization','0: no, 1: artificial_diffusivity, 2: streamline upwinding'); 57 fielddisplay(self,'spclevelset','Levelset constraints (NaN means no constraint)'); 54 58 fielddisplay(self,'coeff','proportionality coefficient in Levermann model'); 55 59 fielddisplay(self,'meltingrate','melting rate at given location [m/a]'); … … 60 64 WriteData(fid,'enum',CalvingLawEnum(),'data',CalvingLevermannEnum(),'format','Integer'); 61 65 WriteData(fid,'enum',LevelsetStabilizationEnum(),'data',self.stabilization,'format','Integer'); 66 WriteData(fid,'enum',SpcLevelsetEnum(),'data',self.spclevelset,'format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1); 62 67 WriteData(fid,'enum',CalvinglevermannCoeffEnum(),'data',self.coeff,'format','DoubleMat','mattype',1); 63 68 WriteData(fid,'object',self,'fieldname','meltingrate','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'scale',1./yts); -
issm/trunk-jpl/src/m/classes/calvinglevermann.py
r19048 r19167 14 14 15 15 def __init__(self): # {{{ 16 16 17 self.stabilization = 0 18 self.spclevelset = float('NaN') 17 19 self.coeff = float('NaN') 18 20 self.meltingrate = float('NaN') … … 24 26 def __repr__(self): # {{{ 25 27 string=' Calving Levermann parameters:' 28 string="%s\n%s"%(string,fielddisplay(self,'spclevelset','levelset constraints (NaN means no constraint)')) 26 29 string="%s\n%s"%(string,fielddisplay(self,'stabilization','0: no, 1: artificial_diffusivity, 2: streamline upwinding')) 27 30 string="%s\n%s"%(string,fielddisplay(self,'coeff','proportionality coefficient in Levermann model')) … … 31 34 #}}} 32 35 def extrude(self,md): # {{{ 36 self.spclevelset=project3d(md,'vector',self.spclevelset,'type','node') 33 37 self.coeff=project3d(md,'vector',self.coeff,'type','node') 34 38 self.meltingrate=project3d(md,'vector',self.meltingrate,'type','node') … … 49 53 return md 50 54 55 md = checkfield(md,'fieldname','calving.spclevelset','timeseries',1) 51 56 md = checkfield(md,'fieldname','calving.stabilization','values',[0,1,2]); 52 57 md = checkfield(md,'fieldname','calving.coeff','size',[md.mesh.numberofvertices],'>',0) … … 58 63 WriteData(fid,'enum',CalvingLawEnum(),'data',CalvingLevermannEnum(),'format','Integer'); 59 64 WriteData(fid,'enum',LevelsetStabilizationEnum(),'data',self.stabilization,'format','Integer'); 65 WriteData(fid,'enum',SpcLevelsetEnum(),'data',self.spclevelset,'format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1); 60 66 WriteData(fid,'enum',CalvinglevermannCoeffEnum(),'data',self.coeff,'format','DoubleMat','mattype',1) 61 67 WriteData(fid,'object',self,'fieldname','meltingrate','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'scale',1./yts) -
issm/trunk-jpl/test/NightlyRun/test806.m
r19049 r19167 28 28 md.calving.coeff=4.89e13*ones(md.mesh.numberofvertices,1); 29 29 md.calving.meltingrate=zeros(md.mesh.numberofvertices,1); 30 md.calving.spclevelset=NaN(md.mesh.numberofvertices,1); 30 31 31 32 md.transient.requested_outputs={'default','StrainRateparallel','StrainRateperpendicular','Calvingratex','Calvingratey','CalvingCalvingrate'}; -
issm/trunk-jpl/test/NightlyRun/test806.py
r19049 r19167 27 27 md.timestepping.final_time=30 28 28 29 30 31 29 #Transient 32 30 md.transient.isstressbalance=True … … 41 39 md.calving.coeff=4.89e13*numpy.ones((md.mesh.numberofvertices,1)) 42 40 md.calving.meltingrate=numpy.zeros((md.mesh.numberofvertices,1)) 41 md.calving.spclevelset=numpy.float('NaN')*numpy.ones((md.mesh.numberofvertices,1)) 43 42 44 43 md.transient.requested_outputs=['default','StrainRateparallel','StrainRateperpendicular','Calvingratex','Calvingratey','CalvingCalvingrate'] -
issm/trunk-jpl/test/NightlyRun/test807.py
r19158 r19167 26 26 md.timestepping.time_step=10 27 27 md.timestepping.final_time=30 28 29 30 28 31 29 #Transient
Note:
See TracChangeset
for help on using the changeset viewer.