Ignore:
Timestamp:
05/31/19 11:17:36 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added neumann flux for hydro model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/hydrologyglads.m

    r23955 r23969  
    1919                %Other
    2020                spcphi               = NaN;
     21                moulin_input         = NaN;
     22                neumannflux          = NaN;
    2123                englacial_void_ratio = 0.;
    22                 moulin_input         = NaN;
    2324                requested_outputs    = {};
    2425        end
     
    7576                        md = checkfield(md,'fieldname','hydrology.englacial_void_ratio','numel',[1],'>=',0);
    7677                        md = checkfield(md,'fieldname','hydrology.moulin_input','size',[md.mesh.numberofvertices 1],'>=',0,'NaN',1,'Inf',1);
     78                        md = checkfield(md,'fieldname','hydrology.neumannflux','timeseries',1,'NaN',1,'Inf',1);
    7779                        md = checkfield(md,'fieldname','hydrology.requested_outputs','stringrow',1);
    7880                end % }}}
     
    8991                        disp(sprintf('      OTHER'));
    9092                        fielddisplay(self,'spcphi','Hydraulic potential Dirichlet constraints [Pa]');
     93                        fielddisplay(self,'neumannflux','water flux applied along the model boundary (m^2/s)');
     94                        fielddisplay(self,'moulin_input','moulin input (Q_s) [m^3/s]');
    9195                        fielddisplay(self,'englacial_void_ratio','englacial void ratio (e_v)');
    92                         fielddisplay(self,'moulin_input','moulin input (Q_s) [m^3/s]');
    9396                        fielddisplay(self,'requested_outputs','additional outputs requested');
    9497                end % }}}
     
    113116                        %Others
    114117                        WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','spcphi','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     118                        WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','neumannflux','format','DoubleMat','mattype',2,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts);
     119                        WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','moulin_input','format','DoubleMat','mattype',1);
    115120                        WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','englacial_void_ratio','format','Double');
    116                         WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','moulin_input','format','DoubleMat','mattype',1);
    117121                        outputs = self.requested_outputs;
    118122                        pos  = find(ismember(outputs,'default'));
Note: See TracChangeset for help on using the changeset viewer.