Changeset 24060
- Timestamp:
- 07/03/19 12:47:51 (6 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 3 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r24055 r24060 174 174 ./shared/Elements/Paterson.cpp\ 175 175 ./shared/Elements/Arrhenius.cpp\ 176 ./shared/Elements/NyeCO2.cpp\ 177 ./shared/Elements/NyeH2O.cpp\ 176 178 ./shared/Elements/LliboutryDuval.cpp \ 177 179 ./shared/Elements/PrintArrays.cpp\ -
issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp
r23697 r24060 1606 1606 element->AddInput(MaterialsRheologyBEnum,&B[0],element->GetElementType()); 1607 1607 break; 1608 case NyeH2OEnum: 1609 for(i=0;i<numnodes;i++) B[i]=NyeH2O(values[i]); 1610 element->AddInput(MaterialsRheologyBEnum,&B[0],element->GetElementType()); 1611 break; 1612 case NyeCO2Enum: 1613 for(i=0;i<numnodes;i++) B[i]=NyeCO2(values[i]); 1614 element->AddInput(MaterialsRheologyBEnum,&B[0],element->GetElementType()); 1615 break; 1608 1616 case ArrheniusEnum:{ 1609 1617 element->GetVerticesCoordinates(&xyz_list); -
issm/trunk-jpl/src/c/analyses/ThermalAnalysis.cpp
r23959 r24060 874 874 element->AddInput(MaterialsRheologyBEnum,&B[0],element->GetElementType()); 875 875 break; 876 case NyeH2OEnum: 877 for(i=0;i<numnodes;i++) B[i]=NyeH2O(values[i]); 878 element->AddInput(MaterialsRheologyBEnum,&B[0],element->GetElementType()); 879 break; 880 case NyeCO2Enum: 881 for(i=0;i<numnodes;i++) B[i]=NyeCO2(values[i]); 882 element->AddInput(MaterialsRheologyBEnum,&B[0],element->GetElementType()); 883 break; 876 884 case ArrheniusEnum:{ 877 element->GetVerticesCoordinates(&xyz_list);885 element->GetVerticesCoordinates(&xyz_list); 878 886 for(i=0;i<numnodes;i++) B[i]=Arrhenius(values[i],surface[i]-xyz_list[i*3+2],n[i]); 879 887 element->AddInput(MaterialsRheologyBEnum,&B[0],element->GetElementType()); -
issm/trunk-jpl/src/c/shared/Elements/elements.h
r23644 r24060 13 13 IssmDouble Paterson(IssmDouble temperature); 14 14 IssmDouble Arrhenius(IssmDouble temperature,IssmDouble depth,IssmDouble n); 15 IssmDouble NyeH2O(IssmDouble temperature); 16 IssmDouble NyeCO2(IssmDouble temperature); 15 17 IssmDouble LliboutryDuval(IssmDouble enthalpy, IssmDouble pressure, IssmDouble n, IssmDouble betaCC, IssmDouble referencetemperature, IssmDouble heatcapacity, IssmDouble latentheat); 16 18 // IssmDouble LliboutryDuval(IssmDouble temperature, IssmDouble waterfraction, IssmDouble depth,IssmDouble n); -
issm/trunk-jpl/src/c/shared/Enum/Enum.vim
r24049 r24060 1124 1124 syn keyword cConstant NoneEnum 1125 1125 syn keyword cConstant NumberedcostfunctionEnum 1126 syn keyword cConstant NyeCO2Enum 1127 syn keyword cConstant NyeH2OEnum 1126 1128 syn keyword cConstant NumericalfluxEnum 1127 1129 syn keyword cConstant OldGradientEnum … … 1274 1276 syn keyword cType Cfsurfacesquare 1275 1277 syn keyword cType Channel 1276 syn keyword cType classes1277 1278 syn keyword cType Constraint 1278 1279 syn keyword cType Constraints … … 1281 1282 syn keyword cType ControlInput 1282 1283 syn keyword cType Covertree 1284 syn keyword cType DataSetParam 1283 1285 syn keyword cType DatasetInput 1284 syn keyword cType DataSetParam1285 1286 syn keyword cType Definition 1286 1287 syn keyword cType DependentObject … … 1295 1296 syn keyword cType ElementHook 1296 1297 syn keyword cType ElementMatrix 1298 syn keyword cType ElementVector 1297 1299 syn keyword cType Elements 1298 syn keyword cType ElementVector1299 1300 syn keyword cType ExponentialVariogram 1300 1301 syn keyword cType ExternalResult … … 1303 1304 syn keyword cType Friction 1304 1305 syn keyword cType Gauss 1305 syn keyword cType GaussianVariogram1306 syn keyword cType gaussobjects1307 1306 syn keyword cType GaussPenta 1308 1307 syn keyword cType GaussSeg 1309 1308 syn keyword cType GaussTetra 1310 1309 syn keyword cType GaussTria 1310 syn keyword cType GaussianVariogram 1311 1311 syn keyword cType GenericExternalResult 1312 1312 syn keyword cType GenericOption … … 1323 1323 syn keyword cType IssmDirectApplicInterface 1324 1324 syn keyword cType IssmParallelDirectApplicInterface 1325 syn keyword cType krigingobjects1326 1325 syn keyword cType Load 1327 1326 syn keyword cType Loads … … 1334 1333 syn keyword cType Matice 1335 1334 syn keyword cType Matlitho 1336 syn keyword cType matrixobjects1337 1335 syn keyword cType MatrixParam 1338 1336 syn keyword cType Misfit … … 1347 1345 syn keyword cType Observations 1348 1346 syn keyword cType Option 1347 syn keyword cType OptionUtilities 1349 1348 syn keyword cType Options 1350 syn keyword cType OptionUtilities1351 1349 syn keyword cType Param 1352 1350 syn keyword cType Parameters … … 1361 1359 syn keyword cType Regionaloutput 1362 1360 syn keyword cType Results 1361 syn keyword cType RiftStruct 1363 1362 syn keyword cType Riftfront 1364 syn keyword cType RiftStruct1365 1363 syn keyword cType Seg 1366 1364 syn keyword cType SegInput 1365 syn keyword cType SegRef 1367 1366 syn keyword cType Segment 1368 syn keyword cType SegRef1369 1367 syn keyword cType SpcDynamic 1370 1368 syn keyword cType SpcStatic … … 1386 1384 syn keyword cType Vertex 1387 1385 syn keyword cType Vertices 1386 syn keyword cType classes 1387 syn keyword cType gaussobjects 1388 syn keyword cType krigingobjects 1389 syn keyword cType matrixobjects 1388 1390 syn keyword cType AdjointBalancethickness2Analysis 1389 1391 syn keyword cType AdjointBalancethicknessAnalysis … … 1394 1396 syn keyword cType BalancethicknessSoftAnalysis 1395 1397 syn keyword cType BalancevelocityAnalysis 1396 syn keyword cType DamageCalvingAnalysis1397 1398 syn keyword cType DamageEvolutionAnalysis 1398 1399 syn keyword cType DepthAverageAnalysis … … 1405 1406 syn keyword cType FreeSurfaceBaseAnalysis 1406 1407 syn keyword cType FreeSurfaceTopAnalysis 1408 syn keyword cType GLheightadvectionAnalysis 1407 1409 syn keyword cType GiaIvinsAnalysis 1408 syn keyword cType GLheightadvectionAnalysis1409 1410 syn keyword cType HydrologyDCEfficientAnalysis 1410 1411 syn keyword cType HydrologyDCInefficientAnalysis -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r24049 r24060 1122 1122 NoneEnum, 1123 1123 NumberedcostfunctionEnum, 1124 NyeCO2Enum, 1125 NyeH2OEnum, 1124 1126 NumericalfluxEnum, 1125 1127 OldGradientEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r24049 r24060 1126 1126 case NoneEnum : return "None"; 1127 1127 case NumberedcostfunctionEnum : return "Numberedcostfunction"; 1128 case NyeCO2Enum : return "NyeCO2"; 1129 case NyeH2OEnum : return "NyeH2O"; 1128 1130 case NumericalfluxEnum : return "Numericalflux"; 1129 1131 case OldGradientEnum : return "OldGradient"; -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r24049 r24060 1153 1153 else if (strcmp(name,"None")==0) return NoneEnum; 1154 1154 else if (strcmp(name,"Numberedcostfunction")==0) return NumberedcostfunctionEnum; 1155 else if (strcmp(name,"NyeCO2")==0) return NyeCO2Enum; 1156 else if (strcmp(name,"NyeH2O")==0) return NyeH2OEnum; 1155 1157 else if (strcmp(name,"Numericalflux")==0) return NumericalfluxEnum; 1156 1158 else if (strcmp(name,"OldGradient")==0) return OldGradientEnum; … … 1242 1244 else if (strcmp(name,"SubelementMigration")==0) return SubelementMigrationEnum; 1243 1245 else if (strcmp(name,"SurfaceSlopeSolution")==0) return SurfaceSlopeSolutionEnum; 1244 else if (strcmp(name,"TaylorHood")==0) return TaylorHoodEnum;1245 else if (strcmp(name,"Tetra")==0) return TetraEnum;1246 1246 else stage=11; 1247 1247 } 1248 1248 if(stage==11){ 1249 if (strcmp(name,"TetraInput")==0) return TetraInputEnum; 1249 if (strcmp(name,"TaylorHood")==0) return TaylorHoodEnum; 1250 else if (strcmp(name,"Tetra")==0) return TetraEnum; 1251 else if (strcmp(name,"TetraInput")==0) return TetraInputEnum; 1250 1252 else if (strcmp(name,"ThermalAnalysis")==0) return ThermalAnalysisEnum; 1251 1253 else if (strcmp(name,"ThermalSolution")==0) return ThermalSolutionEnum; -
issm/trunk-jpl/src/m/classes/materials.m
r23005 r24060 153 153 fielddisplay(self,'rheology_B','flow law parameter [Pa s^(1/n)]'); 154 154 fielddisplay(self,'rheology_n','Glen''s flow law exponent'); 155 fielddisplay(self,'rheology_law',['law for the temperature dependance of the rheology: ''None'', ''BuddJacka'', Cuffey'', ''CuffeyTemperate'', ''Paterson'', ''Arrhenius'' or ''LliboutryDuval''']);155 fielddisplay(self,'rheology_law',['law for the temperature dependance of the rheology: ''None'', ''BuddJacka'', Cuffey'', ''CuffeyTemperate'', ''Paterson'', ''Arrhenius'', ''LliboutryDuval'', ''NyeCO2'', or ''NyeH2O''']); 156 156 case 'litho' 157 157 disp(sprintf(' \nLitho:')); … … 183 183 md = checkfield(md,'fieldname','materials.rheology_B','>',0,'timeseries',1,'NaN',1,'Inf',1); 184 184 md = checkfield(md,'fieldname','materials.rheology_n','>',0,'size',[md.mesh.numberofelements 1]); 185 md = checkfield(md,'fieldname','materials.rheology_law','values',{'None' 'BuddJacka' 'Cuffey' 'CuffeyTemperate' 'Paterson' 'Arrhenius' 'LliboutryDuval' });185 md = checkfield(md,'fieldname','materials.rheology_law','values',{'None' 'BuddJacka' 'Cuffey' 'CuffeyTemperate' 'Paterson' 'Arrhenius' 'LliboutryDuval' 'NyeCO2' 'NyeH2O'}); 186 186 case 'litho' 187 187 if ~ismember('LoveAnalysis',analyses), return; end -
issm/trunk-jpl/src/m/classes/matice.m
r23702 r24060 118 118 md = checkfield(md,'fieldname','materials.rheology_B','>',0,'timeseries',1,'NaN',1,'Inf',1); 119 119 md = checkfield(md,'fieldname','materials.rheology_n','>',0,'size',[md.mesh.numberofelements 1]); 120 md = checkfield(md,'fieldname','materials.rheology_law','values',{'None' 'BuddJacka' 'Cuffey' 'CuffeyTemperate' 'Paterson' 'Arrhenius' 'LliboutryDuval' });120 md = checkfield(md,'fieldname','materials.rheology_law','values',{'None' 'BuddJacka' 'Cuffey' 'CuffeyTemperate' 'Paterson' 'Arrhenius' 'LliboutryDuval' 'NyeCO2' 'NyeH2O'}); 121 121 md = checkfield(md,'fieldname','materials.effectiveconductivity_averaging','numel',[1],'values',[0 1 2]); 122 122 … … 150 150 fielddisplay(self,'rheology_B','flow law parameter [Pa s^(1/n)]'); 151 151 fielddisplay(self,'rheology_n','Glen''s flow law exponent'); 152 fielddisplay(self,'rheology_law',['law for the temperature dependance of the rheology: ''None'', ''BuddJacka'', Cuffey'', ''CuffeyTemperate'', ''Paterson'', ''Arrhenius'' or ''LliboutryDuval''']);152 fielddisplay(self,'rheology_law',['law for the temperature dependance of the rheology: ''None'', ''BuddJacka'', Cuffey'', ''CuffeyTemperate'', ''Paterson'', ''Arrhenius'', ''LliboutryDuval'', ''NyeH2O'', or ''NyeCO2''']); 153 153 fielddisplay(self,'lithosphere_shear_modulus','Lithosphere shear modulus [Pa]'); 154 154 fielddisplay(self,'lithosphere_density','Lithosphere density [g/cm^-3]');
Note:
See TracChangeset
for help on using the changeset viewer.