Step 26 with advection term

32 views
Skip to first unread message

Sai P

unread,
Jul 20, 2019, 7:15:46 AM7/20/19
to deal.II User Group
Hi,

I am a new dealii user and trying to extend step 26 with an advection term. If the method is implicit, I am not sure how to handle the boundary terms due to upwinding boundary in the advection term. It looks like the following code in step 26 for diffusion term will make the advection boundary conditions redundant.
{
 
BoundaryValues<dim> boundary_values_function;
 boundary_values_function
.set_time(time);

 std
::map<types::global_dof_index, double> boundary_values;
 
VectorTools::interpolate_boundary_values(dof_handler,
 
0,
 boundary_values_function
,
 boundary_values
);

 
MatrixTools::apply_boundary_values(boundary_values,
 system_matrix
,
 solution
,
 system_rhs
);
}
 Am I missing anything? How do I handle the boundary conditions in dealii for advection term?

Praveen C

unread,
Jul 21, 2019, 4:31:58 AM7/21/19
to dea...@googlegroups.com
For an advection-diffusion equation you have to specify boundary conditions everywhere on the boundary. You have to decide what boundary conditions you want, dirichlet, neuman, or some mixture of these. Also you have just one boundary condition for the pde, there is no separate advection boundary condition and diffusion boundary condition.
Best
Praveen

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/f8e0bffc-ec3a-43e0-8446-8febb4773397%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages