Dear deal.II Community While trying to modify the BC to homogeneous Neumann on some of the faces , I followed the suggestion given in step-3 to iterate the faces and flag them using :
for (auto &face : triangulation.active_face_iterators <https://www.dealii.org/current/doxygen/deal.II/group__CPP11.html#ga1bf11e9e1e5c2ff59a9c7b3f5a2bc5ad> ()) if (std::fabs <https://www.dealii.org/current/doxygen/deal.II/namespaceDifferentiation_1_1SD.html#a592560ee80355620422a86087f11b9df>(face->center()(1) - (-1.0)) < 1e <https://www.dealii.org/current/doxygen/deal.II/namespacePhysics_1_1Elasticity_1_1Kinematics.html#a9587d5229555daa5b1fa1ba2f8a40adb>-12 || std::fabs <https://www.dealii.org/current/doxygen/deal.II/namespaceDifferentiation_1_1SD.html#a592560ee80355620422a86087f11b9df>(face->center()(1) - (1.0)) < 1e <https://www.dealii.org/current/doxygen/deal.II/namespacePhysics_1_1Elasticity_1_1Kinematics.html#a9587d5229555daa5b1fa1ba2f8a40adb> -12) face->set_boundary_id(1); But this fails the program when added in a hyper_L mesh and the program exits with error as : /home/pushkar/examples/step-8/step-8.cc: In instantiation of ‘void Step8::ElasticProblem<dim>::run() [with int dim = 2]’: /home/pushkar/examples/step-8/step-8.cc:392:31: required from here /home/pushkar/examples/step-8/step-8.cc:359:45: error: ‘class dealii::Triangulation<2, 2>’ has no member named ‘active_face_iterators’; did you mean ‘active_face_iterator’? 359 | for (auto &face : triangulation.active_face_iterators()) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ | active_face_iterator make[3]: *** [CMakeFiles/step-8.dir/build.make:82: CMakeFiles/step-8.dir/step-8.cc.o] Error 1 make[2]: *** [CMakeFiles/Makefile2:183: CMakeFiles/step-8.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:163: CMakeFiles/run.dir/rule] Error 2 make: *** [Makefile:163: run] Error 2 I have changed from active_face_iterators() to active_face_iterator() which has produced the following error as : /home/pushkar/examples/step-8/step-8.cc: In instantiation of ‘void Step8::ElasticProblem<dim>::run() [with int dim = 2]’: /home/pushkar/examples/step-8/step-8.cc:392:31: required from here /home/pushkar/examples/step-8/step-8.cc:359:45: error: invalid use of ‘dealii::Triangulation<2, 2>::active_face_iterator’ 359 | for (auto &face : triangulation.active_face_iterator()) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ make[3]: *** [CMakeFiles/step-8.dir/build.make:82: CMakeFiles/step-8.dir/step-8.cc.o] Error 1 make[2]: *** [CMakeFiles/Makefile2:183: CMakeFiles/step-8.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:163: CMakeFiles/run.dir/rule] Error 2 make: *** [Makefile:163: run] Error 2 Any help in this context will be beneficial . Moreover, I wish to employ bessel function for dirichlet BC is step-8 which is a vector valued problem but I couldnt find the relevent constructor in the documentation. Regards Pushkar -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/cc4dba7f-1927-4a8b-bd42-225a1e30d4den%40googlegroups.com.
