Jump to content
Mr. Simone Bigalli

Area evaluation of a generic section

Recommended Posts

Hi,

I have a question about the evaluation of the area of a generic section.

 

I would like to know if it is possible to extract the global area of a closed B-Spline using the command section.getArea. I tried to obtain this for a generic section I'm working on. However, when I did so, I obtained zero as a result.

 

Thanks.

 

Simone

Share this post


Link to post
Share on other sites

Hi Joerg,

I attached an example of the file Caeses I'm working on.

 

This is the script:

 

// **********************************************************************

// Autogenerated by CAESES 4.3.1

// Date: mar set 4 2018

// **********************************************************************

 

bsplinecurve c1()

ellipse c2()

point p1()

point p2()

point p3()

point p4()

point p5()

point p6()

 

// **********************************************************************

 

c1.setWeights([1, 1, 1, 1, 1, 1, 1])

c1.setKnotvector([0, 0, 0, 0, 0.25, 0.5, 0.75, 1, 1, 1, 1])

c1.setPL([p1, p6, p3, p2, p4, p5, p1])

c1.setMappingValue("torsion")

c2.setConstantAngleSpeed(false)

c2.setAxisB(1.832)

p1.setX(1)

p2.setX(-1)

p3.setX(-0.82)

p3.setY(2)

p4.setX(-0.82)

p4.setY(-2)

p5.setX(0.82)

p5.setY(-2)

p6.setX(0.82)

p6.setY(2)

 

point p(0, c2.getArea(0, 0, -1, 1), 0)

point r(0, c1.getArea(0, 0, 0, 1), 0)

 

Thank you very much for your reply.

 

Simone.

 

Example_bsplinecurve_Prove.fdbc

Share this post


Link to post
Share on other sites

Hi,

 

From what I can see you have chosen the wrong plane. Your curves are modeled in the XY-plane so the normal is Z (ID=2). post-8-0-21732400-1536137561_thumb.png

Share this post


Link to post
Share on other sites

Hi Joerg,

thank you very much for your assistance. Now all seems to be ok.

 

However I have another doubt. Do you have any idea on why in the example I attached on I was not be able to calculate the area of the B-Spline c1 using the wrong plane but I was able to evaluate in the correct manner the area of the ellipse c2? In fact, yesterday I didn't understand why, using the same settings, I was able to calculate the correct area for the ellipse but I was not be able to obtain the same result for the B-spline.

 

Thank you very much for your reply.

 

Simone

Share this post


Link to post
Share on other sites

Hi Simone,

 

That's a good question, and we have to take a closer look at it (probably, not intended rather a fallback). But at any rate you should always take care that the normal axis is correct. I understand why you struggled if one version works and the other one does not. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...