Re: [Yade-users] [Question #705031]: Poly import core dumped

2023-02-20 Thread Jérôme Duriez
Question #705031 on Yade changed:
https://answers.launchpad.net/yade/+question/705031

Status: Open => Answered

Jérôme Duriez proposed the following answer:
You can check your CGAL version with printAllVersions() in YADE
terminal. In my experience, Polyhedra simulations (CGAL library more
than YADE version ?) was working several years ago (first half of 2020)
indeed better than nowadays

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #705031]: Poly import core dumped

2023-02-16 Thread Jan Stránský
Question #705031 on Yade changed:
https://answers.launchpad.net/yade/+question/705031

Jan Stránský posted a new comment:
> I will try with some oleder versions

a newer version is also worth trying IMO

Cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #705031]: Poly import core dumped

2023-02-16 Thread velimier
Question #705031 on Yade changed:
https://answers.launchpad.net/yade/+question/705031

velimier posted a new comment:
Thanks Jerome,
I will check those. I am using yade 2020.01a version, not sure about cgal.
Also, part of those that I was able to import resulted in complete mess, 
nothing as it should be.
I used same code with some earlier version of yade and it was flawless, so I 
will try with some oleder versions.

Regards
Veljko

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #705031]: Poly import core dumped

2023-02-13 Thread Jérôme Duriez
Question #705031 on Yade changed:
https://answers.launchpad.net/yade/+question/705031

Jérôme Duriez posted a new comment:
Hi,

In my experience (CGAL version 4.11 to 5.02), using Polyhedra is
currently at a significant risk of segmentation faults, see
https://gitlab.com/yade-dev/trunk/-/issues/242 and links therein.

You can tell us your YADE / CGAL version to try to see if your own issue
can be related.

(You can also check RAM usage during your simulation to see how much
this is a matter of data volume. Even though I'm not sure it would lead
to a "Segmentation fault" in this case ?)

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


[Yade-users] [Question #705031]: Poly import core dumped

2023-02-13 Thread velimier
New question #705031 on Yade:
https://answers.launchpad.net/yade/+question/705031

Hi there,
I am trying to import large number of polyhedra in my model by importing 
vertices of each poly.
Following script works until ~17k of polys is imported, then I receive 
Segmentation fault. Any thoughts?
Here is link for poly file, where vertex coordinates are written in each line; 
last point of each file line is polys centroid:  
https://drive.google.com/file/d/13lm7qvKHbHxteFKUB5tZejohU7jAjgCj/view?usp=share_link

model script:

from yade import polyhedra_utils
import ast

m = PolyhedraMat()
m.density = 2700 
m.Ks = 10E8
m.Kn = 10E8
m.frictionAngle = radians(30) 

file = open("Fragments")

for line in file:
vertex=[]
vertex.append(ast.literal_eval(line))
t = polyhedra_utils.polyhedra(material=m, size=0, seed=0, color= 
polyhedra_utils.randomColor(), v=vertex[0][0:(len(vertex)-3)])
t.state.pos=vertex[0][len(vertex)-2]
O.bodies.append(t)
del vertex[:]


Thanks
Veljko

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp