[cig-commits] r1352 - trunk/aspect/source/simulator

heister at dealii.org heister at dealii.org
Thu Nov 8 10:54:00 PST 2012


Author: heister
Date: 2012-11-08 11:53:59 -0700 (Thu, 08 Nov 2012)
New Revision: 1352

Modified:
   trunk/aspect/source/simulator/assembly.cc
Log:
revert r1351

Modified: trunk/aspect/source/simulator/assembly.cc
===================================================================
--- trunk/aspect/source/simulator/assembly.cc	2012-11-07 20:55:53 UTC (rev 1351)
+++ trunk/aspect/source/simulator/assembly.cc	2012-11-08 18:53:59 UTC (rev 1352)
@@ -897,12 +897,7 @@
                                           max_residual,
                                           max_velocity);
 
-    const double max_viscosity = (index == 0 ?
-				  material_model->reference_density() *
-				  material_model->reference_cp()
-				  :
-				  1.0) *
-				 (parameters.stabilization_beta *
+    const double max_viscosity = (parameters.stabilization_beta *
                                   max_velocity * cell_diameter);
     if (timestep_number <= 1)
       // we don't have sensible timesteps during the first two iterations
@@ -1540,7 +1535,7 @@
                 data.local_matrix(i,j)
                 += (
                      (time_step * (thermal_conductivity +
-                                   nu) * scratch.grad_phi_T[i] * scratch.grad_phi_T[j])
+                                   nu * density * c_P) * scratch.grad_phi_T[i] * scratch.grad_phi_T[j])
                      + ((time_step * (current_u * scratch.grad_phi_T[j] * scratch.phi_T[i]))
                         + (factor * scratch.phi_T[i] * scratch.phi_T[j])) * density * c_P
                    )



More information about the CIG-COMMITS mailing list