]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add the artificial diffusion term to the rhs.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Aug 2008 17:12:38 +0000 (17:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Aug 2008 17:12:38 +0000 (17:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@16551 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-31/Makefile
deal.II/examples/step-31/step-31.cc

index 5a0b1772e37732b28c60951c0b8b7e95c4ff944b..ccecccbd6cdb2a15f3c408702fb999e8afda0fab 100644 (file)
@@ -14,7 +14,7 @@ target = $(basename $(shell echo step-*.cc))
 # run-time checking of parameters and internal states is performed, so
 # you should set this value to `on' while you develop your program,
 # and to `off' when running production computations.
-debug-mode = on
+debug-mode = off
 
 
 # As third field, we need to give the path to the top-level deal.II
index 07bf4bd7bafd3a1936f16449b36ba84d5f5c63b7..6f60dfec622a2e1e379442df6c9857578d008612 100644 (file)
@@ -1903,6 +1903,13 @@ void BoussinesqFlowProblem<dim>::assemble_rhs_T ()
                                  -
                                  time_step / old_time_step * old_old_grad_T) *
                                 phi_T[i]
+                                -
+                                time_step *
+                                artificial_diffusion *
+                                ((1+time_step/old_time_step) * old_grad_T
+                                 -
+                                 time_step / old_time_step * old_old_grad_T) *
+                                grad_phi_T[i]
                                 +
                                 time_step *
                                 gamma * phi_T[i])
@@ -1924,6 +1931,10 @@ void BoussinesqFlowProblem<dim>::assemble_rhs_T ()
                                 -
                                 time_step *
                                 present_u * old_grad_T * phi_T[i]
+                                -
+                                time_step *
+                                artificial_diffusion *
+                                old_grad_T * grad_phi_T[i]
                                 +
                                 time_step *
                                 gamma * phi_T[i])

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.