Geometry of hyperboloid

Asked by Faqih Maarif on 2021-04-09

Dear All,
I would like to model the geometry of hyperboloids for compression stress of concrete [1]. I have a question about these sentences in the code:
“make geom; the dimensions are hard-coded here; could be in param table if desired”. In the model [1], z-oriented hyperboloid, length 20cm, diameter 10cm, skirt 8cm. In my case, I will create the diameter from 10cm to 15cm?

Could anyone help me with the problem?
Thank you very much for your attention.

Regards,
Faqih

[1] https://github.com/yade/trunk/blob/master/examples/concrete/uniax.py

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Jan Stránský (honzik) said : #1

Hello,

> Could anyone help me with the problem?

firstly, please describe clearly the problem [2].
This way, the question is too confusing and ambiguous.

> I will create the diameter from 10cm to 15cm?

like here.
Is this the problem how to create such hyperboloid? Why is then there the question mark?
Or is it a question if the dimensions are OK?
Or ... ?
What does "create" mean?
What does "the diameter" mean?
What does "from ... to" mean? One fixed value from that interval? Parameter study? ... ?
... ?

**Guessing** that links to pack.inHyperboloid ([3] in the script, [4] documentation) could be helpful

cheers
Jan

[2] https://www.yade-dem.org/wiki/Howtoask
[3] https://github.com/yade/trunk/blob/master/examples/concrete/uniax.py#L81
[4] https://yade-dem.org/doc/yade.pack.html#yade._packPredicates.inHyperboloid.__init__

Faqih Maarif (faqih07) said : #3

Dear Jan,
Thank you for your quick response.

Sorry for not clear on the questions.
I would like to create the geometry of hyperboloids in a uniaxial test of concrete. Based on the example [1] the dimensions of the model of 10cm (in diameter) x 20cm (in length), I want to change the new geometry of Hyperboloid to 15cm (in diameter) x 30cm (in length).

**Guessing** that links to pack.inHyperboloid ([3] in the script, [4] documentation) could be helpful
Thank you for the script, but I cannot open the [3]

Regards,
Faqih

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/examples/concrete/uniax.py

Best Jan Stránský (honzik) said : #4

Hello,

thanks for clarification, now it is clear what you want.
But please provide information, what is the problem.

Everything what you need is specify suitable numbers to pack.inHyperboloid [4] - centerBottom, centerTop, radius, skirt.
E.g.:
diameter = 0.15 # 15 cm
diameterSkirt = 0.10 # 10 cm, or other value
length = 0.30 # 30 cm
pack.inHyperboloid((0,0,-.5*length),(0,0,.5*length),.5*diameter,.5*diameterSkirt)

> but I cannot open the [3]

it is just your [1] with #L81 at the end.
Note that yade main repository is now on gitlab, so [1] and [3] should be as below.

cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/examples/concrete/uniax.py
[3] https://gitlab.com/yade-dev/trunk/-/blob/master/examples/concrete/uniax.py#L81

Faqih Maarif (faqih07) said : #5

Dear Jan,

But please provide information, what is the problem.
I looking for pack.Hyperboloid but I cannot find it. Thank you for the solution in [4].
Furthermore, I am following [4] for new geometry of Hyperboloid in my model, it can run properly.

it is just your [1] with #L81 at the end.
Thank you, I got it

Regards,
Faqih

Faqih Maarif (faqih07) said : #7

Thanks Jan Stránský, that solved my question.