Changeset 16621 for issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
- Timestamp:
- 11/06/13 10:02:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r16614 r16621 3776 3776 IssmDouble epsvel=2.220446049250313e-16; 3777 3777 IssmDouble heatcapacity,thermalconductivity,dt; 3778 IssmDouble pressure[NUMVERTICES],enthalpy[NUMVERTICES];3778 IssmDouble enthalpy[NUMVERTICES], pressure[NUMVERTICES]; 3779 3779 IssmDouble latentheat,kappa; 3780 3780 IssmDouble tau_parameter,diameter; … … 3824 3824 /*Conduction: */ 3825 3825 GetBConduct(&B_conduct[0][0],&xyz_list[0][0],gauss); 3826 3827 //enthalpy_input->GetInputValue(&enthalpy, gauss); 3828 //pressure_input->GetInputValue(&pressure, gauss); 3829 GetInputListOnVertices(&enthalpy[0],EnthalpyPicardEnum); 3826 GetInputListOnVertices(&enthalpy[0],EnthalpyEnum); 3830 3827 GetInputListOnVertices(&pressure[0],PressureEnum); 3831 kappa=matpar->GetEnthalpyDiffusionParameterVolume(enthalpy,pressure); _assert_(kappa>0.); // TODO: switch to pointers3828 kappa=matpar->GetEnthalpyDiffusionParameterVolume(enthalpy,pressure); _assert_(kappa>0.); 3832 3829 3833 3830 D_scalar_conduct=gauss->weight*Jdet*kappa/rho_ice; … … 4232 4229 IssmDouble rho_ice,heatcapacity; 4233 4230 IssmDouble thermalconductivity,kappa; 4234 IssmDouble viscosity,pressure; 4235 IssmDouble enthalpy; 4236 IssmDouble enthalpy_v[NUMVERTICES], pressure_v[NUMVERTICES]; 4231 IssmDouble viscosity,pressure,enthalpy; 4232 IssmDouble enthalpypicard[NUMVERTICES], pressure_p[NUMVERTICES]; 4237 4233 IssmDouble tau_parameter,diameter; 4238 4234 IssmDouble u,v,w; … … 4300 4296 vy_input->GetInputValue(&v, gauss); 4301 4297 vz_input->GetInputValue(&w, gauss); 4302 //pressure_input->GetInputValue(&pressure, gauss); 4303 //enthalpypicard_input->GetInputValue(&enthalpypicard, gauss); 4304 GetInputListOnVertices(&enthalpy_v[0],EnthalpyPicardEnum); 4305 GetInputListOnVertices(&pressure_v[0],PressureEnum); 4306 kappa=matpar->GetEnthalpyDiffusionParameterVolume(enthalpy_v,pressure_v); 4298 GetInputListOnVertices(&enthalpypicard[0],EnthalpyPicardEnum); 4299 GetInputListOnVertices(&pressure_p[0],PressureEnum); 4300 kappa=matpar->GetEnthalpyDiffusionParameterVolume(enthalpypicard,pressure_p); 4307 4301 kappa/=rho_ice; 4308 4302 tau_parameter=GetStabilizationParameter(u,v,w,diameter,kappa);
Note:
See TracChangeset
for help on using the changeset viewer.