Re: [Yade-users] [Question #275840]: Tetra/TetraPoly Element can not use clump?

2015-11-28 Thread Jan Stránský
Question #275840 on Yade changed:
https://answers.launchpad.net/yade/+question/275840

Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Yang,
what version of Yade do you use? I have a version from 2015-08-05 and there
this is fixed (but not tested very much)
cheers
Jan


2015-11-28 12:27 GMT+01:00 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
>

-- 
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 Jan Stránský
Question #275840 on Yade changed:
https://answers.launchpad.net/yade/+question/275840

Jan Stránský posted a new comment:
Strange, the fix is from 2015-02-07...
http://bazaar.launchpad.net/~yade-pkg/yade/git-trunk/revision/3576
Jan

2015-11-28 17:47 GMT+01:00 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
>

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

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

Bruno Chareyre posted a new comment:
>I thought updating might cause some strange trouble..

To not update frequently is for sure causing most of the troubles. It resulted 
in wasting many developments in the last years.
So, especially if you have a complex task like a coupling, I would suggest to 
update as often as possible.

Bruno

-- 
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-12-01 Thread Bruno Chareyre
Question #275840 on Yade changed:
https://answers.launchpad.net/yade/+question/275840

Bruno Chareyre posted a new comment:
More than that, you should have small scripts integrated in the
regression tests, so that you are warned if some changes in the source
code have side effects on your code.

Beside, I would be glad to discuss your project if you wish. You can
register/write to yade-dev or email me personally, as you prefer.

Bruno

-- 
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