Changeset 10565
- Timestamp:
- 11/10/11 08:27:02 (13 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 4 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/EnumDefinitions/EnumDefinitions.h
r10523 r10565 100 100 MaterialsRhoIceEnum, 101 101 MaterialsRhoWaterEnum, 102 MaterialsMuWaterEnum, 102 103 MaterialsThermalExchangeVelocityEnum, 103 104 MaterialsThermalconductivityEnum, -
issm/trunk/src/c/modules/EnumToStringx/EnumToStringx.cpp
r10521 r10565 104 104 case MaterialsRhoIceEnum : return "MaterialsRhoIce"; 105 105 case MaterialsRhoWaterEnum : return "MaterialsRhoWater"; 106 case MaterialsMuWaterEnum : return "MaterialsMuWater"; 106 107 case MaterialsThermalExchangeVelocityEnum : return "MaterialsThermalExchangeVelocity"; 107 108 case MaterialsThermalconductivityEnum : return "MaterialsThermalconductivity"; … … 418 419 case BilinearInterpEnum : return "BilinearInterp"; 419 420 case NearestInterpEnum : return "NearestInterp"; 421 case XYEnum : return "XY"; 422 case XYZPEnum : return "XYZP"; 420 423 case OptionEnum : return "Option"; 421 424 case OptionCellEnum : return "OptionCell"; -
issm/trunk/src/c/modules/StringToEnumx/StringToEnumx.cpp
r10521 r10565 102 102 else if (strcmp(name,"MaterialsRhoIce")==0) return MaterialsRhoIceEnum; 103 103 else if (strcmp(name,"MaterialsRhoWater")==0) return MaterialsRhoWaterEnum; 104 else if (strcmp(name,"MaterialsMuWater")==0) return MaterialsMuWaterEnum; 104 105 else if (strcmp(name,"MaterialsThermalExchangeVelocity")==0) return MaterialsThermalExchangeVelocityEnum; 105 106 else if (strcmp(name,"MaterialsThermalconductivity")==0) return MaterialsThermalconductivityEnum; … … 416 417 else if (strcmp(name,"BilinearInterp")==0) return BilinearInterpEnum; 417 418 else if (strcmp(name,"NearestInterp")==0) return NearestInterpEnum; 419 else if (strcmp(name,"XY")==0) return XYEnum; 420 else if (strcmp(name,"XYZP")==0) return XYZPEnum; 418 421 else if (strcmp(name,"Option")==0) return OptionEnum; 419 422 else if (strcmp(name,"OptionCell")==0) return OptionCellEnum; -
issm/trunk/src/c/objects/Elements/Tria.cpp
r10556 r10565 4602 4602 4603 4603 /*material parameters: */ 4604 double mu_water =0.001787; //unit= [N s/m2]4604 double mu_water; 4605 4605 double VelocityFactor; // This factor represents the number 12 in laminar flow velocity which can vary by differnt hydrology.CR 4606 4606 double n_man,CR; … … 4618 4618 CR=matpar->GetHydrologyCR(); // To have Lebrocq equavalent equation: CR=0.01,n_man=0.02 4619 4619 n_man=matpar->GetHydrologyN(); 4620 mu_water=matpar->GetMuWater(); 4620 4621 Input* surfaceslopex_input=inputs->GetInput(SurfaceSlopeXEnum); _assert_(surfaceslopex_input); 4621 4622 Input* surfaceslopey_input=inputs->GetInput(SurfaceSlopeYEnum); _assert_(surfaceslopey_input); … … 4626 4627 /* compute VelocityFactor */ 4627 4628 VelocityFactor= n_man*pow(CR,2)*rho_water*g/mu_water; 4628 4629 4629 4630 gauss=new GaussTria(); 4630 4631 for (int iv=0;iv<NUMVERTICES;iv++){ -
issm/trunk/src/c/objects/Materials/Matpar.cpp
r9883 r10565 28 28 iomodel->Constant(&this->rho_ice,MaterialsRhoIceEnum); 29 29 iomodel->Constant(&this->rho_water,MaterialsRhoWaterEnum); 30 iomodel->Constant(&this->mu_water,MaterialsMuWaterEnum); 30 31 iomodel->Constant(&this->heatcapacity,MaterialsHeatcapacityEnum); 31 32 iomodel->Constant(&this->thermalconductivity,MaterialsThermalconductivityEnum); … … 59 60 printf(" rho_ice: %g\n",rho_ice); 60 61 printf(" rho_water: %g\n",rho_water); 62 printf(" mu_water: %g\n",mu_water); 61 63 printf(" heatcapacity: %g\n",heatcapacity); 62 64 printf(" thermalconductivity: %g\n",thermalconductivity); … … 78 80 printf(" rho_ice: %g\n",rho_ice); 79 81 printf(" rho_water: %g\n",rho_water); 82 printf(" mu_water: %g\n",mu_water); 80 83 printf(" heatcapacity: %g\n",heatcapacity); 81 84 printf(" thermalconductivity: %g\n",thermalconductivity); … … 119 122 memcpy(marshalled_dataset,&rho_ice,sizeof(rho_ice));marshalled_dataset+=sizeof(rho_ice); 120 123 memcpy(marshalled_dataset,&rho_water,sizeof(rho_water));marshalled_dataset+=sizeof(rho_water); 124 memcpy(marshalled_dataset,&mu_water,sizeof(mu_water));marshalled_dataset+=sizeof(mu_water); 121 125 memcpy(marshalled_dataset,&heatcapacity,sizeof(heatcapacity));marshalled_dataset+=sizeof(heatcapacity); 122 126 memcpy(marshalled_dataset,&thermalconductivity,sizeof(thermalconductivity));marshalled_dataset+=sizeof(thermalconductivity); … … 139 143 sizeof(rho_ice)+ 140 144 sizeof(rho_water)+ 145 sizeof(mu_water)+ 141 146 sizeof(heatcapacity)+ 142 147 sizeof(thermalconductivity)+ … … 165 170 memcpy(&rho_ice,marshalled_dataset,sizeof(rho_ice));marshalled_dataset+=sizeof(rho_ice); 166 171 memcpy(&rho_water,marshalled_dataset,sizeof(rho_water));marshalled_dataset+=sizeof(rho_water); 172 memcpy(&mu_water,marshalled_dataset,sizeof(mu_water));marshalled_dataset+=sizeof(mu_water); 167 173 memcpy(&heatcapacity,marshalled_dataset,sizeof(heatcapacity));marshalled_dataset+=sizeof(heatcapacity); 168 174 memcpy(&thermalconductivity,marshalled_dataset,sizeof(thermalconductivity));marshalled_dataset+=sizeof(thermalconductivity); … … 237 243 break; 238 244 245 case MaterialsMuWaterEnum: 246 this->mu_water=constant; 247 break; 248 239 249 case MaterialsHeatcapacityEnum: 240 250 this->heatcapacity=constant; … … 347 357 double Matpar::GetRhoWater(){ 348 358 return rho_water; 359 } 360 /*}}}1*/ 361 /*FUNCTION Matpar::GetMuWater {{{1*/ 362 double Matpar::GetMuWater(){ 363 return mu_water; 349 364 } 350 365 /*}}}1*/ -
issm/trunk/src/c/objects/Materials/Matpar.h
r9883 r10565 18 18 double rho_ice; 19 19 double rho_water; 20 double mu_water; 20 21 double heatcapacity; 21 22 double thermalconductivity; … … 75 76 double GetRhoIce(); 76 77 double GetRhoWater(); 78 double GetMuWater(); 77 79 double GetMixedLayerCapacity(); 78 80 double GetThermalExchangeVelocity(); -
issm/trunk/src/m/classes/hydrology.m
r10538 r10565 41 41 %Parameters from Johnson's 2002 thesis, section 3.5.4 42 42 obj.n=.02; 43 obj.CR= 2;43 obj.CR=.01; 44 44 obj.p=2; 45 45 obj.q=1; -
issm/trunk/src/m/classes/materials.m
r9862 r10565 8 8 rho_ice = modelfield('default',0,'marshall',true,'format','Double'); 9 9 rho_water = modelfield('default',0,'marshall',true,'format','Double'); 10 mu_water = modelfield('default',0,'marshall',true,'format','Double'); 10 11 heatcapacity = modelfield('default',0,'marshall',true,'format','Double'); 11 12 latentheat = modelfield('default',0,'marshall',true,'format','Double'); … … 50 51 obj.rho_water=1023; 51 52 53 %water viscosity (N.s/m^2) 54 obj.mu_water=0.001787; 55 52 56 %ice heat capacity cp (J/kg/K) 53 57 obj.heatcapacity=2093; … … 78 82 checkfield(md,'materials.rho_ice','>',0); 79 83 checkfield(md,'materials.rho_water','>',0); 84 checkfield(md,'materials.mu_water','>',0); 80 85 checkfield(md,'materials.rheology_B','>',0,'size',[md.mesh.numberofvertices 1]); 81 86 checkfield(md,'materials.rheology_n','>',0,'size',[md.mesh.numberofelements 1]); … … 87 92 fielddisplay(obj,'rho_ice','ice density [kg/m^3]'); 88 93 fielddisplay(obj,'rho_water','water density [kg/m^3]'); 94 fielddisplay(obj,'mu_water','water viscosity [N s/m^2]'); 89 95 fielddisplay(obj,'heatcapacity','heat capacity [J/kg/K]'); 90 96 fielddisplay(obj,'thermalconductivity','ice thermal conductivity [W/m/K]'); -
issm/trunk/src/m/usr/larour/Alias/cdhydro.m
r9562 r10565 1 cd([issmdir '/projects/Larour HydroJGR2011']);1 cd([issmdir '/projects/LarourJGR2012Hydro']); 2 2
Note:
See TracChangeset
for help on using the changeset viewer.