Changeset 1299
- Timestamp:
- 07/13/09 09:05:39 (16 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/@pentaelem/Stress.m
r1 r1299 80 80 81 81 %Build Pressure 82 if elementonstokes_param(pentaelem.id)== stokesenum();82 if elementonstokes_param(pentaelem.id)==StokesEnum(); 83 83 pressure_g=GetParameterValue(pentaelem,pressure,gauss_coord); 84 84 else %use pattyn's and MacAyeal's assumption: P=sigma_zz'+rho_ice*g*(s-z) -
issm/trunk/src/m/classes/@pentaelem/StressBed.m
r1 r1299 84 84 85 85 %Build Pressure 86 if elementonstokes_param(pentaelem.id)== stokesenum(),86 if elementonstokes_param(pentaelem.id)==StokesEnum(), 87 87 pressure_g=GetParameterValue(pentaelem,pressure,gauss_coord); 88 88 else %use pattyn's and MacAyeal's assumption: P=sigma_zz'+rho_ice*g*(s-z) -
issm/trunk/src/m/classes/@pentaelem/StressSurface.m
r1 r1299 84 84 85 85 %Build Pressure 86 if elementonstokes_param(pentaelem.id)== stokesenum(),86 if elementonstokes_param(pentaelem.id)==StokesEnum(), 87 87 pressure_g=GetParameterValue(pentaelem,pressure,gauss_coord); 88 88 else %use pattyn's and MacAyeal's assumption: P=sigma_zz'+rho_ice*g*(s-z) -
issm/trunk/src/m/solutions/cielo/SpawnCore.m
r963 r1299 45 45 46 46 %now run the core solution 47 if analysis_type== diagnosticenum(),47 if analysis_type==DiagnosticAnalysisEnum(), 48 48 49 49 results=diagnostic_core(models,inputs); -
issm/trunk/src/m/solutions/cielo/thermal_core.m
r979 r1299 9 9 m_m=models.m; 10 10 11 if m_t.parameters.sub_analysis_type== steadyenum,11 if m_t.parameters.sub_analysis_type==SteadyAnalysisEnum(), 12 12 13 13 results.time=0; -
issm/trunk/src/m/solutions/ice/ModelProcessorDiagnosticHoriz.m
r1024 r1299 24 24 %Allocate grids and elements 25 25 if strcmpi(md.type,'2d'), 26 numberofelements_horiz=length(find(md.elements_type(:,1)== macayealenum()));27 else 28 numberofelements_horiz=length(find(md.elements_type(:,1)== macayealenum() | md.elements_type(:,1)==pattynenum()));26 numberofelements_horiz=length(find(md.elements_type(:,1)==MacAyealEnum())); 27 else 28 numberofelements_horiz=length(find(md.elements_type(:,1)==MacAyealEnum() | md.elements_type(:,1)==PattynEnum())); 29 29 end 30 30 elements=struct('element',cell(numberofelements_horiz,1)); … … 34 34 %Deal with 2d elements 35 35 if strcmpi(md.type,'2d'), 36 el3pos=find((md.elements_type(:,1)== macayealenum()) & (element_partitioning==labindex));36 el3pos=find((md.elements_type(:,1)==MacAyealEnum()) & (element_partitioning==labindex)); 37 37 if ~isempty(el3pos), 38 38 pos=[1:length(el3pos)]'; … … 66 66 %3d elements 67 67 %First create penta elements (ie non hutter) 68 el6pos=find((md.elements_type(:,1)== macayealenum() | md.elements_type(:,1)==pattynenum()) & (element_partitioning==labindex));68 el6pos=find((md.elements_type(:,1)==MacAyealEnum() | md.elements_type(:,1)==PattynEnum()) & (element_partitioning==labindex)); 69 69 70 70 if ~isempty(el6pos), … … 99 99 %For penta elements where we want to implement MacAyeal's element, we need to collapse 100 100 %the formulation into trias: 101 pos=find(ismember(el6pos,find(md.elements_type(:,1)== macayealenum())));101 pos=find(ismember(el6pos,find(md.elements_type(:,1)==MacAyealEnum()))); 102 102 elements(pos)=SetStructureField(elements(pos),'element','collapse',ones(length(pos),1)); 103 103 … … 167 167 if strcmpi(md.type,'3d'), 168 168 for n=1:length(elements), 169 if md.elements_type(el6pos(n),1)== macayealenum(),169 if md.elements_type(el6pos(n),1)==MacAyealEnum(), 170 170 %all dofs associated to this element are frozen, except if the element is on the bed, and acts as a 'fake' pentaelem, 171 171 %and a true 'macayeal' tria element. … … 195 195 196 196 if strcmpi(md.type,'3d'), 197 if md.elements_type(md.segmentonneumann_diag(i,end))== macayealenum(),197 if md.elements_type(md.segmentonneumann_diag(i,end))==MacAyealEnum(), 198 198 loads(i).load=icefront; 199 199 loads(i).load.eid=find(el6pos==md.segmentonneumann_diag(i,end)); … … 203 203 loads(i).load.type='segment'; 204 204 205 elseif md.elements_type(md.segmentonneumann_diag(i,end))== pattynenum(),205 elseif md.elements_type(md.segmentonneumann_diag(i,end))==PattynEnum(), 206 206 %build a quad ice front for the penta element 207 207 loads(i).load=icefront; … … 214 214 215 215 else 216 if ~(md.elements_type(md.segmentonneumann_diag(i,end))== hutterenum()),216 if ~(md.elements_type(md.segmentonneumann_diag(i,end))==HutterEnum()), 217 217 error('diagnostic error message: unsupported element type'); 218 218 end 219 219 end 220 220 else 221 if md.elements_type(md.segmentonneumann_diag(i,end))== macayealenum(),221 if md.elements_type(md.segmentonneumann_diag(i,end))==MacAyealEnum(), 222 222 loads(i).load=icefront; 223 223 loads(i).load.eid=find(el3pos==md.segmentonneumann_diag(i,end)); … … 228 228 229 229 else 230 if ~(md.elements_type(md.segmentonneumann_diag(i,end))== hutterenum()),230 if ~(md.elements_type(md.segmentonneumann_diag(i,end))==HutterEnum()), 231 231 error('diagnostic error message: unsupported element type'); 232 232 end -
issm/trunk/src/m/solutions/ice/ModelProcessorDiagnosticStokes.m
r1024 r1299 23 23 24 24 %Allocate grids and elements 25 numberofstokeselements=size(find(md.elements_type(:,2)== stokesenum()),1);25 numberofstokeselements=size(find(md.elements_type(:,2)==StokesEnum()),1); 26 26 elements=struct('element',cell(numberofstokeselements,1)); 27 27 materials=struct('material',cell(numberofstokeselements+1,1)); … … 30 30 %3d elements 31 31 %pos=find(element_partitioning==labindex); 32 pos=find(md.elements_type(:,2)== stokesenum());32 pos=find(md.elements_type(:,2)==StokesEnum()); 33 33 stokesnewnumber=[1:numberofstokeselements]'; 34 34 [elements(stokesnewnumber).element]=deal(pentaelem); … … 116 116 %Build grids on the border of stokes 117 117 %Get border grids 118 stokes_elements=find(md.elements_type(:,2)== stokesenum()); %find the elements on the stokes domain118 stokes_elements=find(md.elements_type(:,2)==StokesEnum()); %find the elements on the stokes domain 119 119 borderflags=zeros(md.numberofgrids,1); 120 120 borderflags(md.elements(stokes_elements,:))=1; %find all the grids of the elements on stokes domain, ie stokes grids and borderstokes … … 146 146 %build a quad ice front for the penta element 147 147 loads(i).load=icefront; 148 loads(i).load.eid=find(segmentonneumann_diag_stokes(i,end)==find(md.elements_type(:,2)== stokesenum())); %elements contain only stokes elements, so we have to renumbered148 loads(i).load.eid=find(segmentonneumann_diag_stokes(i,end)==find(md.elements_type(:,2)==StokesEnum())); %elements contain only stokes elements, so we have to renumbered 149 149 loads(i).load.g(1)=segmentonneumann_diag_stokes(i,1); 150 150 loads(i).load.g(2)=segmentonneumann_diag_stokes(i,2); -
issm/trunk/src/m/solutions/ice/ModelProcessorThermal.m
r1040 r1299 51 51 %For penta elements where we want to implement MacAyeal's element, we need to collapse 52 52 %the formulation into trias: 53 el6pos=find((md.elements_type(:,1)== macayealenum() | md.elements_type(:,1)==pattynenum()) & (element_partitioning==labindex));54 pos2=find(ismember(el6pos,find(md.elements_type(:,1)== macayealenum())));53 el6pos=find((md.elements_type(:,1)==MacAyealEnum() | md.elements_type(:,1)==PattynEnum()) & (element_partitioning==labindex)); 54 pos2=find(ismember(el6pos,find(md.elements_type(:,1)==MacAyealEnum()))); 55 55 elements(pos2)=SetStructureField(elements(pos2),'element','collapse',ones(length(pos2),1)); 56 56
Note:
See TracChangeset
for help on using the changeset viewer.