Values of a given point on the interface of two different domain

23 views
Skip to first unread message

lianzha...@gmail.com

unread,
Jan 14, 2017, 10:35:23 AM1/14/17
to deal.II User Group
Dear all,

My problem comes from step-46, which couples two different domains. Now, I want to get the values of a given point on the interface, so I use VectorTools::point_value. However, the point on interface has two sets of dofs, the one of which is corresponding to  stokes_fe (velocity_x, velocity_y, pressure, nothing, nothing) and the other one is corresponding to elasticity_fe(nothing, nothing, nothing, displacement_x, displacement_y). When using VectorTools::point_value, the function seems to choose one set of the values. How can I get (velocity_x, velocity_y, pressure, displacement_x, displacement_y) of a given point on the interface?

Thanks for your help.

Best regards,
Leon

Wolfgang Bangerth

unread,
Jan 14, 2017, 10:53:47 AM1/14/17
to dea...@googlegroups.com
Is it a point whose coordinates you can easily express in terms of the
reference coordinate system of the cell or face? E.g., the midpoint of a face?
In that case, you can use FEFaceValues which you would initialize with the
cell on the side you are interested in.

If it really is an arbitrary point, then maybe shifting it by an epsilon away
from the interface will work. If you choose epsilon small enough, then the
error introduced that way will be negligible.

Best
W.


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

lianzha...@gmail.com

unread,
Jan 14, 2017, 11:06:38 AM1/14/17
to deal.II User Group, bang...@colostate.edu
Thank you very much^-^. Using an epsilon is a very smart idea.
Reply all
Reply to author
Forward
0 new messages