Dear Hojae >From what I am seeing, you should replace mesh1.pid_in_regions(CONTACT_BOUND_WHEEL) with CONTACT_BOUND_WHEEL.
CONTACT_BOUND_WHEEL is the region id. The same applies to CONTACT_BOUND_FND. Best regards Kostas On Fri, Dec 23, 2016 at 9:56 PM, Hojae Yi <[email protected]> wrote: > Hello Yves, > > Than you very much for the reply. I thought and tried that rg1 and rg2 > should be boundary numbers as you explained (and in the documents). Just in > case, I am attaching my code with a comment to highlight the line issues an > error. It is line number 200. Let me know if there is anything unclear > about this revised code. > > Best regards, > > Hojae > > > > On 12/23/2016 2:43 PM, Yves Renard wrote: > >> >> Dear Hojae, >> >> The best is that you send the lines of your code that are not working. >> rg1 and rg2 are boundary numbers so that they should be some integers. >> >> Yves. >> >> ----- Original Message ----- >> From: "Hojae Yi" <[email protected]> >> To: "getfem-users" <[email protected]> >> Sent: Thursday, December 22, 2016 8:25:34 PM >> Subject: [Getfem-users] nodal contact problem >> >> Hello, >> >> First of all, thank you so much for a great FEA package! >> >> I am currently using GetFEM 5.1 using Python. I have been toying with >> provided 'demo_wheel_contact.py' and trying to apply >> add_nodal_contact_between_nonmatching_meshes_brick using two contact >> surfaces. However, when I run, it complains that rg1 (and rg2) should be >> a string. Python Interface reference explains that rg1 and rg2 as >> integers while User Document explains them as vectors. >> >> Can someone kindly point me where I can find further information on how >> these rg1 and rg2 should be defined? Let me know if any further details >> are needed. >> >> Thank you very much! >> >> Hojae >> >> _______________________________________________ >> Getfem-users mailing list >> [email protected] >> https://mail.gna.org/listinfo/getfem-users >> > > > _______________________________________________ > Getfem-users mailing list > [email protected] > https://mail.gna.org/listinfo/getfem-users > >
_______________________________________________ Getfem-users mailing list [email protected] https://mail.gna.org/listinfo/getfem-users
