Hi Wolfgang,

Yes, what you put into much better words than mine is exactly what I am 
needing - For a given quadrature point at 
(x,y), find how far the domain extends above (x,y) in y-direction?

So I am looking to find the y-coordinate of the point which is directly 
above the (x,y) in question, so that I can find how far it extends above it 
(by subtracting it from what I am trying to find)

On Friday, March 15, 2019 at 5:03:56 AM UTC, Wolfgang Bangerth wrote:
>
> On 3/14/19 5:50 PM, [email protected] <javascript:> wrote: 
> > 
> > I've tried looking a cell->face(face_no)->at_boundary() type input 
> within the 
> > cell iterator and by using something like cell->vertex(v)(1) but I can't 
> quite 
> > get my head around how to find the y coordinate of the top boundary for 
> every 
> > cell/quadrature point calculation. 
>
> Jane, 
> if you've already identified that a face is at the boundary, then 
>    cell->face(face_no)->center() 
> returns a Point<dim> object. So if you need the y-coordinate, it would be 
>    cell->face(face_no)->center()[1] 
>
> Or are you asking the following question: "For a given quadrature point at 
> (x,y), find how far the domain extends above (x,y) in y-direction"? 
>
> Best 
>   W. 
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 [email protected] 
> <javascript:> 
>                             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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to