Re: [deal.II] Location for Boundary Condition Application

2020-07-24 Thread Wolfgang Bangerth

On 7/23/20 11:47 AM, Daniel Arndt wrote:

McKenzie,

I'm interested in applying a non-homogeneous Dirichlet boundary condition
to a specific edge. However, I'm unsure how to identify or specify a
particular edge or face to add the boundary condition to. Could you help
clear this up for me?


What do you know about that particular edge? You can always ask faces or 
edges, e.g., about their midpoints. Have a look at 
https://www.dealii.org/current/doxygen/deal.II/step_6.html#Abettermesh 
.


And here:
https://github.com/bangerth/dealii/blob/66/examples/step-19/step-19.cc#L303-L317
for an example where I'm setting different boundary indicators depending on 
the location of a face. These boundary conditions are then used when 
interpolating different boundary conditions here:

https://github.com/bangerth/dealii/blob/66/examples/step-19/step-19.cc#L340-L354
This is eventually going to become step-19.

Best
 W.
--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/8c48a006-dff5-4333-fc96-2c3a0a28d4e3%40colostate.edu.


Re: [deal.II] Location for Boundary Condition Application

2020-07-23 Thread Daniel Arndt
McKenzie,

I'm interested in applying a non-homogeneous Dirichlet boundary condition
> to a specific edge. However, I'm unsure how to identify or specify a
> particular edge or face to add the boundary condition to. Could you help
> clear this up for me?


What do you know about that particular edge? You can always ask faces or
edges, e.g., about their midpoints. Have a look at
https://www.dealii.org/current/doxygen/deal.II/step_6.html#Abettermesh.

Best,
Daniel

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAOYDWb%2B-_hretd8LToON2E15e%2B-3yX32etVXBKSiJS_4%2BYFu_g%40mail.gmail.com.


[deal.II] Location for Boundary Condition Application

2020-07-23 Thread McKenzie Davis
Hello! 

I'm interested in applying a non-homogeneous Dirichlet boundary condition 
to a specific edge. However, I'm unsure how to identify or specify a 
particular edge or face to add the boundary condition to. Could you help 
clear this up for me?

Thank you for your help,

McKenzie

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/401a1c3e-83bd-4fd6-8306-ea9285d92331n%40googlegroups.com.