Re: [Yade-users] [Question #706533]: Visualise forcechain in paraview

2023-05-08 Thread Leonard
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Answered => Solved

Leonard confirmed that the question is solved:
Thanks Karol Brzezinski, 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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Karol Brzezinski
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi Leonard,

OK, I get it. You need to apply the 'tube' filter to the
"CellDatatoPointData1', not directly to the 'example.vtk'.

Cheers,
Karol

-- 
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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Leonard
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Answered => Open

Leonard is still having a problem:
Hi Karol

Thanks very much. I will try to avoid external links next time.

The state file can be found here:

https://we.tl/t-6NtnmZ6IR0

Thanks.
Leonard

-- 
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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Karol Brzezinski
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi Leonard,

Exactly, it is the list that you pointed to in [3]. Your example file
[2] works well on my computer. Maybe there is something wrong with the
previous filter... so you don't see the proper data.  Generally,
external links are not recommended... but we are discussing some
already. So, could you save and upload the Paraview state file as well?

Cheers,
Karol

-- 
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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Leonard
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Answered => Open

Leonard is still having a problem:
Hi Karol,

Many thanks for your reply.

I updated my paraview version to 5.10.1. But it has the same problem.

Which drop-down list do you mean? I add a new picture in [3] to
illustrate the drop-down list I understood from you. But I couldn't open
that drop-down list (it is empty).

Does it work well using your paraview to visualise the example.vtk file
I shared in #2? I am asking this because I wonder if it is the problem
of the example.vtk file or the problem with my paraview settings.

Thanks very much.
Leonard


[3]https://we.tl/t-5wFdBniP3j

-- 
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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Karol Brzezinski
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Open => Answered

Karol Brzezinski proposed the following answer:
I mean that you should have selected the 'forceN' from the drop-down
list at the top of the 'tube' filter settings (it is not selected on the
screen that you attached). This point is not mentioned in the
instructions because Paraview usually does this part automatically (I
tested it on versions 5.7.0 and 5.10.1).

Cheers,
Karol

-- 
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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Leonard
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Answered => Open

Leonard is still having a problem:
Hi Karol,

Do you mean that your paraview automatically shows the force chain scaled with 
its magnitude?
May I ask that what version of paraview you use? The one I use is 5.9.1.

Thanks.
Leonard

-- 
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 #706540]: Trouble in generating sphere packing

2023-05-08 Thread Karol Brzezinski
Question #706540 on Yade changed:
https://answers.launchpad.net/yade/+question/706540

Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi Huan,

The good news is that you can cal makeCloud() multiple times with
different radii and new spheres are added to the SpherePack.

Cheers,
Karol

import random
import math
from yade import geom, pack, utils, plot, ymport

# Define material properties
youngModulus = 1e7
poissonRatio = 0.25
density = 2000

# Create material
material = O.materials.append(FrictMat(young=youngModulus, 
poisson=poissonRatio, density=density))

# Define cylinder with funnel parameters
center = (0, 0, 0)
diameter = 0.102
height = 0.064

# create cylindrical body with radius 0.102 m and height 0.064 m
cylinder = geom.facetCylinder(center=center, radius=diameter/2, height=height, 
segmentsNumber=80, wallMask=6)

# assign material to each body in the cylinder
for body in cylinder:
body.bodyMat = material

# add cylinder to simulation
O.bodies.append(cylinder)

# Define cylinder with funnel parameters
center1 = (0,0,height/2)
dBunker = 0.2
dOutput = 0.102
hBunker = 0
hOutput = 0.08
hPipe = 0

# create funnel as a bunker with diameter 0.102 m, height 0.064 m
funnel = geom.facetBunker(center=center1, dBunker=dBunker, dOutput=dOutput, 
hBunker=hBunker,hOutput=hOutput, hPipe=hPipe, segmentsNumber=80, wallMask=4)

# assign material to each body in the funnel
for body in funnel:
body.bodyMat = material

# add funnel to simulation
O.bodies.append(funnel)

## new part
rMean1 = (0.0125+0.019)/4
rRelFuzz1 = (0.019-0.0125)/4/rMean1 
num1 = 28

# (other sizes) 

rMean4 = (0.00475+0.00236)/4
rRelFuzz4 = (0.00475-0.00236)/4/rMean4 
num4 = 18997


sp = pack.SpherePack()
## just call makeCloud() multiple times before sending to simulation
sp.makeCloud((-dBunker/3,-dBunker/3,2*height),(dBunker/3,dBunker/3,10*height), 
rMean = rMean1, rRelFuzz = rRelFuzz1, num = num1)
#(...)
sp.makeCloud((-dBunker/3,-dBunker/3,2*height),(dBunker/3,dBunker/3,10*height), 
rMean = rMean4, rRelFuzz = rRelFuzz4, num = num4)
sp.toSimulation()

-- 
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 #706529]: Seeking any guidance on beginning using yade

2023-05-08 Thread Karol Brzezinski
Question #706529 on Yade changed:
https://answers.launchpad.net/yade/+question/706529

Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi Hongwei,

I guess that Yade should work more stable on LST Ubuntu versions (e.g.
22.04), since it is tested for those versions when a new feature is
merged in the master branch.

Cheers,
Karol

-- 
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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Karol Brzezinski
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Karol Brzezinski posted a new comment:
I noticed that instructions don't mention this part, but it is usually
selected automatically (e.g., I didn't have to do this in my Paraview).

Karol

-- 
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 #706533]: Visualise forcechain in paraview

2023-05-08 Thread Karol Brzezinski
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi Leonard,

Please select 'forceN' from 'Scalar' list at the top of the tubę filter
settings.

Cheers,
Karol

-- 
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 #706540]: Trouble in generating sphere packing

2023-05-08 Thread Huan
Question #706540 on Yade changed:
https://answers.launchpad.net/yade/+question/706540

Description changed to:
Hello,

I'm trying to create a random sphere packing that consists of roughly 21,182 
particles for Marshall hot mix design simulation.
I am trying to generate:
28 particles of aggregates size (0.0125<=x<0.019)
86 particles of aggregates size (0.0095<=x<0.0125)
2,071 particles of aggregates size (0.000475<=x<0.0095)
18,997 particles of aggregates size (0.00236<=x<0.00475)
I want to create it randomly to the following code, but I was only able to 
generate it in layer per layer by using makeCloud.

import random
import math
from yade import geom, pack, utils, plot, ymport

# Define material properties
youngModulus = 1e7
poissonRatio = 0.25
density = 2000

# Create material
material = O.materials.append(FrictMat(young=youngModulus, 
poisson=poissonRatio, density=density))

# Define cylinder with funnel parameters
center = (0, 0, 0)
diameter = 0.102
height = 0.064

# create cylindrical body with radius 0.102 m and height 0.064 m
cylinder = geom.facetCylinder(center=center, radius=diameter/2, height=height, 
segmentsNumber=80, wallMask=6)

# assign material to each body in the cylinder
for body in cylinder:
body.bodyMat = material

# add cylinder to simulation
O.bodies.append(cylinder)

# Define cylinder with funnel parameters
center1 = (0,0,height/2)
dBunker = 0.2
dOutput = 0.102
hBunker = 0
hOutput = 0.08
hPipe = 0

# create funnel as a bunker with diameter 0.102 m, height 0.064 m
funnel = geom.facetBunker(center=center1, dBunker=dBunker, dOutput=dOutput, 
hBunker=hBunker,hOutput=hOutput, hPipe=hPipe, segmentsNumber=80, wallMask=4)

# assign material to each body in the funnel
for body in funnel:
body.bodyMat = material

# add funnel to simulation
O.bodies.append(funnel)

Thank you,
Huan

-- 
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 #706190]: Contacts between walls and particles

2023-05-08 Thread Sanel Avdić
Question #706190 on Yade changed:
https://answers.launchpad.net/yade/+question/706190

Status: Answered => Solved

Sanel Avdić 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


Re: [Yade-users] [Question #706533]: Visualise forcechain in paraview

2023-05-08 Thread Leonard
Question #706533 on Yade changed:
https://answers.launchpad.net/yade/+question/706533

Status: Answered => Open

Leonard is still having a problem:
Hi Karol,

Thank you for your reply.

Sorry I still couldn't make it.

I followed the instructions and played with Radius and Radius factors,
but the force chain with red color (which means it has a high force)
shows the same tube size as those force chains in blue color (blue
represents low force). Actually, it doesn't change anything when I
adjust Radius factors.

May I invite you to have a look at my settings in paraview (together
with an example vtk file)? Which can be found in [2].

Thanks
Leonard

[2]https://we.tl/t-IbGkg81hM5

-- 
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 #706540]: Trouble in generating sphere packing

2023-05-08 Thread Huan
New question #706540 on Yade:
https://answers.launchpad.net/yade/+question/706540

Hello,

I'm trying to create a random sphere packing that consists of roughly 21,182 
particles for Marshall hot mix design simulation.
I am trying to generate:
28 particles of aggregates size (0.0125<=x<0.019)
86 particles of aggregates size (0.0095<=x<0.0125)
2,071 particles of aggregates size (0.000475<=x<0.0095)
18,997 particles of aggregates size (0.00236<=x<0.00475)
I want to create it randomly, but I was only able to generate it in layer per 
layer by using makeCloud.

Thank you,
Huan

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