Author Topic: Some bugs about knot insert  (Read 8770 times)

Brisk

  • Jr. Member
  • **
  • Posts: 26
Some bugs about knot insert
« on: December 20, 2017, 02:14:52 AM »
Dear all,

I found that when the inserted knots is too large, FEAP8.5 cannot obtain the correct control points. For example, when I insert 200 knot in a rectangular mesh, the coordinate of the last control point is incorrect. And the mesh obtained by FEAP cannot be recognized in analysis.

Attached is the test file, could you help me?

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: Some bugs about knot insert
« Reply #1 on: December 20, 2017, 08:57:25 PM »
We did not anticipate that users would use igafeap with knot vectors as large as 200.  There are still some fixed dimension arrays that are used to store the knot vectors during generation.  These are located in the include file "cnurb.h" and are named UU1, UU2 (store knot vector values) and PP1, PP2 which store the control point data (which in the Piegl algorithm include the weight and thus get dimensioned PP1(ndm+1,0:lastknot) and similar for PP2.  Thus if you have a 2-d geometry you run out of space at 200 knots. 

These need to be changed and then be sure to recompile the entire iga part of the code.  If you use SHOW COMMon options you need also to recompile the 'outary.f' file in the program directory (this is the only routine that references cnurb.h).

Brisk

  • Jr. Member
  • **
  • Posts: 26
Re: Some bugs about knot insert
« Reply #2 on: December 21, 2017, 04:57:07 AM »
Following your advice, I have fixed this problem. Really appreciate for your help!