[Yade-users] [Question #294588]: Question about Ig2_facet_sphere_scgeom.cpp

2016-05-29 Thread MikeZhao
New question #294588 on Yade:
https://answers.launchpad.net/yade/+question/294588

Line 115: scm->radius1 = 2*sphereRadius;

I understand that A facet-sphere interaction is actually converted to a 
sphere-sphere interaction to calculate contact force.

What I don't understand is why should we equalize a facet to a sphere with a 
radius 2*sphereRadius?  Could any one give me an explanation?

-- 
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 #293445]: Polyhedra Elements, Infinite Loop.

2016-05-09 Thread MikeZhao
Question #293445 on Yade changed:
https://answers.launchpad.net/yade/+question/293445

MikeZhao gave more information on the question:
Hi, I have tried to reproduce this bug, and the script is as
following:##

from libyade import yade
from yade import *


mat = PolyhedraMat()
mat.density = 2600 * 10e15 #kg/m^3 
mat.Ks = 1.5e8 
mat.Kn = 2E9   #Pa
mat.frictionAngle = 0.5 #rad
yade.O.materials.append(mat)
coords = dict()
coords[0] = 
[yade.Vector3(0.12506498908304559,0.004170586360067608,0.04718878419835185),
  yade.Vector3(0.07196917639353285,0.002130673955178613,0.04829019846239369),
  yade.Vector3(0.12452553414402667,0.05548698237982243,0.09674610334959563),
  yade.Vector3(0.10202107066713305,0.003501573781327025,0.09778836768091179)]
coords[1] = 
[yade.Vector3(0.14295032259085494,-0.006505603044225198,0.10466693700014766),
  yade.Vector3(0.11566808726849623,0.0437318004347,0.10573503009510624),
  yade.Vector3(0.09295451012074624,-0.008001021823003239,0.10600124068861566),
  yade.Vector3(0.11621529452629992,-0.007042223507702154,0.05542740653091893)]
coords[2] = 
[yade.Vector3(0.2130315465641754,0.09686131087477995,0.053289505254753),
  yade.Vector3(0.164020561929353,0.04648070412681492,0.004219224080575502),
  yade.Vector3(0.1862772963099485,0.09652671335229797,0.00417259537268409),
  yade.Vector3(0.16288263942085443,0.09471008739327443,0.055098349410302505)]
coords[3] = 
[yade.Vector3(0.17228834709600793,0.10610590338541123,0.04456793567930975),
  yade.Vector3(0.17280626014182954,0.056807096563525575,-0.00527106604700384),
  yade.Vector3(0.19547690664041997,0.1064874328191193,-0.006528797650868522),
  yade.Vector3(0.1454828764592455,0.10501383881798207,-0.004532778418338768)]
coords[4] = 
[yade.Vector3(0.12518512144479108,0.004202482634043023,0.047282108263384234),
  yade.Vector3(0.07215900355266172,0.0022067170630582396,0.048405189227085095),
  yade.Vector3(0.09927440181878336,0.002841487802841776,-0.0020490482509290323),
  yade.Vector3(0.12194553936223902,0.053900337377603164,-0.003137962336613641)]
coords[5] = 
[yade.Vector3(0.1230094368221373,-0.01217837847454617,0.0385941766299165),
  yade.Vector3(0.09606163246660983,-0.009341849627069044,-0.010265958898953698),
  yade.Vector3(0.14605505129391785,-0.007892828978239817,-0.012758832943173034),
  yade.Vector3(0.1191666025858279,0.04146035772028468,-0.007885859751166355)]
coords[6] = 
[yade.Vector3(0.11631337631682945,-0.0072190647263523505,0.05526504476519887),
  yade.Vector3(0.11546679195549954,0.04339612477093768,0.10546948815801681),
  yade.Vector3(0.16283607913807063,0.09468384437456645,0.054801725781359986),
  yade.Vector3(0.1660494458383337,0.04445695707723045,0.10422688539183134)]
coords[7] = 
[yade.Vector3(0.12517826549319078,0.004210666781740674,0.04713033641567168),
  yade.Vector3(0.12503175035775993,0.05566147427541226,0.09662450106256898),
  yade.Vector3(0.1218967526875405,0.054092789281228446,-0.0033114695372207723),
  yade.Vector3(0.1723941910681486,0.10613783179410324,0.04465530410432424)]
coords[8] = 
[yade.Vector3(0.16282407041415756,0.0946878041824045,0.054807634434872056),
  yade.Vector3(0.1660391862703065,0.044454782962754805,0.10419776714643575),
  yade.Vector3(0.1641981030564517,0.04610198242630093,0.004203199959939556),
  yade.Vector3(0.11627599902436038,-0.007311015046615452,0.05527225087207195)]
coords[9] = 
[yade.Vector3(0.1255192872383347,0.004248839377251908,0.04705512287925926),
  yade.Vector3(0.12177640027256077,0.05401449241996102,-0.003310973765333125),
  yade.Vector3(0.17288309620166054,0.0567881426706257,-0.005251109507840107),
  yade.Vector3(0.17239800601486288,0.10615025111591658,0.04466410423643576)]
coords[10] = 
[yade.Vector3(0.16586255674847272,0.04442314808389014,0.10431426071039843),
  yade.Vector3(0.16306972984454005,0.09458742037006168,0.05488233416872211),
  yade.Vector3(0.13921142362682418,0.09338844867941465,0.1051850240520792),
  yade.Vector3(0.11532750614560142,0.043572756568788916,0.10524886894605867)]
coords[11] = 
[yade.Vector3(0.12553762857591796,0.05564020559697192,0.09672553666297364),
  yade.Vector3(0.12188774949220496,0.10432230228089284,0.04742164646483482),
  yade.Vector3(0.1723696031234631,0.10635275656158034,0.044620790102675174),
  yade.Vector3(0.14933095821244555,0.10569338022640279,0.09538317504306985)]
coords[12] = 
[yade.Vector3(0.2173311133734367,-0.00291435614061983,0.050878549630080615),
  yade.Vector3(0.2640348114070128,0.049396955137835985,0.0007687422103086969),
  
yade.Vector3(0.23998126829150335,-0.0013654269667168015,0.0010097662543496304),
  yade.Vector3(0.26756518846385796,-0.0012810266002693128,0.0498993551659514)]
coords[13] = 
[yade.Vector3(0.21732797257016542,-0.002825738834439564,0.050857917624400034),
  yade.Vector3(0.2643104682138871,0.04965977725183429,0.0007946325029359932),
  yade.Vector3(0.21413337322661294,0.04673315137371154,0.002351451925924373),
  
yade.Vector3(0.24055205822558823,-0.0012623876073627402,0.0011263572685819498

Re: [Yade-users] [Question #293445]: Polyhedra Elements, Infinite Loop.

2016-05-09 Thread MikeZhao
Question #293445 on Yade changed:
https://answers.launchpad.net/yade/+question/293445

MikeZhao gave more information on the question:
I will try if I could provide an example.

-- 
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 #293445]: Polyhedra Elements, Infinite Loop.

2016-05-09 Thread MikeZhao
Question #293445 on Yade changed:
https://answers.launchpad.net/yade/+question/293445

Status: Answered => Open

MikeZhao is still having a problem:
Eh, it is hard for me to provide an example, since I was building a FE-
DE model, another FEM software OOFEM is included in my calculation.

But this bug did occur within Yade, as I have added several cout codes
to locate this bug. This bug did occur when yade.O.step() is called.

I want to trace back to the source of this bug, but it seems O.step()
has used several function in boost library, so it's hard for me to
understand what actions O.step() actually contain within yade.

So I hope maybe you could tell me what codes are called for O.step(),
and I could better locate this bug.

-- 
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 #293445]: Polyhedra Elements, Infinite Loop.

2016-05-08 Thread MikeZhao
Question #293445 on Yade changed:
https://answers.launchpad.net/yade/+question/293445

MikeZhao gave more information on the question:
The new engine is as following:
O.engines = [
ForceResetter(),
InsertionSortCollider([Bo1_Polyhedra_Aabb()]),
InteractionLoop(
[Ig2_Polyhedra_Polyhedra_PolyhedraGeom()],
[Ip2_PolyhedraMat_PolyhedraMat_PolyhedraPhys()],
[Law2_PolyhedraGeom_PolyhedraPhys_Volumetric()]
),
NewtonIntegrator(damping=0),
]

According to my test, this bug happens during Yade.O.step().

I have added several cout codes at the begining and the end of several
places. It turns out that this bug doesn't locate in
Ig2_Polyhedra_Polyhedra_PolyhedraGeom::go,
Ip2_PolyhedraMat_PolyhedraMat_PolyhedraPhys::go or
Law2_PolyhedraGeom_PolyhedraPhys_Volumetric::go.

Could anybody tell me where this bug possibly locate? Thanks a lot.

-- 
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 #293445]: Polyhedra Elements, Infinite Loop.

2016-05-08 Thread MikeZhao
Question #293445 on Yade changed:
https://answers.launchpad.net/yade/+question/293445

Status: Answered => Open

MikeZhao is still having a problem:
I have updated yade, using trunk-master. However, this problem still
exists:

The speed of my calculation is about 5 steps per second, however when it
comes to a certain step, it will hold there while the usage of CPU
remains 100%. I am pretty sure that this program encountered an infinite
loop when yade.O.step() is called..

-- 
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 #293445]: Polyhedra Elements, Infinite Loop.

2016-05-08 Thread MikeZhao
New question #293445 on Yade:
https://answers.launchpad.net/yade/+question/293445

I have been working on building finite-discrete element model to simulate 
fracture generation, and polyhedra elements in yade are used for DEM. 

After several steps, it seems that an infinite loop occurs when yade.O.step() 
is called. I want to trace back to the source of this bug, but it seems 
O.step() has called several functions in boost library, and it is hard for me 
to understand what codes in Yade are involved for O.step().

Could you please give me some advice on locating this bug? It will be very 
helpful if someone can tell my what codes in Yade are called for O.step().

By the way, the engine I used is as following:
O.engines = [
ForceResetter(),
InsertionSortCollider([Bo1_Polyhedra_Aabb()]),
InteractionLoop(
[Ig2_Polyhedra_Polyhedra_PolyhedraGeom()],
[Ip2_PolyhedraMat_PolyhedraMat_PolyhedraPhys()],
[PolyhedraVolumetricLaw()]
),
NewtonIntegrator(damping=0),
]

-- 
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 #290946]: Several Errors occured while using tetraPoly elements

2016-05-08 Thread MikeZhao
Question #290946 on Yade changed:
https://answers.launchpad.net/yade/+question/290946

Status: Answered => Solved

MikeZhao confirmed that the question is solved:
I have located the position of this bug recently, it seems that
segmentation fault bug is caused by CGAL::convex_hull_3(), and it is a
known bug. Adjust "DISTANCE_LIMIT" larger according to the size of the
mesh and adjust "MERGE_PLANES_LIMIT" larger might reduce this problem.

Sorry for my late reply: I have been working on establishing fem-dem
model, and this bug is hard to reproduce, so I have tried to locate and
solve it myself.

-- 
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 #290947]: Memory leak during updating position of tetrapoly elements

2016-04-14 Thread MikeZhao
New question #290947 on Yade:
https://answers.launchpad.net/yade/+question/290947

There exists sever memory leaking problem when using intermediate variables to 
update positions of tetraPoly in a loop:

running the code, the memory will keep leaking:
#
a = [[0,0,0],[0,0,1],[0,1,0],[1,0,0]]
O.bodies.append(yade.utils.tetraPoly(a))
for i in range(100):
b = [[0,0,0],[0,0,1],[0,1,0],[i+2,0,0]]
O.bodies[0].shape.setVertices(b)
O.bodies[0].state.ori = O.bodies[0].shape.GetOri()
O.bodies[0].state.pos = O.bodies[0].shape.GetCentroid()
O.bodies[0].state.mass = O.bodies[0].mat.density * 
O.bodies[0].shape.GetVolume()
O.bodies[0].state.inertia = O.bodies[0].mat.density * 
O.bodies[0].shape.GetInertia()


-- 
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 #290946]: Several Errors occured while using tetraPoly elements

2016-04-14 Thread MikeZhao
New question #290946 on Yade:
https://answers.launchpad.net/yade/+question/290946

Hello there,

I have encountered several problems using tetrapoly elements. There are several 
kinds of errors occuring during the simulation loop and they will terminate the 
calculation, including:
#
Segmentation Fault(core dumped)
#
Floating point exception(core dumped)
#
Error in `/usr/bin/python': malloc(): memory corruption (fast): 
0x7fe35000dc30 

I wonder if anyone has encountered the same problem?

-- 
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 #290716]: There's something wrong with the function shape.setVertices() of polyhedra.

2016-04-12 Thread MikeZhao
New question #290716 on Yade:
https://answers.launchpad.net/yade/+question/290716

Hi there, I find that there will be something wrong when I use 
shape.setVertices() to update the coords of polyhedra element.
The following is a simple example: 

a = [[0,0,0],[0,0,1],[0,1,0],[1,0,0]]
b = [[0,0,0],[0,0,1],[0,1,0],[2,0,0]]
The I created two tetraPoly Elements:
The first one:
O.bodies.append(yade.utils.tetraPoly(a))
And the second one:
O.bodies.append(yade.utils.tetraPoly(b))

We can get the two elements' geometrical parameters:

/ The first one:  */
Local coords:
[Vector3(0.816496580927726,-2.7755575615628914e-17,0.14433756729740668),
 Vector3(-0.408248290463863,0.7071067811865476,0.14433756729740627),
 Vector3(-0.40824829046386313,-0.7071067811865475,0.14433756729740638),
 Vector3(1.1102230246251565e-16,0,-0.43301270189221935)]
Center position:
Vector3(0.25,0.25,0.25)
And orientation:
Quaternion((-0.7692737357538557,0.5902844985873291,-0.24450384497347377),0.9878610573978008)

/ The second one:  */
Local coords:
[Vector3(1.540585613069975,-2.7755575615628914e-17,0.03994957824318643),
 Vector3(-0.5735312506428961,0.7071067811865476,0.21462037306834483),
 Vector3(-0.5735312506428962,-0.7071067811865477,0.2146203730683448),
 Vector3(-0.3935231117841831,-2.7755575615628914e-17,-0.46919032437987607)]
Center position:
Vector3(0.5,0.25,0.25)
And orientation:
Quaternion((-0.947296213713065,0.29597311537489573,-0.12259607848609863),0.8244158709535887)

Then, we use 'shape.setVertices()' function to pass the coords of the second 
element to the first one:
O.bodies[0].shape.setVertices(b)
/ The first one's geometrical parameters after calling 
'setVertices':  */
Local coords:
[Vector3(1.540585613069975,-2.7755575615628914e-17,0.03994957824318643),
 Vector3(-0.5735312506428961,0.7071067811865476,0.21462037306834483),
 Vector3(-0.5735312506428962,-0.7071067811865477,0.2146203730683448),
 Vector3(-0.3935231117841831,-2.7755575615628914e-17,-0.46919032437987607)]
Center position:
Vector3(0.25,0.25,0.25)
And orientation:
Quaternion((-0.7692737357538557,0.5902844985873291,-0.24450384497347377),0.9878610573978008)

It seems that the 'setVertices() function only changed the Local coords of the 
element, leaving Center position and orientation of the element unchanged, 
which will make the global coordinates of the element go wrong.
Could you please help me find out a solution to correct this? Thank you very 
much!


-- 
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 #275973]: Mannually Update Location of Components of Clumps

2015-12-01 Thread MikeZhao
Question #275973 on Yade changed:
https://answers.launchpad.net/yade/+question/275973

Status: Answered => Solved

MikeZhao confirmed that the question is solved:
Thank you for your work~

-- 
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 #275973]: Mannually Update Location of Components of Clumps

2015-11-30 Thread MikeZhao
Question #275973 on Yade changed:
https://answers.launchpad.net/yade/+question/275973

MikeZhao gave more information on the question:
Actually I just tried to use the simplest example to describe the
problem I've encountered:

I am working on FEM-DEM coupling now, and I want to use DEM to build a
contact detector for different FE meshes. So I first transferred
elements of FEM into utils.tetraPoly in DEM. To make calculation more
efficient, I made tetraPoly that belongs to the same FE mesh a clump.
And I need to update the positions of those tetraPoly in DEM using the
positions of FEM's elements, so I need to change the positions of those
tetraPoly mannually..

-- 
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 #275973]: Mannually Update Location of Components of Clumps

2015-11-29 Thread MikeZhao
New question #275973 on Yade:
https://answers.launchpad.net/yade/+question/275973

I did a test about mannually updating location of one clump's components:

## here is the example:
a = utils.sphere([0,0,0],1)
b = utils.sphere([0,0,1],1)
c = utils.sphere([0,0,2],1)
O.bodies.appendClumped([a,b,c]);

##Now, I want to mannually change the position of 'a':
a.state.pos = Vector3(0,0,100)

##However I don't know what information of the clump that contains 'a' should 
be changed.
##If I use O.step(), then the clump will set the location of 'a' back.

O.step()
a.state.pos
##Output:Vector3(-8.529034726309396e-18,4.7316020007752715e-17,-1.1102230246251565e-16)
##According to those examples about Clump, I figured out one solution: That is 
to remove a from the clump and then add it back:

O.bodies.releaseFromClump(0,3)
O.bodies.addToClump([0],3)
O.step()
a.state.pos
##Output:Vector3(9.525366606588648e-15,1.6515434853037192e-14,100)
##This is doable, but it will make the calculation really slow when there are 
many components. So I want to know if you can figure out some better solution?

Thanks for your precious time, and I'm looking forward to hearing from you!





-- 
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 #275838]: Question about utils.tetraPoly

2015-11-28 Thread MikeZhao
New question #275838 on Yade:
https://answers.launchpad.net/yade/+question/275838

Hi there,
Recently I have been looking into Yade's tetra element. There is a question 
concerning me:

In yade, I first added a tetraPoly:
O.bodies.append(utils.tetraPoly([[0,0,0],[1,0,0],[0,1,0],[0,0,1]]))
And I looked its details:
O.bodies[0].shape.v
It returned:
[Vector3(-0.7071067811865476,-0.408248290463863,-0.14433756729740643),
 Vector3(2.7755575615628914e-17,0,0.43301270189221935),
 Vector3(-2.220446049250313e-16,0.8164965809277261,-0.14433756729740646),
 Vector3(0.7071067811865477,-0.40824829046386313,-0.14433756729740652)]
At first I thought it might be a local coordinates, however the center of this 
tetra was:
Vector3(0.25,0.25,0.25)
So I want to know how is tetra.shape.v calculated and how to change it into the 
normal global coordinates?



-- 
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 #275840]: Tetra/TetraPoly Element can not use clump?

2015-11-28 Thread MikeZhao
New question #275840 on Yade:
https://answers.launchpad.net/yade/+question/275840

Hi there,

I've done a small test with tetra/tetraPoly element, and I found out that it's 
not doable to make an assembly of tetras a clump, here is the code:

b=range(2)
b[0] = utils.tetraPoly([[0,0,0],[1,0,0],[0,1,0],[0,0,1]])
b[1] = utils.tetraPoly([[0,0,0],[1,0,0],[0,1,0],[0,0,-1]])
O.bodies.appendClumped([b[0],b[1]])
#O.bodies[2] is the clump:
O.bodies[2].shape.members

# below is the output 
{0: (Vector3(nan,nan,nan), Quaternion((nan,nan,nan),6.283185307179586)),
 1: (Vector3(nan,nan,nan), Quaternion((nan,nan,nan),6.283185307179586))}

#and I added an egine and called O.step():
O.engines = [
   ForceResetter(),
   InsertionSortCollider([Bo1_Polyhedra_Aabb()]),
   InteractionLoop(
   [Ig2_Polyhedra_Polyhedra_PolyhedraGeom()],
   [Ip2_PolyhedraMat_PolyhedraMat_PolyhedraPhys()],
   [PolyhedraVolumetricLaw()]
   ),
   NewtonIntegrator(damping=0),
  ]
O.step()
O.bodies[0].state.pos

# below is the output 
Vector3(nan,nan,nan)

I want to know if this could be modified? Because dividing those tetras into 
different clumps can make the calculation much more efficient.

Thanks for your precious time. I'm looking forward to your reply:-)







-- 
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 #275838]: Question about utils.tetraPoly

2015-11-28 Thread MikeZhao
Question #275838 on Yade changed:
https://answers.launchpad.net/yade/+question/275838

Status: Answered => Solved

MikeZhao confirmed that the question is solved:
Now I get it. Thanks for your explanation:-)

-- 
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 #275840]: Tetra/TetraPoly Element can not use clump?

2015-11-28 Thread MikeZhao
Question #275840 on Yade changed:
https://answers.launchpad.net/yade/+question/275840

Status: Answered => Solved

MikeZhao confirmed that the question is solved:
My version is 2015-03-15..Maybe I need to update my source code, thanks
for sharing this information!

-- 
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 #275840]: Tetra/TetraPoly Element can not use clump?

2015-11-28 Thread MikeZhao
Question #275840 on Yade changed:
https://answers.launchpad.net/yade/+question/275840

MikeZhao posted a new comment:
Maybe it's 2014-03-15.. The reason why I didn't update much is that I'm
working on coupling FEM and DEM based on some scholars' previous work, I
thought updating might cause some strange trouble..

-- 
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 #275707]: Where to acquire several contact models

2015-11-27 Thread MikeZhao
Question #275707 on Yade changed:
https://answers.launchpad.net/yade/+question/275707

Status: Answered => Solved

MikeZhao confirmed that the question is solved:
I see, there is the Ig2_Tetra_Tetra_TTetraSimpleGeom() contact model
somewhere in the program, however it's not in an isolated file, and that
the reason why I didn't find it.. I just planned to see how was the
contact model built in detail..

Thank you again for your quick response, and have a nice day!

-- 
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 #275707]: Where to acquire several contact models

2015-11-27 Thread MikeZhao
Question #275707 on Yade changed:
https://answers.launchpad.net/yade/+question/275707

MikeZhao confirmed that the question is solved:
Thanks Jan Stránský, that solved my question.

-- 
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 #275707]: Where to acquire several contact models

2015-11-26 Thread MikeZhao
New question #275707 on Yade:
https://answers.launchpad.net/yade/+question/275707

Hi there,

On Yade's manual there is a contact model called 
Ig2_Tetra_Tetra_TTetraSimpleGeom(), but in Yade's trunk ( released on 3.15 ) I 
didn't find any contact model related to tetra element. I want to know where to 
get this contact model?

And would you please tell me whether there is a contact model that can 
detect contact between facets and calculate internal forces?

Thank you for your time and patience. And Merry Thanksgiving Day! 

-- 
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 #271679]: Want to know how to call parallel within a python script

2015-09-22 Thread MikeZhao
New question #271679 on Yade:
https://answers.launchpad.net/yade/+question/271679

Nowadays I am trying to make the calculation faster , and I want to use its 
parallel function.

We usually use the command ‘ yade -j4 file.py' to call more cores when we do 
simulations via Yade alone. (file.py is the python script) However, I am now 
trying to couple Yade and FEM, so I can not use that command to call multiple 
cores. I wonder if I can add some commands into the file to call more cores?

 

-- 
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 #267838]: How to use function updateAttrs

2015-06-06 Thread MikeZhao
New question #267838 on Yade:
https://answers.launchpad.net/yade/+question/267838

There are many updateAttrs function in different classes, According to my 
knowledge, this function is used to change attributes of classes with a 
dictionary. But what's the parameter that I should give?

For instance, I'd like to update  yade.O.bodies[1].state.pos to [0,0,0], I 
write a code like that:
yade.O.bodies[1].state.updateAttrs({yade.O.bodies[1].state.pos:[0,0,0]})

and the result is:
TypeError: No registered converter was able to produce a C++ rvalue of type 
std::string from this Python object of type Vector3

How should I modify it?

Hope to get some help,

thanks.


-- 
You received this question notification because you are a member of
yade-users, which 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 #267761]: Probable mistake: Data update using function updateElements in yade.utils

2015-06-05 Thread MikeZhao
Question #267761 on Yade changed:
https://answers.launchpad.net/yade/+question/267761

Status: Answered = Open

MikeZhao is still having a problem:
Eh..I am a freshman to Yade, so I am not quite clear. I can describe
what I have encountered:

I have tried to use some new positions of vertices to update locations
of facet, but after updating by using function updateElements,   there
will be not forces on the facets. And I tried to make some change: If I
set the facet.state.pos to the inscribed Circle Center of the global
coordinates of the vertices of facet and set facet.shape.vertice to the
local position(global -  inscribed Circle Center), there will be forces
on the facet.

But making this change will cause some problem about the memory: Usage
of memory will keep growing if I try to use function updateElements
repeatedly by using 'for i in range(1000)'...

Hope to get some solution,

thanks.

-- 
You received this question notification because you are a member of
yade-users, which 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