Ignore:
Timestamp:
02/10/17 10:32:55 (8 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added Higher order finite elements for enthalpy

File:
1 edited

Legend:

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

    r21049 r21542  
    1515                isenthalpy        = 0;
    1616                isdynamicbasalspc = 0;
     17                fe                = 'P1';
    1718                requested_outputs = {};
    1819        end
     
    6667                        self.isdynamicbasalspc=0;
    6768
     69                        %Linear elements by default
     70                        self.fe='P1';
     71
    6872                        %default output
    6973                        self.requested_outputs={'default'};
     
    7680                        md = checkfield(md,'fieldname','thermal.stabilization','numel',[1],'values',[0 1 2]);
    7781                        md = checkfield(md,'fieldname','thermal.spctemperature','Inf',1,'timeseries',1,'>=',0);
     82                        md = checkfield(md,'fieldname','thermal.fe','values',{'P1','P1xP2'});
    7883                        if (ismember('EnthalpyAnalysis',analyses) & md.thermal.isenthalpy & dimension(md.mesh)==3),
    7984
     
    110115                        fielddisplay(self,'isenthalpy','use an enthalpy formulation to include temperate ice (default is 0)');
    111116                        fielddisplay(self,'isdynamicbasalspc',['enable dynamic setting of basal forcing. required for enthalpy formulation (default is 0)']);
     117                        fielddisplay(self,'fe','Finite Element type: ''P1'' (default), ''P1xP2''');
    112118                        fielddisplay(self,'requested_outputs','additional outputs requested');
    113119
     
    122128                        WriteData(fid,prefix,'object',self,'fieldname','penalty_factor','format','Double');
    123129                        WriteData(fid,prefix,'object',self,'fieldname','isenthalpy','format','Boolean');
     130                        WriteData(fid,prefix,'object',self,'fieldname','fe','format','String');
    124131                        WriteData(fid,prefix,'object',self,'fieldname','isdynamicbasalspc','format','Boolean');
    125132
Note: See TracChangeset for help on using the changeset viewer.