tetra +facet
hi all,
I'm looking for a possibilty to handle facet+tetra collision. I can find tetra+tetra collision [Ig2_Tetra_
Do you have any solutions?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hi Martin,
there are a few possible soutions:
1) somebody (most likely you :-) will implement this feature.
2) instead of facets you will use tetrahedrons
3) instead of facets and tetrahedrons you will use polyhedrons
The correct solution also depends on other circumstances, e.g. if you also
need interaction with spheres (only sphere-facet interaction is implemented
at the moment). Let us know if one of the solutions is suitable for you or
please privde us with more details about your problem.
cheers
Jan
2013/12/11 Martin Nie <email address hidden>
> New question #240620 on Yade:
> https:/
>
> hi all,
> I'm looking for a possibilty to handle facet+tetra collision. I can find
> tetra+tetra collision [Ig2_Tetra_
> no facet+tetra collision.
> https:/
> Do you have any solutions?
> Thanks
>
>
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#2 |
I need tetra-tetra interaction plus facet-tetra interaction. I imported a cauldron shaped stl-file, which is my facet. So the tetra-particles shall move and interact in this cauldron.
Revision history for this message
|
#3 |
how can I use polyhedrons or tetrahedrons in yade?
Revision history for this message
|
#4 |
hi martin,
there are several examples in examples/tetra and examples/polyhedra folders.
good luck,
christian
Revision history for this message
|
#5 |
Hi,
i tried to start the examples in the "examples/
"ImportError: cannot import name polyhedra_utils"
Is there a solution to fix this?
from yade import plot, polyhedra_utils
from yade import qt
m = PolyhedraMat()
m.density = 2600 #kg/m^3
m.Ks = 20000
m.Kn = 1E6 #Pa
m.frictionAngle = 0.6 #rad
maxLoad = 3E6
minLoad = 1E3
O.bodies.
t = polyhedra_
t.state.pos = (0,0,0.5)
O.bodies.append(t)
def checkUnbalanced():
print "unbalanced forces = %.5f, position %f, %f, %f"%(utils.
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[
),
#GravityEngi
NewtonIntegr
PyRunner(
]
#O.dt=0.
O.dt=0.00025
qt.Controller()
V = qt.View()
O.saveTmp()
#O.run()
-------
Another problem is in the "examples/tetra" folder:
"NameError: name 'tetraPoly' is not defined"
#######
#
# Script to test tetra gl functions and prescribed motion
#
#######
v1 = (0,0,0)
v2 = (1,0,0)
v3 = (0,1,0)
v4 = (0,0,1)
t1 = tetraPoly(
O.bodies.
def changeVelocity():
if O.iter == 50000:
t1.state.vel = (-1,0,0)
if O.iter == 100000:
t1.state.vel = (0,1,-1)
if O.iter == 150000:
t1.state.vel = (0,0,0)
t1.state.angMom = (0,0,10)
if O.iter == 200000:
O.pause()
O.engines = [
ForceResetter(),
InsertionSortC
InteractionLoo
NewtonIntegrat
PyRunner(
]
O.step()
try:
from yade import qt
qt.View()
except:
pass
O.dt = 1e-5
t1.state.vel = (1,0,0)
O.run()
Revision history for this message
|
#6 |
Hi Oguz,
I have no problem with the scripts.. what version of Yade do you use?
cheers
Jan
2013/12/12 Oguz Cebeci <email address hidden>
> Question #240620 on Yade changed:
> https:/
>
> Oguz Cebeci posted a new comment:
> Hi,
> i tried to start the examples in the "examples/
> always get the following error:
> "ImportError: cannot import name polyhedra_utils"
> Is there a solution to fix this?
>
> from yade import plot, polyhedra_utils
> from yade import qt
>
> m = PolyhedraMat()
> m.density = 2600 #kg/m^3
> m.Ks = 20000
> m.Kn = 1E6 #Pa
> m.frictionAngle = 0.6 #rad
>
> maxLoad = 3E6
> minLoad = 1E3
>
> O.bodies.
>
> t = polyhedra_
> t.state.pos = (0,0,0.5)
> O.bodies.append(t)
>
> def checkUnbalanced():
> print "unbalanced forces = %.5f, position %f, %f,
> %f"%(utils.
> t.state.pos[2])
>
>
>
> O.engines=[
> ForceResetter(),
>
> InsertionSortCo
> InteractionLoop(
> [Ig2_Wall_
> Ig2_Polyhedra_
> Ig2_Facet_
> [Ip2_PolyhedraM
> "physics"
> [PolyhedraVolum
> ),
> #GravityEngine(
> NewtonIntegrato
> PyRunner(
> ]
>
>
> #O.dt=0.
> O.dt=0.00025
>
>
> qt.Controller()
> V = qt.View()
>
>
> O.saveTmp()
> #O.run()
>
>
>
> -------
>
> Another problem is in the "examples/tetra" folder:
> "NameError: name 'tetraPoly' is not defined"
>
>
>
> #######
> #
> # Script to test tetra gl functions and prescribed motion
> #
>
> #######
> v1 = (0,0,0)
> v2 = (1,0,0)
> v3 = (0,1,0)
> v4 = (0,0,1)
>
> t1 = tetraPoly(
> O.bodies.
>
> def changeVelocity():
> if O.iter == 50000:
> t1.state.vel = (-1,0,0)
> if O.iter == 100000:
> t1.state.vel = (0,1,-1)
> if O.iter == 150000:
> t1.state.vel = (0,0,0)
> t1.state.angMom = (0,0,10)
> if O.iter == 200000:
> O.pause()
>
> O.engines = [
> ForceResetter(),
> InsertionSortCo
> InteractionLoop
> NewtonIntegrator(),
> PyRunner(
> ]
> O.step()
>
>
> try:
> from yade import qt
> qt.View()
> except:
> pass
>
> O.dt = 1e-5
> t1.state.vel = (1,0,0)
> O.run()
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#7 |
I'm using yade daily ( Yade 5+3730+
Revision history for this message
|
#8 |
Polyhedra code was implemented with 3715, so the examples should work at 3730
http://
Revision history for this message
|
#9 |
I tried to import the polyhedra_utils module. Unfortunately, I do get this error. Any ideas?
Welcome to Yade 2013-12-
TCP python prompt on localhost:9002, auth cookie `ckudes'
XMLRPC info provider on http://
[[ ^L clears screen, ^U kills line. F8 plot. ]]
Yade [1]: from yade import polyhedra_utils
-------
ImportError Traceback (most recent call last)
/rwthfs/
----> 1
2
3
4
5
/home/ml706312/
18
19 # c++ implementations for performance reasons
---> 20 from yade._polyhedra
21
22 #******
ImportError: dynamic module does not define init function (init_polyhedra
Thanks for your help.
Regards,
Mathias
Revision history for this message
|
#10 |
Hi, I get the same error when running free-fall.py script in examples/polyhedra
"ImportError: cannot import name polyhedra_utils"
I used the daily build version and the latest version built from sources. (it's strange that yade tells me that the self-built version is from 09-09-2013. But I pulled the latest version before building it)
Revision history for this message
|
#11 |
> I used the daily build version
From Launchpad (an old one) or updated from yade-dem server?
https:/
Anton
Revision history for this message
|
#12 |
Hi Anton,
I used the latest version which I got via: apt-get install yade-daily
On the other hand I built the sources which I pulled via github.
Revision history for this message
|
#13 |
There was a bug, which can affect this yade-daily version [1].
Remove both packages yade-daily and yade (if you installed it from the
main repository), install "yadedaily" according to the link above and check
your script again.
[1] https:/
Anton
Revision history for this message
|
#14 |
I'm using Ubuntu 12.04 LTS so it's not exactly like in the bug report. But I' ll try to do as you advice.
I see that there is no uninstall rule implemented in the makefile, because
make uninstall doesn't work
Is it sufficient to delete the folder I installed my yade built to or are there more things to take care of?
Revision history for this message
|
#15 |
> I'm using Ubuntu 12.04 LTS so it's not exactly like in the bug report
This bug can affect all Ubuntu-distros.
Revision history for this message
|
#16 |
> Is it sufficient to delete the folder I installed my yade built to or
are there more things to take care of?
It is sufficient. "Installation" is only a copy-paste operation from
buildDir to installDir in our case.
Bruno
Can you help with this problem?
Provide an answer of your own, or ask Martin Nie for more information if necessary.