Re: [Yade-users] [Question #697260]: are the vertices of the cell the center of the sphere

2021-06-20 Thread Zhicheng Gao
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Zhicheng Gao confirmed that the question is solved:
Thanks Robert Caulk, 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


Re: [Yade-users] [Question #697260]: are the vertices of the cell the center of the sphere

2021-06-17 Thread Robert Caulk
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Expired => Solved

Robert Caulk changed the question status:
Changing status to "solved" to avoid launchpad janitor.

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-06-17 Thread Launchpad Janitor
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-06-01 Thread Zhicheng Gao
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Answered => Open

Zhicheng Gao is still having a problem:
Dear Robert,
If I want to get the constriction size distribution, whether these same cells 
make an effect?

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-06-01 Thread Robert Caulk
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Open => Answered

Robert Caulk proposed the following answer:
the two cells are the same cell :)

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-06-01 Thread Zhicheng Gao
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Answered => Open

Zhicheng Gao is still having a problem:
On the basis of Chareyre's answer, I would like to know how to determine
which three bodies are on the shared facet for such two cells.

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-05-28 Thread Zhicheng Gao
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Zhicheng Gao posted a new comment:
Dear Chareyre, thank you for your reply. I would like to know how to
determine which three bodies are on the shared facet for such two cells.

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-05-28 Thread Chareyre
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Open => Answered

Chareyre proposed the following answer:
That's because some particles are duplicated in order to mimick periodicity, si 
the two cells are not the same in memory. Why is it a problem?
 Message d'origine De : Zhicheng Gao 
 Date : 28/05/2021  17:16  (GMT+01:00) À 
: yade-users@lists.launchpad.net Objet : Re: [Yade-users] [Question #697260]: 
are the vertices of the cell
  the center of the sphere Question #697260 on Yade 
changed:https://answers.launchpad.net/yade/+question/697260    Status: Solved 
=> OpenZhicheng Gao is still having a problem:Hello,I have a new problem, The 
code is shown below:.periodic=TrueO.cell.hSize=Matrix3(2,0,0, 0,2,0, 
0,0,2)s0=utils.sphere((0.3,0.3,0.3),radius=0.2)s1=utils.sphere((1,0.3,0.3),radius=0.21)s2=utils.sphere((0.3,1,0.3),radius=0.28)s3=utils.sphere((1,1,0.3),radius=0.21)s4=utils.sphere((0.3,0.3,1),radius=0.21)s5=utils.sphere((1,0.3,1),radius=0.31)s6=utils.sphere((0.3,1,1),radius=0.18)s7=utils.sphere((1,1,1),radius=0.31)s8=utils.sphere((0.5,0.5,0.5),radius=0.3)O.bodies.append(s0)O.bodies.append(s1)O.bodies.append(s2)O.bodies.append(s3)O.bodies.append(s4)O.bodies.append(s5)O.bodies.append(s6)O.bodies.append(s7)O.bodies.append(s8)flow=PeriodicFlowEngine()flow.emulateAction()csdList=flow.getConstrictionsFull()a=csdList[1]b=flow.getVertices(a[0])c=flow.getVertices(a[1])I
 found that the body ids in b and c are the same, but the order is different, 
they are [7, 2, 5, 2] and [5, 2, 7, 2].Why is this happening?-- You received 
this question notification because your team yade-users isan answer contact for 
Yade.___Mailing list: 
https://launchpad.net/~yade-usersPost to : 
yade-users@lists.launchpad.netUnsubscribe : 
https://launchpad.net/~yade-usersMore 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 #697260]: are the vertices of the cell the center of the sphere

2021-05-28 Thread Zhicheng Gao
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Solved => Open

Zhicheng Gao is still having a problem:
Hello,
I have a new problem, The code is shown below:
.periodic=True
O.cell.hSize=Matrix3(2,0,0, 0,2,0, 0,0,2)
s0=utils.sphere((0.3,0.3,0.3),radius=0.2)
s1=utils.sphere((1,0.3,0.3),radius=0.21)
s2=utils.sphere((0.3,1,0.3),radius=0.28)
s3=utils.sphere((1,1,0.3),radius=0.21)
s4=utils.sphere((0.3,0.3,1),radius=0.21)
s5=utils.sphere((1,0.3,1),radius=0.31)
s6=utils.sphere((0.3,1,1),radius=0.18)
s7=utils.sphere((1,1,1),radius=0.31)
s8=utils.sphere((0.5,0.5,0.5),radius=0.3)

O.bodies.append(s0)
O.bodies.append(s1)
O.bodies.append(s2)
O.bodies.append(s3)
O.bodies.append(s4)
O.bodies.append(s5)
O.bodies.append(s6)
O.bodies.append(s7)
O.bodies.append(s8)
flow=PeriodicFlowEngine()
flow.emulateAction()

csdList=flow.getConstrictionsFull()
a=csdList[1]
b=flow.getVertices(a[0])
c=flow.getVertices(a[1])

I found that the body ids in b and c are the same, but the order is different, 
they are [7, 2, 5, 2] and [5, 2, 7, 2].
Why is this happening?

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-05-27 Thread Zhicheng Gao
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Answered => Solved

Zhicheng Gao confirmed that the question is solved:
Thank you Robert, this solved 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


Re: [Yade-users] [Question #697260]: are the vertices of the cell the center of the sphere

2021-05-27 Thread Robert Caulk
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Robert Caulk proposed the following answer:
Hello,

getVertices() returns directly the body ids of the constituent vertices.

[1]https://www.yade-
dem.org/doc/yade.wrapper.html#yade.wrapper.FlowEngine.getVertices

Cheers,

Robert

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-05-27 Thread Zhicheng Gao
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Zhicheng Gao posted a new comment:
Dear Robert,
Thank you for your answer. Whether function flow.getVertices(cellid) returns 
the coordinates of four vertices, so how can I get the id of the sphere from 
the central coordinates? Is there a function that can do this?

-- 
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 #697260]: are the vertices of the cell the center of the sphere

2021-05-27 Thread Robert Caulk
Question #697260 on Yade changed:
https://answers.launchpad.net/yade/+question/697260

Status: Open => Answered

Robert Caulk proposed the following answer:
Hello,

>Is the cell of the engine formed with the center of four spheres as the
vertex? If so, can I get the four spheres that formed the cell by
getting the four vertices of the cell through the function
flow.getVertices(cellid) ?

Yes, and yes :)

Cheers,

Robert

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