Anup, if you know which node you want to constrain, you just have to find the corresponding degree of freedom and add a constraint to the ConstraintMatrix. For finding this DoF, DoFTools::map_dofs_to_support_points[1] might be useful. The alternative is to loop through all the cells and ask each DoF for its support_point [2] and component[3].
Best, Daniel [1] https://www.dealii.org/8.4.0/doxygen/deal.II/namespaceDoFTools.html#a10af6ba7adc43214e7b9f6815588f2aa <https://www.dealii.org/8.4.0/doxygen/deal.II/namespaceDoFTools.html#a10af6ba7adc43214e7b9f6815588f2aa> [2] https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#how-to-get-the-mapped-position-of-support-points-of-my-element [3] https://dealii.org/8.4.1/doxygen/deal.II/classFiniteElement.html#a27220a135402b96c7e6eecbb04acda56 Am Samstag, 16. Juli 2016 03:55:29 UTC+2 schrieb Anup Basak: > > Hello, > > I have a vector valued (say, displacement) problem and I want to apply > Dirichlet boundary condition > corresponding to one component of the displacement vector to a single node > (whose position is know) > on a boundary. > > I shall be thankful if someone can tell me how can I implement it in > dealii. > > Thank you, > > Anup. > -- 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.
