yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #21162
[Question #685539]: shape orientation for Potential Block
New question #685539 on Yade:
https://answers.launchpad.net/yade/+question/685539
Hi everyone,
I can't understand the logic of the orientation standards for Potential Block, in particular for blocks with oblique facets.
I respected all the explanations from the answers to this question:
https://answers.launchpad.net/yade/+question/685375
but I see some problems specially for blocks having oblique facets as for third blocks in the simple example, below.
for converting a convex block to PB, I do in this way:
1-compute center of block
2-calculate new vertex coordinates with local center
3-calculate a,b,c,d for all faces
4-(d-chosenR) for all d s
what gives me the output data same as below example, but when I try to create PB, it works without problem for (straight) block, but for blocks with oblique faces, they are misdirected.
I don't know why?
Thanks a lot
Best regards
Ali
################ a simple example
chosenR=0.0001
################################ PB parts
#Number of facets
# center of block
# a ax+by+cz+d=0
# b
# c
# d
6
0.0 3.0 0.0
1.0 -0.0 -1.0 -0.0 -0.0 -0.0
0.0 -1.0 0.0 1.0 -0.0 -0.0
0.0 -0.0 -0.0 -0.0 1.0 -1.0
0.9999 1.9999 0.9999 1.9999 0.9999 0.9999
6
0.0 4.0 3.0
1.0 -0.0 -1.0 -0.0 -0.0 -0.0
0.0 -1.0 0.0 1.0 -0.0 -0.0
0.0 -0.0 -0.0 -0.0 1.0 -1.0
0.9999 0.9999 0.9999 0.9999 1.9999 1.9999
9
0.6733279600737498 3.79366976022725 6.1040638685226245
0.4233422835886639 -0.0 -1.0 -0.0 -0.0 -0.2544435504552162 -0.0 0.2256157225428006 0.7071067811865475
-0.4658182304526213 -1.0 0.0 1.0 -0.0 -0.0 0.2924660204513265 -0.5965652970583126 -0.0
-0.4658182304526213 0.0 -0.0 -0.0 1.0 -0.8250734563293101 -0.12273156061799324 -0.4512314450856012 -0.0
0.9630391247904834 1.20623023977275 1.83734355291125 0.79356976022725 1.1039638685226245 1.2066387820121347 0.3419810759564882 0.7092731583297133 1.5290583284351422
6
0.0 0.0 0.0
1.0 -0.0 -1.0 -0.0 -0.0 -0.0
0.0 -1.0 0.0 1.0 -0.0 -0.0
0.0 -0.0 -0.0 -0.0 1.0 -1.0
1.9999 0.9999 1.9999 0.9999 0.9999 0.9999
###########################################
--
You received this question notification because your team yade-users is
an answer contact for Yade.