From f7679f3f7b0f292ce57954d613c01c94724c8e8f Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 14 Aug 2008 17:12:38 +0000 Subject: [PATCH] Add the artificial diffusion term to the rhs. git-svn-id: https://svn.dealii.org/trunk@16551 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-31/Makefile | 2 +- deal.II/examples/step-31/step-31.cc | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/deal.II/examples/step-31/Makefile b/deal.II/examples/step-31/Makefile index 5a0b1772e3..ccecccbd6c 100644 --- a/deal.II/examples/step-31/Makefile +++ b/deal.II/examples/step-31/Makefile @@ -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 diff --git a/deal.II/examples/step-31/step-31.cc b/deal.II/examples/step-31/step-31.cc index 07bf4bd7ba..6f60dfec62 100644 --- a/deal.II/examples/step-31/step-31.cc +++ b/deal.II/examples/step-31/step-31.cc @@ -1903,6 +1903,13 @@ void BoussinesqFlowProblem::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::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]) -- 2.39.5