Re: [Yade-users] [Question #706787]: Materials changes after shpere generation

2023-05-27 Thread mohsen
Question #706787 on Yade changed:
https://answers.launchpad.net/yade/+question/706787

Status: Needs information => Open

mohsen gave more information on the question:
Hi Jan
I check it via graphical interface>inspect>bodies

-- 
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 #706787]: Materials changes after shpere generation

2023-05-27 Thread mohsen
Question #706787 on Yade changed:
https://answers.launchpad.net/yade/+question/706787

mohsen posted a new comment:
Hi Jan
I check it via graphical interface>inspect>bodies

-- 
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 #706787]: Materials changes after shpere generation

2023-05-25 Thread mohsen
Question #706787 on Yade changed:
https://answers.launchpad.net/yade/+question/706787

Summary changed to:
Materials changes after shpere generation

Description changed to:
In the name of God
Hi every one!
I encountered an strange problem. When i add some spheres bonded to each other 
using CohFrictMat in a triaxial box, exactly after addition of bonded 
particles, the wall material type changes from 'walls' to 'cube'. here is the 
MWE:

from yade import pack

### DEFINING VARIABLES AND MATERIALS ###


# The following 5 lines will be used later for batch execution

ConPre=-10
ConPre1=-5000
key='t_20%_25_100' # put you simulation's name here
targetPorosity = 0.38#the porosity we want for the packing
compFricDegree = 30 # initial contact friction during the confining phase (will 
be decreased during the REFD compaction process)
finalFricDegree = 30 # contact friction during the deviatoric loading

young=1e9 # contact stiffness
mn,mx=Vector3(0,0,0),Vector3(.3,.3,.3) # corners of the initial packing
O.materials.append(CohFrictMat(young=1e9,poisson=0.2,density=1500,isCohesive=False,frictionAngle=0,label='walls'))

## create walls around the packing
walls=aabbWalls([mn,mx],thickness=0)
wallIds=O.bodies.append(walls)

## create materials for spheres and plates
O.materials.append(CohFrictMat(young=1e6,poisson=0.48,density=1500,label='cube',frictionAngle=radians(compFricDegree),
isCohesive=True,
normalCohesion=5000,
shearCohesion=5000,
momentRotationLaw=True
))

sp=pack.SpherePack()
sp.makeCloud((0,0,0),(.3,.3,.3),rMean=.05,distributeMass=False,seed=1)

#
### DEFINING ENGINES ###


triax=TriaxialStressController(
maxMultiplier=1.+2e4/young, # spheres growing factor (fast growth)
finalMaxMultiplier=1.+2e3/young, # spheres growing factor (slow growth)
thickness = 0,
stressMask = 7,
internalCompaction=False, # If true the confining pressure is generated by 
growing particles
)

newton=NewtonIntegrator(damping=.1)

O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
InteractionLoop(

[Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.12),Ig2_Box_Sphere_ScGeom6D()],
[Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(
setCohesionNow=True,
setCohesionOnNewContacts=False,
)],

[Law2_ScGeom6D_CohFrictPhys_CohesionMoment(),Law2_ScGeom_FrictPhys_CundallStrack()]
),
triax,
newton,
]

triax.goal1=triax.goal2=ConPre1
triax.goal3=ConPre1
O.dt=0
yade.qt.Controller()

for x in [.1,.2]:
for y in [.1,.2]:
for z in [.1,.2]:
s = utils.sphere((x,y,z),.08,material='cube')
O.bodies.append(s)

###By adding the the spheres the material type of walls changes


-- 
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 #706779]: Wall disappearing

2023-05-25 Thread mohsen
Question #706779 on Yade changed:
https://answers.launchpad.net/yade/+question/706779

Status: Answered => Open

mohsen is still having a problem:
Hi Jan
That works for me too! but would you please let me know what happen if dt set 
non-zero?

-- 
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 #706787]: Materials changes after first step

2023-05-24 Thread mohsen
New question #706787 on Yade:
https://answers.launchpad.net/yade/+question/706787

In the name of God
Hi every one!
I encountered an strange problem. When i add some spheres bonded to each other 
using CohFrictMat in a triaxial box, exactly after addition of bonded 
particles, the wall material type changes from 'walls' to 'cube'. here is the 
MWE:

from yade import pack

### DEFINING VARIABLES AND MATERIALS ###


# The following 5 lines will be used later for batch execution

ConPre=-10
ConPre1=-5000
key='t_20%_25_100' # put you simulation's name here
targetPorosity = 0.38#the porosity we want for the packing
compFricDegree = 30 # initial contact friction during the confining phase (will 
be decreased during the REFD compaction process)
finalFricDegree = 30 # contact friction during the deviatoric loading

young=1e9 # contact stiffness
mn,mx=Vector3(0,0,0),Vector3(.3,.3,.3) # corners of the initial packing
O.materials.append(CohFrictMat(young=1e9,poisson=0.2,density=1500,isCohesive=False,frictionAngle=0,label='walls'))

## create walls around the packing
walls=aabbWalls([mn,mx],thickness=0)
wallIds=O.bodies.append(walls)

## create materials for spheres and plates
O.materials.append(CohFrictMat(young=1e6,poisson=0.48,density=1500,label='cube',frictionAngle=radians(compFricDegree),
isCohesive=True,
normalCohesion=5000,
shearCohesion=5000,
momentRotationLaw=True
))

sp=pack.SpherePack()
sp.makeCloud((0,0,0),(.3,.3,.3),rMean=.05,distributeMass=False,seed=1)

#
### DEFINING ENGINES ###


triax=TriaxialStressController(
maxMultiplier=1.+2e4/young, # spheres growing factor (fast growth)
finalMaxMultiplier=1.+2e3/young, # spheres growing factor (slow growth)
thickness = 0,
stressMask = 7,
internalCompaction=False, # If true the confining pressure is generated by 
growing particles
)

newton=NewtonIntegrator(damping=.1)

O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
InteractionLoop(

[Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.12),Ig2_Box_Sphere_ScGeom6D()],
[Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(
setCohesionNow=True,
setCohesionOnNewContacts=False,
)],

[Law2_ScGeom6D_CohFrictPhys_CohesionMoment(),Law2_ScGeom_FrictPhys_CundallStrack()]
),
triax,
newton,
]

triax.goal1=triax.goal2=ConPre1
triax.goal3=ConPre1
O.dt=0
yade.qt.Controller()

for x in [.1,.2]:
for y in [.1,.2]:
for z in [.1,.2]:
s = utils.sphere((x,y,z),.08,material='cube')
O.bodies.append(s)

###By adding the following lines to the terminal, the walls disppeared

#O.step()

-- 
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 #706779]: Wall disappearing

2023-05-24 Thread mohsen
Question #706779 on Yade changed:
https://answers.launchpad.net/yade/+question/706779

mohsen posted a new comment:
Another thing that happen and may help to solve the problem, is that if
the stressMask changed, for example to 4 (loading along z axis), just
the walls with the normal vector parallel to z (bodies 4 and 5)
disappear.

-- 
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 #706779]: Wall disappearing

2023-05-24 Thread mohsen
New question #706779 on Yade:
https://answers.launchpad.net/yade/+question/706779

In the name of God
Hi every one!
I encountered an strange problem. when i add some spheres bonded to each other 
using CohFrictMat in a triaxial box, by the first step the walls disappeared. 
what is wrong?
the second strange thing is that although the walls are added to simulation 
before the definition of material labeled as 'cube', however when the script is 
run, their material type is shown as 'cube'. here is the MWE:


from yade import pack

###   DEFINING VARIABLES AND MATERIALS   ###


# The following 5 lines will be used later for batch execution

ConPre=-10
ConPre1=-5000
key='t_20%_25_100' # put you simulation's name here
targetPorosity = 0.38#the porosity we want for the packing
compFricDegree = 30 # initial contact friction during the confining phase (will 
be decreased during the REFD compaction process)
finalFricDegree = 30 # contact friction during the deviatoric loading

young=1e9 # contact stiffness
mn,mx=Vector3(0,0,0),Vector3(.3,.3,.3) # corners of the initial packing
O.materials.append(CohFrictMat(young=1e9,poisson=0.2,density=1500,isCohesive=False,frictionAngle=0,label='walls'))

## create walls around the packing
walls=aabbWalls([mn,mx],thickness=0)
wallIds=O.bodies.append(walls)


## create materials for spheres and plates
O.materials.append(CohFrictMat(young=1e6,poisson=0.48,density=1500,label='cube',frictionAngle=radians(compFricDegree),
isCohesive=True,
normalCohesion=5000,
shearCohesion=5000,
momentRotationLaw=True
))

sp=pack.SpherePack()
sp.makeCloud((0,0,0),(.3,.3,.3),rMean=.05,distributeMass=False,seed=1)


#
###   DEFINING ENGINES   ###


triax=TriaxialStressController(
maxMultiplier=1.+2e4/young, # spheres growing factor (fast growth)
finalMaxMultiplier=1.+2e3/young, # spheres growing factor (slow growth)
thickness = 0,
stressMask = 7,
internalCompaction=False, # If true the confining pressure is generated by 
growing particles
)

newton=NewtonIntegrator(damping=.1)

O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
InteractionLoop(

[Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.12),Ig2_Box_Sphere_ScGeom6D()],
[Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(
setCohesionNow=True,
setCohesionOnNewContacts=False,
)],

[Law2_ScGeom6D_CohFrictPhys_CohesionMoment(),Law2_ScGeom_FrictPhys_CundallStrack()]
),
triax,
newton,
]

triax.goal1=triax.goal2=ConPre1
triax.goal3=ConPre1
O.dt=0
yade.qt.Controller()

for x in [.1,.2]:
for y in [.1,.2]:
for z in [.1,.2]:
s = utils.sphere((x,y,z),.08,material='cube')
O.bodies.append(s)

###By adding the following lines to the terminal, the walls disppeared

#O.step()


-- 
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 #706696]: Packages update

2023-05-18 Thread mohsen
Question #706696 on Yade changed:
https://answers.launchpad.net/yade/+question/706696

mohsen posted a new comment:
in My O.S, the only way is yadedaily?

-- 
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 #706696]: Packages update

2023-05-18 Thread mohsen
Question #706696 on Yade changed:
https://answers.launchpad.net/yade/+question/706696

mohsen posted a new comment:
Thanks Jan
It is KUbuntu 20.04

-- 
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 #706696]: Packages update

2023-05-18 Thread mohsen
New question #706696 on Yade:
https://answers.launchpad.net/yade/+question/706696

In the name of God
hello every one
when i want to update my yade package, it is written my package is already in 
the newest version however it is 2020.01a. Can anyone help me? I want to 
upgrade my package to 2022 version.
Here is my terminal report:

mohsen@azm:~$ sudo apt-get install --only-upgrade yade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
yade is already the newest version (2020.01a-6build2).
0 upgraded, 0 newly installed, 0 to remove and 178 not upgraded.

Regards

-- 
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 #699714]: Python problems in Yade 2021.01a

2021-12-19 Thread mohsen
Question #699714 on Yade changed:
https://answers.launchpad.net/yade/+question/699714

mohsen posted a new comment:
Hi Jan

My script is long and hard to make a MWE! but what it might help is that the 
ConcretePM.cpp file for Yade 2021 is quit different from ConcretePM.cpp file 
for YADE 2018 as i compare them. as you suggested previously, by decrease of 
time step the simulation can continue more steps but again it interrupted with 
the same error (Aborted (core dumped)).
I tried to present a MWE.
Regards

-- 
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 #699714]: Python problems in Yade 2021.01a

2021-12-15 Thread mohsen
Question #699714 on Yade changed:
https://answers.launchpad.net/yade/+question/699714

Status: Answered => Open

mohsen is still having a problem:
Ye Jan
This is an error for an script using cpm material for bonded agglomerates. this 
script work properly in Yade 2018. do you have any idea?
###
Welcome to Yade 20211203-6160~581d3d8~focal1 
Using python version: 3.8.10 (default, Sep 28 2021, 16:10:42) 
[GCC 9.3.0]
TCP python prompt on localhost:9000, auth cookie `cukdse'
XMLRPC info provider on http://localhost:21000
Running script TRRepSandCalRealDimConsDtNewShTandSTireCalStepCAlmMod2To3.py
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion method 
ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion method 
ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion method 
ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix already registered; second conversion 
method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix, 2, 1, 0, 2, 1> already registered; second 
conversion method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix, 3, 1, 0, 3, 1> already registered; second 
conversion method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix, 6, 1, 0, 6, 1> already registered; second 
conversion method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix, -1, 1, 0, -1, 1> already registered; second 
conversion method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix, 3, 3, 0, 3, 3> already registered; second 
conversion method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix, 6, 6, 0, 6, 6> already registered; second 
conversion method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Matrix, -1, -1, 0, -1, -1> already registered; 
second conversion method ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::Quaternion already registered; second conversion method 
ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::AlignedBox already registered; second conversion method 
ignored.
:219: RuntimeWarning: to-Python converter for 
Eigen::AlignedBox already registered; second conversion method 
ignored.
python3.8: /builds/yade-dev/trunk/deb/yadedaily/pkg/dem/ConcretePM.cpp:447: 
virtual bool yade::Law2_ScGeom_CpmPhys_Cpm::go(boost::shared_ptr&, 
boost::shared_ptr&, yade::Interaction*): Assertion 
`!math::isnan(sigmaT[1])' failed.
Aborted (core dumped)


-- 
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 #699697]: Python version in Yade 2021.01a

2021-12-06 Thread mohsen
Question #699697 on Yade changed:
https://answers.launchpad.net/yade/+question/699697

Status: Answered => Open

mohsen is still having a problem:
Dear Jérôme:
thank you very much! I think you addressed me a cmake file, how ever i needed a 
revision of these commands compatible for python2:

sudo apt install cmake git freeglut3-dev libloki-dev libboost-all-dev fakeroot \
dpkg-dev build-essential g++ python3-dev python3-ipython python3-matplotlib \
libsqlite3-dev python3-numpy python3-tk gnuplot libgts-dev python3-pygraphviz \
libvtk6-dev libeigen3-dev python3-xlib python3-pyqt5 pyqt5-dev-tools 
python3-mpi4py \
python3-pyqt5.qtwebkit gtk2-engines-pixbuf python3-pyqt5.qtsvg 
libqglviewer-dev-qt5 \
python3-pil libjs-jquery python3-sphinx python3-git libxmu-dev libxi-dev 
libcgal-dev \
help2man libbz2-dev zlib1g-dev libopenblas-dev libsuitesparse-dev \
libmetis-dev python3-bibtexparser python3-future coinor-clp coinor-libclp-dev \
python3-mpmath libmpfr-dev libmpfrc++-dev libmpc-dev

And about the personal note: you are right; but i am at the middle of a work 
and should finish it. Hence i should try that!
Indeed i use new version of YADE for my new projects.
Regards

-- 
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 #699697]: Python version in Yade 2021.01a

2021-12-05 Thread mohsen
Question #699697 on Yade changed:
https://answers.launchpad.net/yade/+question/699697

Status: Solved => Open

mohsen is still having a problem:
Dear Ian
about using Ref. [2] i think in that case we need the python 2 modules; however 
the prerequisites in the web page are now set for python3 [3]. how can i access 
the prerequisites for python2. is there any archive?


https://yade-dem.org/doc/installation.html#prerequisites

-- 
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 #699714]: Python problems in Yade 2021.01a

2021-12-01 Thread mohsen
New question #699714 on Yade:
https://answers.launchpad.net/yade/+question/699714

In the name of god

Hi every one.

I encountered a problem in my compiled YADE 2021.01a. i wrote a simple code to 
be run but i received an strange error:
##
In [1]: b=[1,2,3];c=[b,b,b,]
 
In [2]: for kk in c: 
   ...:  a=[x/max(kk) for x in kk] 

---
NameError Traceback (most recent call last)
~/YadeGit/master2021Hertz/install/bin/yade-2021.01a in 
  1 for kk in c:
> 2 a=[x/max(kk) for x in kk]
  3 

~/YadeGit/master2021Hertz/install/bin/yade-2021.01a in (.0)
  1 for kk in c:
> 2 a=[x/max(kk) for x in kk]
  3 

NameError: name 'kk' is not defined
##
I checked the code for both python 2 and 3 and there was no problem.

Any help?

-- 
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 #699697]: Python version in Yade 2021.01a

2021-12-01 Thread mohsen
Question #699697 on Yade changed:
https://answers.launchpad.net/yade/+question/699697

Status: Answered => Solved

mohsen 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 #699697]: Python version in Yade 2021.01a

2021-11-30 Thread mohsen
New question #699697 on Yade:
https://answers.launchpad.net/yade/+question/699697

In the name god
Hi everyone
I use KUbuntu 20.04 LTS. I compile YADE 2021.01 a and run it. the terminal 
shows yade uses python version of 3.8.10:

..
..
Using python version: 3.8.10 (default. Sep 28 2021, 16:10:42)
..
..

However all of my script are based on the python 2. what can i do?!
Please note that my default python version is 2.7.18 although the 3.8 is 
installed too.

Regards

-- 
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 #698036]: timestep

2021-08-07 Thread mohsen
Question #698036 on Yade changed:
https://answers.launchpad.net/yade/+question/698036

Status: Answered => Solved

mohsen 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 #698036]: timestep

2021-08-07 Thread mohsen
Question #698036 on Yade changed:
https://answers.launchpad.net/yade/+question/698036

mohsen posted a new comment:
Thanks Jan

-- 
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 #698036]: timestep

2021-07-22 Thread mohsen
Question #698036 on Yade changed:
https://answers.launchpad.net/yade/+question/698036

mohsen posted a new comment:
Hi and very thanks for your answer

i understand.
but the aim was just to rotate the facets and because of that i set O.dt=1.  I 
do not know why it changes automatically when the spheres are included in the 
simulations?

-- 
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 #698036]: timestep

2021-07-18 Thread mohsen
New question #698036 on Yade:
https://answers.launchpad.net/yade/+question/698036

In the name of god

Hi Every one. when i need to rotate a group of facet by rotation engine i set 
rotation angle to desired one and O.dt=1 and run just one step
to follow this all the time the default engine called 'globaltimestepper' 
change the dt and hence cases problems. 
I delete this engine and now i can easily rotate the group of facets by one 
step to desired rotation angle. this is the code:

###
from yade import ymport
fctIds= O.bodies.append(ymport.gmsh('conveyor3.mesh',scale=0.001,color=(1,0,0), 
mask=5))
O.engines=O.engines[0:3]+O.engines[4:5]
O.engines+=[RotationEngine(angularVelocity=-.16+radians(ba),ids=fctIds,rotateAroundZero=True,
 rotationAxis=(1,0,0),zeroPoint=(.5,1.5,.5))]
O.dt=1

O.run(2)

###
(from this MWE i have a question. if i run the simulation just one step nothing 
happens. why?!)

when i add some sphere to my simulation and then engines, everything goes wrong 
and there is no rotation as expected. and there is no rotation. this is the 
code;

##
from numpy.linalg import norm
import numpy as np

#mat=O.materials.append(ViscElMat(density=Density,frictionAngle=frictionAngle,tc=tc,en=en,et=es))
id_Mat=O.materials.append(FrictMat(young=1e6,poisson=0.2,density=7800,frictionAngle=1))
walls=O.materials[id_Mat]


## Import wall's geometry
from yade import ymport
fctIds= O.bodies.append(ymport.gmsh('conveyor3.mesh',scale=0.001,color=(1,0,0), 
mask=5,material=walls))
O.engines=O.engines[0:3]+O.engines[4:5]
O.engines+=[RotationEngine(angularVelocity=-.16+radians(50),ids=fctIds,rotateAroundZero=True,
 rotationAxis=(1,0,0),zeroPoint=(.5,1.5,.5))]
O.dt=1
O.run(2)

sp=pack.SpherePack()
sp.makeCloud((-0.2,-0.88,0.65),(0.2,1.0,1.55),rMean=0.075, rRelFuzz=0.3,num=100)
particles=O.bodies.append([sphere(c,r,mask=3,material=walls) for c,r in sp])


### Timestep 
O.dt=.0002


O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(), Ig2_Facet_Sphere_ScGeom()],
[Ip2_FrictMat_FrictMat_FrictPhys()],
[Law2_ScGeom_FrictPhys_CundallStrack()]
),
NewtonIntegrator(damping=0.2,gravity=[0,0,-10], mask=2),
DomainLimiter(lo=(-0.6,-1.0,-10.00),hi=(0.6,3.0,3.0),iterPeriod=200)
]


##
Any Help?

-- 
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 #690058]: Apply force on sphere particles

2020-04-20 Thread mohsen
Question #690058 on Yade changed:
https://answers.launchpad.net/yade/+question/690058

Status: Open => Answered

mohsen proposed the following answer:
Hi Son
You blocked the transition in y direction:
s1.state.blockedDOFs='y'

just delete this line and the the spheres would move

Regards

-- 
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 #690058]: Apply force on sphere particles

2020-04-20 Thread mohsen
Question #690058 on Yade changed:
https://answers.launchpad.net/yade/+question/690058

mohsen proposed the following answer:
The other one:

you should close the O.engines list by inserting ]; i.e.:


  NewtonIntegrator(damping=.1,exactAsphericalRot=True,gravity=(0.0,0.0,0.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 #680334]: cohesion between polyhedral particles

2019-04-26 Thread mohsen
Question #680334 on Yade changed:
https://answers.launchpad.net/yade/+question/680334

mohsen posted a new comment:
Thanks Jan

Do you mean the same as following:

InteractionLoop(
[Ig2_Polyhedra__Polyhedra__ScGeom()],# collision 
geometry
[Ip2_CpmMat_CpmMat_CpmPhys()], # collision "physics"
[Law2_ScGeom_CpmPhys_Cpm]   # contact law -- apply forces
),
?
It would not work since there is no particle with CpmMat in scene, but they are 
all of PolyhedraMat.
Hence as you said currently it is not possible to model two polyhedras with a 
bond considering both cohesion and tension between two particles?


MWE would be appreciated if you had time.

Regards

-- 
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 #680334]: cohesion between polyhedral particles

2019-04-24 Thread mohsen
Question #680334 on Yade changed:
https://answers.launchpad.net/yade/+question/680334

mohsen posted a new comment:
Hi every one to

I joined this discussion since it is my question too.
@ Robert:

It seems that some attributes have been added to PolyhedraMat  that
could model cohesion such as : sigmaCZ. so it seems that comment #1  in
your referenced question is not valid now. Am i right?

@ Jan:
i think the question refers to the cohesion between the polyhedra particles and 
there is no sphere.
Do you mean to set the attributes in PolyhedraMat such as:
sigmaCZ
strengthTau

and continuing the same as cohesive spheres?
.
Can you please put a MWE here!

Regards

-- 
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 #676746]: JCFpmState Error

2018-12-22 Thread mohsen
Question #676746 on Yade changed:
https://answers.launchpad.net/yade/+question/676746

mohsen posted a new comment:
@ Bruno

I tried to overwrite the state; however  after overwriting JCFpmState 
parameters have no initial value and parameters should be assigned again that 
is not sensible.
I think the source should be modified.

-- 
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 #676746]: JCFpmState Error

2018-12-16 Thread mohsen
Question #676746 on Yade changed:
https://answers.launchpad.net/yade/+question/676746

mohsen posted a new comment:
I think it is a bug!
It should be solve in the source

-- 
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 #676746]: JCFpmState Error

2018-12-12 Thread mohsen
Question #676746 on Yade changed:
https://answers.launchpad.net/yade/+question/676746

mohsen posted a new comment:
To clarify the problem i should say that every thing is ok when using
sphere and runing with sphres. however the problem rises up when we use
the reaplaceByClump() where the generated spheres of one clump are
defined with ordinary 'state' not 'JCFpmState'! however the material of
new generated clumps is JCFpmMat.

-- 
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 #676746]: JCFpmState Error

2018-12-11 Thread mohsen
Question #676746 on Yade changed:
https://answers.launchpad.net/yade/+question/676746

mohsen posted a new comment:
Hi Jan,
So I continue posting in this question or the one you referred?

-- 
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 #676746]: JCFpmState Error

2018-12-11 Thread mohsen
New question #676746 on Yade:
https://answers.launchpad.net/yade/+question/676746

In the name of God
Dear all

When i trying to replace my spheres in a triaxial test by clumps with the 
material of JCFpmMat, i encounter this error:

RuntimeError: Body #14: Body::material type JCFpmMat doesn't correspond to 
Body::state type State (should be JCFpmState instead).

Please note that with no replacement with clumps, there is no problem. The 
other point is that if i reduce the Rmean to generate more spheres, then script 
would not be run. Any idea?!

the MWE is as following:


from yade import pack,plot
from yade import export, ymport
import random
from yade import utils


### DEFINING VARIABLES AND MATERIALS ###


key='_Triax-J2_'
intRadius= 1

mn,mx=Vector3(0,0,0),Vector3(.1,.1,.1) # corners of the initial packing

## create materials for spheres and plates
id_Mat=O.materials.append(JCFpmMat())
Mat=O.materials[id_Mat]

#frictionless walls
O.materials.append(FrictMat(label='walls'))

## create walls around the packing
walls=aabbWalls([mn,mx],thickness=0,material='walls')
wallIds=O.bodies.append(walls)

## use a SpherePack object to generate a random loose particles packing
sp=pack.SpherePack()
sp.makeCloud(minCorner=mn,maxCorner=mx,rMean=.029,rRelFuzz=0.0,periodic=False,num=5000)
O.bodies.append([sphere(c,r,material=Mat) for c,r in sp])


relRadList1=[1,1]
relPosList1=[[0,0,0],[.5,.5,.5]]
templates= []
templates.append(clumpTemplate(relRadii=relRadList1,relPositions=relPosList1))
O.bodies.replaceByClumps(templates,[1.0], discretization=5)


###
## DEFINING ENGINES ###
###

triax=TriaxialStressController(
 thickness = 0,
 stressMask = 7,
 internalCompaction=False,
)

newton=NewtonIntegrator(damping=.2, gravity=[0,0,0])

#Modified engine
##
O.engines=[
ForceResetter(),

InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=intRadius),Bo1_Box_Aabb()]),
InteractionLoop(

[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=intRadius),Ig2_Box_Sphere_ScGeom()],

[Ip2_FrictMat_FrictMat_FrictPhys(),Ip2_JCFpmMat_JCFpmMat_JCFpmPhys(cohesiveTresholdIteration=10,
 label='jcf')],

[Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM(smoothJoint=True,label='interactionLaw',
 recordCracks=True),Law2_ScGeom_FrictPhys_CundallStrack()]
),

GlobalStiffnessTimeStepper(active=1,timeStepUpdateInterval=100,timestepSafetyCoefficient=0.5),
triax,
TriaxialStateRecorder(iterPeriod=100,file='J2_Triaxial,'+key),
newton
]

triax.goal1=triax.goal2=triax.goal3=-15
O.step()

-- 
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 #670453]: yadedaily- broken packages

2018-12-03 Thread mohsen
Question #670453 on Yade changed:
https://answers.launchpad.net/yade/+question/670453

mohsen posted a new comment:
Hi every one
I encountered the same problem, However in Ubuntu 16.04.
Any other option else than reinstalling Linux?

-- 
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 #676014]: Determining breaked interactions in JCFpm

2018-11-12 Thread mohsen
Question #676014 on Yade changed:
https://answers.launchpad.net/yade/+question/676014

Status: Answered => Solved

mohsen confirmed that the question is solved:
Thanks Jérôme Duriez, 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 #676014]: Determining breaked interactions in JCFpm

2018-11-08 Thread mohsen
New question #676014 on Yade:
https://answers.launchpad.net/yade/+question/676014

In the name of God

Hi every body

When using Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM(), i wonder how to 
determine breaked interactions? I know  the 'recordCracks'  method, but i need 
a technique to specify the interaction itself that is an instance of 
O.interactions. 
It might be said that after breakage there is no interaction hence how could 
one distinguish suspicious interactions just before breakage? 

Also please help me to use 'nbTensCracks', a method of 
Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM,? how to recall it to know 
the total  number of tensile microcracks? 


Regards.

-- 
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 #660136]: Yade On CentOs

2017-10-30 Thread mohsen
New question #660136 on Yade:
https://answers.launchpad.net/yade/+question/660136

In the name of God
Dear All

We tried to install Yade on CentOs. We were successful to install Yade2016 and 
run it.

We  also tried to install Yade 2017 with this options during compiling:
cmake -DCMAKE_INSTALL_PREFIX=~/YADE-git/master/install ~/YADE-git/master/trunk 
-DENABLE_PFVFLOW=0 -DENABLE_LBMFLOW=0  -DENABLE_LINSOLV=0 -DUSE_QT5=0 
-DENABLE_GUI=0 -DENABLE_CGAL=0

The installation process finished with no error, but when starting Yade 2017 
there was an error:
Welcome to Yade 2017.01a
Traceback (most recent call last):
  File "./yade-2017.01a", line 129, in 
import yade
  File 
"/share/Application/yade/yade17/install/lib64/yade-2017.01a/py/yade/__init__.py",
 line 65, in 
import boot
ImportError: 
/share/Application/yade/yade17/install/lib64/yade-2017.01a/libyade.so: 
undefined symbol: _ZN5boost7archive17archive_exceptionC1ERKS1_


Any idea?

Thanks Everyone
Mohsen


-- 
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 #659211]: Fixing spheres

2017-10-11 Thread mohsen
Question #659211 on Yade changed:
https://answers.launchpad.net/yade/+question/659211

mohsen posted a new comment:
Again thanks Jan for your interesting discussion

Mohsen

-- 
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 #659211]: Fixing spheres

2017-10-10 Thread mohsen
Question #659211 on Yade changed:
https://answers.launchpad.net/yade/+question/659211

mohsen 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 #659211]: Fixing spheres

2017-10-10 Thread mohsen
Question #659211 on Yade changed:
https://answers.launchpad.net/yade/+question/659211

mohsen posted a new comment:
Oh! It is now working!

the right command was:
for b in O.bodies:
if isinstance(b.shape,Clump):
b.state.blockedDOFs='xyzXYZ'
b.vel=(0,0,0);b.angVel=(0,0,0)

Thanks Jan

-- 
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 #659211]: Fixing spheres

2017-10-10 Thread mohsen
Question #659211 on Yade changed:
https://answers.launchpad.net/yade/+question/659211

mohsen posted a new comment:
Also i tried :

b.dynamic=False

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


Re: [Yade-users] [Question #659211]: Fixing spheres

2017-10-10 Thread mohsen
Question #659211 on Yade changed:
https://answers.launchpad.net/yade/+question/659211

Status: Answered => Solved

mohsen confirmed that the question is solved:
Thanks Jan!

But again the spheres move after this commands!

BWT, why the YADE did not show any error due to b.vel ?!!

Thanks

-- 
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 #659211]: Fixing spheres

2017-10-10 Thread mohsen
New question #659211 on Yade:
https://answers.launchpad.net/yade/+question/659211

In the name of God

I want to fixed rotation and position of moving spheres.
 what i do is:

for b in O.bodies:
if isinstance(b.shape,Sphere):
b.state.blockedDOFs='xyzXYZ'
b.vel=(0,0,0);b.angVel=(0,0,0)
 

But these bodies again move due to new interactions! I expected they should be 
fixed!

Any idea?!

Thanks
Mohsen

-- 
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 #658905]: I need to simulate uniaxial compaction

2017-10-08 Thread mohsen
Question #658905 on Yade changed:
https://answers.launchpad.net/yade/+question/658905

Status: Open => Answered

mohsen proposed the following answer:
>>Thanks again for your hint. Do you mean I need to have two distinct
scripts if I want to follow the instructions like in odeometer test?

Nima If you follow this, you need to scripts. the first one is for
sample generation and compaction; and the second one for shearing. i do
not have any script regarding this approach.

>>  I don't need an exact script for what I am doing, even if you have
an approximate solution (script) regarding deactivating walls that would
be enough for me.

You can easily deactivates walls:

wall_front_activated=False

there are 6 walls which in your case all of them should be deactivate.
you may define a plate for compaction. After compaction of each layer
you may move or delete the plate and then you can generate again the
next layer and compact and so on


>Another critical question is about how recognizing the surface of previous 
>layers. I mean, I am compacting layers based on the geometry before 
>compaction. How we can enforce the code to understand the new position of 
>layers (top surface of layers will be lower after compaction but I am 
>generating the next layer exactly from the original height of top surface of 
>previous layer  (before compaction)). Is there any solution?

You easily can distinguish the new position of the recent layer that has
been just compacted:

MaxZ=max([b.state.pos[2]+b.shape.radius for b in O.bodies if 
isinstance(b.shape,Sphere)])
MaxZ is the coordination of the grain with maximum height (Note that Z is 
defined as the axis which grain are compacted in).

Regards
Mohsen

-- 
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 #658905]: I need to simulate uniaxial compaction

2017-10-05 Thread mohsen
Question #658905 on Yade changed:
https://answers.launchpad.net/yade/+question/658905

Status: Open => Answered

mohsen proposed the following answer:
i have not done exactly the same thing, but you can generate your sample
in a box (look at Oedometer example in tutorial)  layer by layer and
then save and load the grains (or grain positions and diameters) to do a
triaxial shearing; so basically triaxial engine is not the only way!

Note that by deactivating the triaxial walls, they would not have any movement:
https://yade-dem.org/doc/yade.wrapper.html?highlight=triaxialstresscontroller#yade.wrapper.TriaxialStressController.wall_back_activated

Regards
Mohsen

-- 
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 #658946]: Controller is not working

2017-10-05 Thread mohsen
Question #658946 on Yade changed:
https://answers.launchpad.net/yade/+question/658946

mohsen 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 #658946]: Controller is not working

2017-10-05 Thread mohsen
Question #658946 on Yade changed:
https://answers.launchpad.net/yade/+question/658946

Status: Answered => Solved

mohsen confirmed that the question is solved:
Thanks Jan
I will recompile and let you know

-- 
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 #658905]: I need to simulate uniaxial compaction

2017-10-05 Thread mohsen
Question #658905 on Yade changed:
https://answers.launchpad.net/yade/+question/658905

Status: Open => Answered

mohsen proposed the following answer:
In the name of God
Hi Nima

If you are familiar with triaxialStressController engine, then you easily can 
deactivate all walls and then try generating and compacting each layer of 
grains.
compaction can be applied with a plate.

Regards
Mohsen

-- 
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 #658946]: Controller is not working

2017-10-05 Thread mohsen
New question #658946 on Yade:
https://answers.launchpad.net/yade/+question/658946

In the name of God
 Hi every one

I'he just compiled Yade. I do not know why the F11, F9 and F10 are not working. 
This is the terminal output at the beginning:

...@.:~$ ~/YADE-git/master/install/bin/yade-2017.01a
Welcome to Yade 2017.01a 
TCP python prompt on localhost:9000, auth cookie `sdscku'
XMLRPC info provider on http://localhost:21000
[[ ^L clears screen, ^U kills line. F8 plot. ]]

Cmake command during compilation:
'cmake -DCMAKE_INSTALL_PREFIX=~/YADE-git/master/install ~/YADE-git/master/trunk 
-DENABLE_PFVFLOW=0 -DENABLE_LBMFLOW=0 -DENABLE_LINSOLV=0 -DUSE_QT5=0'

Also note that:

Yade [1]: yade.qt.Controller()
---
AttributeErrorTraceback (most recent call last)
/home/azm/YADE-git/master/install/bin/yade-2017.01a in ()
> 1 yade.qt.Controller()

AttributeError: 'module' object has no attribute 'qt'


thanks for your help


-- 
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 #652260]: Graphical Interface

2017-07-24 Thread mohsen
Question #652260 on Yade changed:
https://answers.launchpad.net/yade/+question/652260

mohsen posted a new comment:
Hi Robert Thansk

@1. May you please give an example of how does Reference button make changes?
Indeed I do not know 'orbital center'

@2 Thanks

@ 3 I am using KUbuntu 16.04

-- 
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 #652260]: Graphical Interface

2017-07-22 Thread mohsen
New question #652260 on Yade:
https://answers.launchpad.net/yade/+question/652260

In the name of God

Hi all

I have some questions about graphical interface:

1- In simulation tab, what does the Reference button do?
2- In Display tan, when i check/uncheck intrWire (or intrGeom)box, nothing 
happen. What does this button do? (I generated a triaxial test with 40 grains)
3- How can I use Python tab? when i enter in the box: 2+2 there is no outputs 
in terminal!

Thanks

-- 
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 #644873]: getroundness

2017-07-07 Thread mohsen
Question #644873 on Yade changed:
https://answers.launchpad.net/yade/+question/644873

mohsen posted a new comment:
Hi Christian:

Thank you, as Jan said, you can run the clump in #1.
An other point is that, these days i am working on roundness very much; the 
getRoundness sometimes give no answer!

-- 
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 #644873]: getroundness

2017-07-03 Thread mohsen
Question #644873 on Yade changed:
https://answers.launchpad.net/yade/+question/644873

mohsen posted a new comment:
Thanks Jan

Regards

-- 
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 #644873]: getroundness

2017-06-25 Thread mohsen
Question #644873 on Yade changed:
https://answers.launchpad.net/yade/+question/644873

mohsen posted a new comment:
sorry; the getRoundness doe not work for this clump:


for z in ([-0.1,.1]):
for y in ([-0.18,-.07,.07,.18]):
pos =Vector3(-.14,y,z)
O.bodies.append(utils.sphere(pos,.24,color=Vector3(1,.9,.15)))

for x,y in [(0,.18),(.15,.18),(.08,.07),(.01,-.07),(-0.07,-.18)]:
for z in ([-0.1,.1]):

pos =Vector3(x,y,z)
O.bodies.append(utils.sphere(pos,0.24,color=Vector3(1,.9,.15)))
O.bodies.clump(range(0,len(O.bodies)))

Regards

-- 
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 #643154]: installing prerequisites on Ubuntu 14.0.4

2017-06-18 Thread mohsen
Question #643154 on Yade changed:
https://answers.launchpad.net/yade/+question/643154

mohsen posted a new comment:
OK!
got it!
Thanks every one.

-- 
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 #643154]: installing prerequisites on Ubuntu 14.0.4

2017-06-18 Thread mohsen
Question #643154 on Yade changed:
https://answers.launchpad.net/yade/+question/643154

mohsen posted a new comment:
Hi again guys
Sorry to be late
@ Anton:
Yes, I need to use saved files in different simulations, so the same version 
should be installed.

@ Robert
Yes, the errors display when i enter in command line:

sudo apt-get install cmake git freeglut3-dev libloki-dev \
libboost-all-dev fakeroot dpkg-dev build-essential g++ \
python-dev ipython python-matplotlib libsqlite3-dev python-numpy python-tk 
gnuplot \
libgts-dev python-pygraphviz libvtk6-dev python-numpy libeigen3-dev \
python-xlib python-pyqt5 pyqt5-dev-tools python-pyqt5.qtwebkit 
gtk2-engines-pixbuf python-argparse python-pyqt5.qtsvg \
libqglviewer-dev python-imaging libjs-jquery python-sphinx python-git 
python-bibtex \
libxmu-dev libxi-dev libcgal-dev help2man libbz2-dev zlib1g-dev python-minieigen

---
How to uninstall them?

-- 
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 #643154]: installing prerequisites on Ubuntu 14.0.4

2017-06-13 Thread mohsen
Question #643154 on Yade changed:
https://answers.launchpad.net/yade/+question/643154

mohsen posted a new comment:
I also can not install pyqt4. 
i followed the steps in :
http://pyqt.sourceforge.net/Docs/PyQt4/installation.html
i think i need a more straightforward way,although what is written there is 
quit easy:
first i installed SIP
second pyqt

for example when i write in terminal 'make' for compiling SIP, this lines is 
displayed, 
a@a:~/SIP/sip-4.19.2$ make
make[1]: Entering directory `/home/a/SIP/sip-4.19.2/sipgen'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/a/SIP/sip-4.19.2/sipgen'
make[1]: Entering directory `/home/a/SIP/sip-4.19.2/siplib'
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
siplib.o siplib.c
siplib.c: In function ‘slot_richcompare’:
siplib.c:10968:60: warning: ‘st’ may be used uninitialized in this function 
[-Wmaybe-uninitialized]
 if ((f = (PyObject *(*)(PyObject *,PyObject *))findSlot(self, st)) == NULL)
^
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
apiversions.o apiversions.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
descriptors.o descriptors.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
qtlib.o qtlib.c
qtlib.c: In function ‘sip_api_connect_rx’:
qtlib.c:474:5: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
 Py_INCREF(Py_True);
 ^
qtlib.c: In function ‘sip_api_disconnect_rx’:
qtlib.c:502:13: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
 Py_INCREF(Py_False);
 ^
qtlib.c:526:5: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
 Py_INCREF(Py_True);
 ^
qtlib.c: In function ‘sip_api_save_slot’:
qtlib.c:646:17: warning: dereferencing type-punned pointer will break 
strict-aliasing rules [-Wstrict-aliasing]
 Py_INCREF(Py_True);
 ^
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
threads.o threads.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
objmap.o objmap.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
voidptr.o voidptr.c
gcc -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
array.o array.c
g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o bool.o 
bool.cpp
g++ -shared -Wl,--version-script=sip.exp -o sip.so siplib.o apiversions.o 
descriptors.o qtlib.o threads.o objmap.o voidptr.o array.o bool.o 
make[1]: Leaving directory `/home/a/SIP/sip-4.19.2/siplib'



i think there is no error when making and installing. 
However again the mentioned error is shown

-- 
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 #643154]: installing prerequisites on Ubuntu 14.0.4

2017-06-13 Thread mohsen
Question #643154 on Yade changed:
https://answers.launchpad.net/yade/+question/643154

mohsen posted a new comment:
I have not reach the  compiling step.
in the beginning of installing prerequisites, the process was interrupted due 
that error!
so I think you mean that i should remove the packages including pyqt5 which is 
suggested in :
https://yade-dem.org/doc/installation.html#prerequisites

Am i right?

-- 
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 #643154]: installing prerequisites on Ubuntu 14.0.4

2017-06-12 Thread mohsen
Question #643154 on Yade changed:
https://answers.launchpad.net/yade/+question/643154

mohsen posted a new comment:
Hi Robert
No, I am installing yade via compiling.
I tried the command you wrote, this is the error:
Reading package lists... Done
Building dependency tree   
Reading state information... Done
E: Unable to locate package python-pyqt5
E: Unable to locate package python-pyqt5.qtwebkit
E: Couldn't find any package by regex 'python-pyqt5.qtwebkit'
E: Unable to locate package python-pyqt5.qtsvg
E: Couldn't find any package by regex 'python-pyqt5.qtsvg'

Bout the last question:
in installing prerequisites, i change 5 to 4 wheter i found 'pqt4':
https://yade-dem.org/doc/installation.html#prerequisites
i did it based on this answer:
https://answers.launchpad.net/yade/+question/295554

regards

-- 
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 #643154]: installing prerequisites on Ubuntu 14.0.4

2017-06-11 Thread mohsen
New question #643154 on Yade:
https://answers.launchpad.net/yade/+question/643154

In the name of God

Hi all

when i want to install yade in my ubuntu 14.0.4, i encountered an error:
Reading package lists... Done
Building dependency tree  
Reading state information... Done
Note, selecting 'libpython2.7-stdlib' instead of 'python-argparse'
E: Unable to locate package python-pyqt4
E: Unable to locate package python-pyqt4.qtwebkit
E: Couldn't find any package by regex 'python-pyqt4.qtwebkit'
E: Unable to locate package python-pyqt4.qtsvg
E: Couldn't find any package by regex 'python-pyqt4.qtsvg'

I tried so much with no results. i changed pyqt5 to pyqt4 based on a 
recommendation found in Launchpad.

Any idea

Thanks

-- 
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 #619109]: Storing particle overlap on first iteration to prevent explosions.

2017-04-15 Thread mohsen
Question #619109 on Yade changed:
https://answers.launchpad.net/yade/+question/619109

mohsen posted a new comment:
Hi
I could not find this command or attribute in yade documentation;
"zeroInitForce"

Any idea?

Thanks

-- 
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 #616981]: how to record the force applied on the plate

2017-04-12 Thread mohsen
Question #616981 on Yade changed:
https://answers.launchpad.net/yade/+question/616981

Status: Open => Answered

mohsen proposed the following answer:
Hi ting

Every thing is True, but just you made an samll mistake in defining
addPlotdata; may be this works:

def addPlotData():
   if not isinstance(O.bodies[-1].shape,Facet):
  plot.addData(); return
   F=O.forces.f(plate.id)[1]
   
plot.addData(F=F,displacement=plate.state.pos[1]-plate.state.refPos[1],unbalanced=unbalancedForce(),i=O.iter)


Regards
Mohsen

-- 
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 #403385]: Micro and Macro relation in CPM pararmeters

2016-10-31 Thread mohsen
Question #403385 on Yade changed:
https://answers.launchpad.net/yade/+question/403385

Status: Answered => Solved

mohsen 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 #403360]: Packing Cylinder with MakeCloud

2016-10-30 Thread mohsen
Question #403360 on Yade changed:
https://answers.launchpad.net/yade/+question/403360

mohsen posted a new comment:
Hi Felipe

>In fact, i was creating by pack cylinder but it seems like there is 
>stress/overlap local even i didn't apply any force before. >That's why i try 
>to find another method to do it without starting with tensioned/overlap.
 As I wrote, In randomDensePack always there would be initial overlap. Hence 
what you had found was correct. 
In some cases you can decrease intRadius, then no initial force will exist.

>it's really important the numbers of particles because i am wondering
if the best simulation will be creating either more >less 1, 2
or 5 particles. is it possible to do it by using method 3?

It depends on your simulation. You can find a useful conversation in
where we talked about what are the essential parameters for calibrating
a sample and obtaining the same results with different geometry.
According to a review by [2] on YADE literature, the 1 was
suggested.

Regards
Mohsen

[1]https://answers.launchpad.net/yade/+question/403385
[2] Wang X L, Li J C. Simulation of triaxial response of granular materials by 
modified DEM. Sci China-Phys Mech Astron, 2014, 57: 22972308, doi: 
10.1007/s11433-014-5605-z

-- 
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 #403385]: Micro and Macro relation in CPM pararmeters

2016-10-27 Thread mohsen
Question #403385 on Yade changed:
https://answers.launchpad.net/yade/+question/403385

mohsen posted a new comment:
Dear Jan

I will Provide a MWE soonly. However i think by applying your
recommendation, there would be no change by geometry.

-- 
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 #403385]: Micro and Macro relation in CPM pararmeters

2016-10-26 Thread mohsen
Question #403385 on Yade changed:
https://answers.launchpad.net/yade/+question/403385

mohsen posted a new comment:
@ Bruno

Thanks! I should investigate your suggestion. It looks great.

@ Jan
>please really provide a MWE :-) it would be much easier to determine the
>source of problem..

So according to #1 I mentioned the way i computed E and nu. But i think
i did not understand the meaning of MWE. Can you tell me what it is?

> So by changing this, you change the explicit micro-macro 
> relationship,preserving the model consistency.
If micro-macro relationship changes, i think the model consistency would change 
too. 

>1e-2 is relatively high, there might be already some inelastic processes
(with the MWE I could tell if yes or no)
NeverDamage is active! also I decreased it to 1e-3

>Next time plese be more specific what "great difference" is (10%? 1000%?)
Jan I did not consider Coordination number in the simulations. Hence the 
previous results can not be compared.

I want to conclude:
1- there is no rule that "micro and macro parameters should be the same".
2- macro parameters must be independent of geometry (However I am simulating a 
cylinder trying to keep CoordinationNumber, porosity and fabric constant and 
the macro parameters vary about 20%).
3- For calibration by selecting the appropriate contact law and setting the 
geometry constant:
3-1- The porosity should be the same as reality (first parameter suggested by 
Bruno @6)
3-2- The micro parameters should change in such a way that desired macro ones 
obtained (I do not have any idea about how to set coordination number and 
fabric isotropy). In the first try it is preferable to select micro parameters 
the same as macro. 
3-3- It is better to validate the obtained results (micro parameters and the 
three suggested by Bruno) by changing the geometry; However the parameters 
should be kept constant.

Regards

Mohsen

-- 
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 #403385]: Micro and Macro relation in CPM pararmeters

2016-10-25 Thread mohsen
Question #403385 on Yade changed:
https://answers.launchpad.net/yade/+question/403385

mohsen posted a new comment:
Jan

There is another point that i forgot: why in CPM material the ratio of
ks/kn is called Poisson ration? That is clear by increasing ks/kt (or
inter particle nu), macro nu decreases as the lateral deformations are
affected by shear relative movements. Hence such a physical definition
(ks/kn) and terminology (nominating it as nu) are not consistent.

-- 
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 #403385]: Micro and Macro relation in CPM pararmeters

2016-10-25 Thread mohsen
Question #403385 on Yade changed:
https://answers.launchpad.net/yade/+question/403385

mohsen posted a new comment:
Hi Jan

>could you please provide a MWE (how you evaluate "determined" and
>"computed" E and nu ).

E and nu are the parameters which CPM material needs. Hence the phrases 'inter 
particle E and nu' or 'mecro ' are clearer! Surrey for wrong phrase! 
Computed E and nu are calculated after axial loading (z axis) up to special 
strain (1e-2) as follows:
E=slope of sigma-epsilon graph
nu= - 0.5(epsx+epsy)/(epsz)

>Next time plese be more specific what "great difference" is (10%? 1000%?)
Yes depending on geometry it can be in the order of 1000% or even more!

Can we set a geometry which lead to macro parameters the same as micro ones?
I could not set it till now. It may be because of high desired nu which is near 
0.35. Setting inter-particle nu as 0.35 causes large values of E which seems 
correct; however it is not may case

>do you mean that you set CpmMat(...,young=25e9) and macroscopic Young's
>modulus would be 25 GPa? 
Yes
>For sure there exists suxh geometry, but it would be very special case.
For cylinder with height to diameter ratio of two, I have not found such 
geometry till now. Also it may be interesting for you to check [3]. They could 
not achieve a set of inter particle parameters (E, nu, phi) that matches the 
macro ones. I think it is also the case for [2]. 

What do you think am i right?
Can we say: It is very hard to find a geometry satisfying this hypothesis: 
'micro and macro parameters are the same'. If it is true then:

'Is there any reference that can interpret the difference between micro
and macro parameters theoretically '? Is it a usual case in DEM
modeling?

Anyway, my question finds still no answer: In references [1] and [2]
have they compared values of micro and macro E and nu? I could not find
any details about geometry in [2].


[3] : Wang X L, Li J C. Simulation of triaxial response of granular materials 
by modified DEM. Sci China-Phys Mech Astron, 2014, 57: 22972308, doi:
10.1007/s11433-014-5605-z

-- 
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 #403360]: Packing Cylinder with MakeCloud

2016-10-24 Thread mohsen
Question #403360 on Yade changed:
https://answers.launchpad.net/yade/+question/403360

Status: Open => Answered

mohsen proposed the following answer:
In the name of God
Hi Felip

It seems that you did not use the same coordinates when generating your
packing; Can you explain why? It is clear that the generated packings
should not be the same. If it is the case for you to create the same
cylinders from method one and two then I think this may be work:

#method1
Only pack cylinder
pred=pack.inCylinder((0,-45,0),(0,45,0),radius=50)
sp=SpherePack()
sp=pack.randomDensePack(pred,radius=5,returnSpherePack=True, 
material='shperes',sphereseInCell=3000)
sp.toSimulation()


#method 3
from yade import pack
sp = pack.SpherePack()
minCorner = (-50,-45,-50)
maxCorner = (50,45,50)
sp.makeCloud(maxCorner=maxCorner,rMean=5.0,num=5000)
pred = pack.inCylinder((0,-45,0),(0,45,0),radius=50,sphereseInCell=3000)
for c,r in sp:
 if pred(c,r): # determines if a sphere with center c and radius r is inside
  #predicate...
 O.bodies.append(sphere(c,r)) # ... if yes, append it to simulation

As you may know, when using 'randomDensePack', the generated spheres
have a small initial overlap. This means that the number of particles in
method 1 is larger than method 3. Is it important for you?

>Also, is it possible to include spheres material?
The simplest way is to define desired material before generating spheres or in 
more precisely before adding them to simulation.

For more information about sphereInCell please check[1]:


Regards

[1]:https://answers.launchpad.net/yade/+question/159764

-- 
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 #403385]: Micro and Macro relation in CPM pararmeters

2016-10-23 Thread mohsen
New question #403385 on Yade:
https://answers.launchpad.net/yade/+question/403385

In the name of God

Hello All

I am working on calibration of CPM model elastic parameters [1]. When 
calibrating E and nu, there is not enough information about selected E for 
inter particle interactions and obtained E from calibration process. Indeed i 
tried to create cylinder with determined E and nu, then i loaded it and 
computed the macro parameters (E, nu) following the procedure explained in [1]; 
however there was a great difference between the micro and macro E and nu?
Any suggestion? Can we set a geometry which lead to macro parameters the same 
as micro ones?
I have checked [2] but still the question is unresolved.



[1]: https://tel.archives-ouvertes.fr/tel-00502402/document
[2]:Jan Stránský, Milan Jirásek and Václav Šmilauer "MACROSCOPIC ELASTIC 
PROPERTIES OF PARTICLE MODELS" ; MS’10 Prague
Proceedings of the International Conference on Modelling and Simulation 2010
22 – 25 June 2010, Prague, Czech Republic

-- 
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 #295810]: CPM contact parameters (stiffness & friction angle)

2016-06-30 Thread mohsen
New question #295810 on Yade:
https://answers.launchpad.net/yade/+question/295810

In the name of god
Hello every one

On 2016-04-10 i asked a question (No 290372) about stiffness computation in CPM 
model and finally this question results in definition of a new method in 
"Ip2_CpmMat_CpmMat_CpmPhys". This new method (E(=uninitalized)) enable the user 
to define contact stiffness in 4 algorithm. 
 Now there is two points:
1- What about friction angle?! Suppose that the friction angle of two different 
materials (phi1 and phi2) has been obtained experimentally and there is a great 
difference between the obtained value and what  Ip2_CpmMat_CpmMat_CpmPhys 
computes i.e. using average of the two friction angle ((phi1+phi2)/2).  How can 
we use real  friction angle instead of average one?

2- Why the user is forced to choose one of the 4 algorithms? Is it possible to 
inter the interaction young modulus manually (As i think it is so in PFC)? Or a 
better approach is to develop 'algo' method of class  'MatchMaker' [1] in such 
a way that two coefficient is defined (e.g.  C1 and C2). Then interaction young 
modulus and friction angle can obtained :

E=(C1* E1+C2*E2)/(C1+C2)
friction angle= (C1* phi1+C2*phi2)/(C1+C2)


Thanks

[1]: https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.MatchMaker

-- 
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 #294657]: Cpm model problem in Yade 1.20.0-151-0ecfcd0~trusty

2016-06-02 Thread mohsen
Question #294657 on Yade changed:
https://answers.launchpad.net/yade/+question/294657

Status: Answered => Solved

mohsen 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 #294657]: Cpm model problem in Yade 1.20.0-151-0ecfcd0~trusty

2016-05-31 Thread mohsen
Question #294657 on Yade changed:
https://answers.launchpad.net/yade/+question/294657

mohsen posted a new comment:
Hi Jan
so i am waiting to your respons, when the Cpm gets Ok!

-- 
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 #293471]: Circular RandomDensePack with CpmMat

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

mohsen posted a new comment:
Hi Jan
>Not to create any cohesive interactions, use value less than 1 for intRadius.
I formerly have check it; i reduced the value of intRadius to 0.1, but again 
there were cohesive bonds between particles and the particles did not FLOW 
freely.

>Furthermore, check [1] and make it something like 1 in Ip2.
Jan there is something confusing! when is changed my code to use 
'cohesiveThresholdIter' i received an strange error:
...
[Ip2_CpmMat_CpmMat_CpmPhys(cohesiveThresholdIter(-1))],
NameError: name 'cohesiveThresholdIter' is not defined
...
there is no difference if i change '1' to another number!

now in command line write:

Yade [8]: O.materials[0]
 ->  [8]: 

Yade [9]: O.engines[2].physDispatcher.functors[0]
 ->  [9]: 

Yade [10]: O.engines[2].physDispatcher.functors[0].dict()
 ->  [10]: {'frictAngle': None, 'label': ''}

_
although my material is Cpm, Yade [9] tells my functor is FrictMat

can you help me?

With kind regards
Mohsen

-- 
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 #293471]: Circular RandomDensePack with CpmMat

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

In the name of god
Hello all
I want to simulate a gravity deposition. The particles are generated in a 
circular predicate. If FrictMat is used, there is no problem and the particles 
flow freely on the horizontal wall; But in the case of CpmMat, it seems that 
the bonds between particles is made.
With regarding to this point that i have setted intRadius = 1 and there is no 
initial overlap, why bonds between particles are made?


from yade import pack

mat=CpmMat(young=1e9,neverDamage=True,epsCrackOnset=1e-2)  
O.materials.append(mat)

###generating circular predicate and filling with spheres
pred=pack.inCylinder(centerBottom=(0.5,0.5,0),centerTop=(0.5,0.5,1),radius=.25)
spheres=pack.randomDensePack(pred,spheresInCell=500,radius=.55e-1)
O.bodies.append(spheres)

O.bodies.append(wall(-0.1,axis=2))

intRadius = 1

O.engines = [
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=intRadius,label='is2aabb'),Bo1_Wall_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=intRadius,label='ss2d3dg'),Ig2_Wall_Sphere_ScGeom()],
[Ip2_CpmMat_CpmMat_CpmPhys()],
[Law2_ScGeom_CpmPhys_Cpm()]
),
NewtonIntegrator(gravity=(0,0,-10),damping=0.5)
]
O.dt = 0
O.step()
is2aabb.aabbEnlargeFactor = 1.
ss2d3dg.interactionDetectionFactor = 1.

O.dt=.5*PWaveTimeStep()


-- 
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 #293216]: Creating Ellipse or Ellipsoid

2016-05-05 Thread mohsen
Question #293216 on Yade changed:
https://answers.launchpad.net/yade/+question/293216

mohsen posted a new comment:
Hi Felipe and Jan
Jan i also have some trouble with making a predicate!
generally when i using randomDensePack, i encounter some errors or warnings 
that i can not understand their meanings!
Jan can you help us about "memoizeDb"? I think some errors is because of this.

in the following is my simple code and warnings:

###
## construct the predicate first
pred=pack.inCylinder(centerBottom=(0,0,-.1),centerTop=(0,0,.1),radius=.05)
## alternatively: pack.inHyperboloid((0,0,-.1),(0,0,.1),.05,.03)

## pack the predicate with spheres (will be explained later)
spheres=pack.randomDensePack(pred,radius=8.5e-3)

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


Warnings:
WARN  /build/yadedaily-1.20.0-126-e3271e8~trusty/pkg/dem/SpherePack.cpp:104 
makeCloud: porosity must be >0, changing it for you. It will be ineffective if 
rMean>0.
/usr/lib/x86_64-linux-gnu/yadedaily/py/yade/pack.py:296: FutureWarning: The 
default behavior will change; specify returnSpherePack=True for the new 
behavior, and False to get rid of this warning (your code will break in the 
future, however). The returned SpherePack object can be added to the simulation 
using SpherePack.toSimulation()
  warnings.warn('The default behavior will change; specify 
returnSpherePack=True for the new behavior, and False to get rid of this 
warning (your code will break in the future, however). The returned SpherePack 
object can be added to the simulation using 
SpherePack.toSimulation()',category=FutureWarning)
/usr/lib/x86_64-linux-gnu/yadedaily/py/yade/pack.py:301: UserWarning: Packing's 
dimension (Vector3(0.09220547603362886,0.09204759935856582,0.1700020579236124)) 
doesn't fully contain dimension of the predicate (Vector3(0.1,0.1,0.2)).
  if dimP[0]>dimS[0] or dimP[1]>dimS[1] or dimP[2]>dimS[2]: 
warnings.warn("Packing's dimension (%s) doesn't fully contain dimension of the 
predicate (%s)."%(dimS,dimP))



2- another problem is that the spheres in generated pack have overlap!! 
How can we avoid this? ( I know that the over lap is removed if we give a 
number to spheresInCell, i.e activating periodic condition. but is there any 
other way to have a aperiodic scene without overlap)
Is there another method to construct a cylinder filled with spheres with no 
initial overlap?

-- 
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 #290372]: Young modulus computation

2016-04-27 Thread mohsen
Question #290372 on Yade changed:
https://answers.launchpad.net/yade/+question/290372

mohsen 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 #290372]: Young modulus computation

2016-04-27 Thread mohsen
Question #290372 on Yade changed:
https://answers.launchpad.net/yade/+question/290372

Status: Answered => Solved

mohsen confirmed that the question is solved:
Hi Anton and Jan
thanks so much
So therefore i should wait to an update of yadedaily that contains this option

-- 
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 #291781]: [Triaxial test]:unbalanced force & axial stress

2016-04-22 Thread mohsen
Question #291781 on Yade changed:
https://answers.launchpad.net/yade/+question/291781

Status: Open => Answered

mohsen proposed the following answer:
In the name of god
Hi Geo


> 1)When the confining pressure 10KPa is added, the particles in the packing 
> decrease. Maybe the packing has exploded?
This could be True. by increasing E, stiffness would be larger and leads to 
lower critical time step (see [1] equation 13). and because of this by 
decreasing dt the simulation continues! 

>The specimen is compacted and the particles doesn't disappear. It is
defective that the unbalanced force can't <0.01, >increasing the damping
is no use. I increase the max unbalanced force to 0.03, the script can
just continue. But when I >load the deviatoric stress by controlling
strain rate=-0.02, the axial stress is decreasing gradually from 0.8MPa
even to >0.4MPa.(The confining pressure is 0.8MPa.) And when deviatoric
loading, I can see the obviously moving of the particles.

That is right. when you increase stability threshold (from 0.01 to 0.03), in 
the beginning of loading phase, there would be a decrease in dedicator stress. 
if you wait after several iterations (depending on your simulation may be from 
order of 1000) again dedicator stress increases. Therefore:
1- try do your simulation with max unbalanced force=0.01. may this takes along 
to get 0.01but finally it would reach it
2-  max unbalanced force depends on your material, number and shape of 
particles, ... .

[1]: https://yade-dem.org/doc/formulation.html

-- 
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 #290372]: Young modulus computation

2016-04-22 Thread mohsen
Question #290372 on Yade changed:
https://answers.launchpad.net/yade/+question/290372

Status: Answered => Open

mohsen is still having a problem:
Hi Jan
I am seeking your help!!

-- 
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 #290372]: Young modulus computation

2016-04-12 Thread mohsen
Question #290372 on Yade changed:
https://answers.launchpad.net/yade/+question/290372

mohsen posted a new comment:
I installed it from packages
(But when i want to run i write in terminal 'yadedaily')
Yade 1.20.0-43-efeac28~trusty

-- 
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 #290372]: Young modulus computation

2016-04-12 Thread mohsen
Question #290372 on Yade changed:
https://answers.launchpad.net/yade/+question/290372

mohsen posted a new comment:
Thanks Jan so much
>How should your formula look like? Harmonic mean like [1]? Then in
>your case would E=(2*1e6*1e12)/(1e6+1e12)=2e6.

Hmm... .  That is the main job!!! to find a proper answer we need
calibration and may be experimental data; it is the first step. The
SECOND is to apply new formula in YADE and this is my question. although
any information about the first step is appreciated.

Thanks again Jan for your consideration!

-- 
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 #290372]: Young modulus computation

2016-04-11 Thread mohsen
Question #290372 on Yade changed:
https://answers.launchpad.net/yade/+question/290372

mohsen posted a new comment:
in the case of larg number of particles, i think for each new
interaction, computation follows Cpmphys functor; i.e. computing
'average' E. Therefore i should change 'E' by above formula in each
iteration an for every interaction. So in my script where should i put
the above 'for' loop?! For example for 1000 iterations is the following
script true?

#after defining scene and engines#
 ii=1000
while O.iterhttps://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 #290372]: Young modulus computation

2016-04-11 Thread mohsen
Question #290372 on Yade changed:
https://answers.launchpad.net/yade/+question/290372

Status: Solved => Open

mohsen is still having a problem:
Thank you very much Jan!!
But according to your opinion is it logic to compute an average for E!! 
specially when there is a great deference between tow young modulus? for 
example in my practice, the interaction young modulus is very close to 'E' of 
mat1 and very far from 'E' of mat2.
Is there any other suggestion or experience of computation of 'E' of 
interaction? 
'average' may be a good approach for computation of 'friction angle' of 
interaction; but may be bad for 'E'

-- 
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 #290372]: Young modulus computation

2016-04-10 Thread mohsen
New question #290372 on Yade:
https://answers.launchpad.net/yade/+question/290372

In the name of god
hello all
during an script i make contact between two spheres of Cpm material but the 
different parameters. There are two bouncing spheres.  Then i checked 
O.interactions two see the contact parameters. I do not know how the young 
modulus of contact has been computed?
 any idea?

Thanks every one
#
mat2=CpmMat(young=1e6,neverDamage=True,density=2500,poisson=0.2,epsCrackOnset=1e20,relDuctility=10,frictionAngle=0.5,label='mat2')
  
O.materials.append(mat2)
O.materials.append(CpmMat(young=1e12,neverDamage=True,poisson=0.3,frictionAngle=radians(30),sigmaT=4e100,epsCrackOnset=1e20,density=2600,relDuctility=10,label='mat1'))
 

O.bodies.append([

sphere(center=(0,0,0),radius=.5,fixed=True, material='mat1'),

sphere((0,0,2),.5, material='mat2')
])

intRadius = 1
O.engines = [
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=intRadius,label='is2aabb'),Bo1_Facet_Aabb(),Bo1_Wall_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=intRadius,label='ss2d3dg'),Ig2_Facet_Sphere_ScGeom(),Ig2_Wall_Sphere_ScGeom()],
[Ip2_CpmMat_CpmMat_CpmPhys()],
[Law2_ScGeom_CpmPhys_Cpm()]
),
NewtonIntegrator(gravity=(0,0,-10),damping=0.2),
]
O.dt = .2*PWaveTimeStep()
#

The interaction specifications:

{'E': 5050.0,
 'G': 175000175000.0,
 'crossSection': 0.7853981633974483,
 'damLaw': 1,
 'dmgOverstress': 0.0,
 'dmgRateExp': 0.0,
 'dmgStrain': 0.0,
 'dmgTau': -1.0,
 'epsCrackOnset': 1e+20,
 'epsFracture': 1e+21,
 'isCohesive': False,
 'isoPrestress': 0.0,
 'kn': 392699474749.80115,
 'ks': 137444816162.43042,
 'neverDamage': True,
 'normalForce': Vector3(0,0,-7853.981599551652),
 'plRateExp': 0.0,
 'plTau': -1.0,
 'refLength': 0.91036522,
 'refPD': 8.963477737822245e-10,
 'relDuctility': 10.0,
 'shearForce': Vector3(-0,-0,-7.623695394542987e-13),
 'tanFrictionAngle': 0.9538822108108043,
 'undamagedCohesion': 2e+100}


-- 
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 #280376]: overlap with no force, pollygon collision, membrane

2016-01-12 Thread mohsen
Question #280376 on Yade changed:
https://answers.launchpad.net/yade/+question/280376

Status: Answered => Solved

mohsen confirmed that the question is solved:
Thank you all

-- 
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 #280376]: overlap with no force, pollygon collision, membrane

2016-01-09 Thread mohsen
Question #280376 on Yade changed:
https://answers.launchpad.net/yade/+question/280376

mohsen posted a new comment:
@#6
Jérôme I added a comment on [1]

@ #7
Thanks Jan.
For a betters understanding of the potato script, i run it with various  
'intRadious' and the results were as expected. I also try this script with 
three sphere; but something strange happened and particles did not move because 
of gravity. can you help me why?
 My script:
mat=CpmMat(young=1e6,neverDamage=True,sigmaT=1e20,epsCrackOnset=1e20,relDuctility=10)

O.bodies.append([
# fixed: particle's position in space will not change (support)
sphere(center=(0,0,0),radius=.5,fixed=True),
# this two particles are free, subject to dynamics
sphere((0,0,2),.5),sphere((0,0,20),.5)
])

intRadius = 1

O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=intRadius,label='is2aabb')]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=intRadius,label='ss2d3dg')],
[Ip2_CpmMat_CpmMat_CpmPhys()],
[Law2_ScGeom_CpmPhys_Cpm()]
),
NewtonIntegrator(damping=0),
]

# creates initial cohesive bonds with young=1e6 and reset intRadius
O.dt = 0
O.step()
is2aabb.aabbEnlargeFactor = 1.
ss2d3dg.interactionDetectionFactor = 1.

# change young such that new interactions will have higher young
mat.young = 1e6
O.dt = .1*PWaveTimeStep()
###
[1]:  https://answers.launchpad.net/yade/+question/266828

-- 
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 #266828]: How to reset the repulsive forces at the beginning of a compression test

2016-01-09 Thread mohsen
Question #266828 on Yade changed:
https://answers.launchpad.net/yade/+question/266828

mohsen posted a new comment:
Hi Jérôme
I tried the script with Yade 1.12 but below error was showed in terminal:

Running script checkRepulsiveForcecheckRepulsiveForce_266828_4.py
Traceback (most recent call last):
  File "/usr/bin/yadedaily", line 180, in runScript
execfile(script,globals())
  File "checkRepulsiveForcecheckRepulsiveForce_266828_4.py", line 26, in 

O.interactions[0,1].phys.unp = O.interactions[0,1].geom.penetrationDepth
IndexError: No such interaction
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for 
showing help), F10 both, F9 generator, F8 plot. ]]

-- 
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 #280376]: overlap with no force, pollygon collision, membrane

2016-01-06 Thread mohsen
Question #280376 on Yade changed:
https://answers.launchpad.net/yade/+question/280376

mohsen posted a new comment:
Thanks so much Jérôme and Jun.
I studied carefully #1 , #2 and #3 and also [1],[2].

1- But about Jérôme comments:
I studied [1] and some questions arose:
1-1: It is better to use JCF model for modelling an elastic beam than Cpm. am i 
right? Is there any example script?
1-2: In [1], #10 Jérôme said that "... so that distant particles may be 
bonded". It is really a good feature. this provides a tool to a potato by 
distant particles not filling with particles. the advantage is decreasing 
number of particles in the simulation. so how it possible? can you help me?
1-3: I run the script written in #4,[2] but there is no displacement. and also 
there is a error:
>>>No such interaction. 
though in the 3d view the two spheres has overlap. what is the reasons.

2- @ Jan the code was fantastic. I tried that and some results were hard to 
underestand
2-1- Why at the first step the Young modulus is decreased?
I tried this two and in both the particles positions got infinite:
i. first young modulus: 10e6; second young modulus: 10e6
ii. first young modulus: 10e10; second young modulus: 10e10
And I tried below set of youngs and the potatoes explode but particle's 
positions were not infinite
iii. first young modulus: 10e2; second young modulus: 10e6.
can you explain me why such results happened?
2-2- In the simulation maybe each potato suffers high compressive 
stress whereas it should show elastic behavior ( suppose a tire chips which 
easily deforms (stretching or bending or twisting) but there is no breakage or 
failure ). To apply mentioned situations and avoid any concern about bond 
breakage,  which parameters  should be considered?
2-3- Any suggestion or previous experiences about calibrating?


[1] https://answers.launchpad.net/yade/+question/269724> 
[2] https://answers.launchpad.net/yade/+question/266828

-- 
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 #280376]: overlap with no force, pollygon collision, membrane

2016-01-06 Thread mohsen
Question #280376 on Yade changed:
https://answers.launchpad.net/yade/+question/280376

mohsen posted a new comment:
Hello Jérôme:
>1-2-: Your idea here is not completely clear to me...
There would be no hole. to clarify suppose a long 2D  square-shape  potato with 
spheres are located on it's perimeter. So external surface is smooth but there 
is no particle inside of potato. Spheres have overlap but  no initial force 
evoked. The distant bonds between upper spheres and lower ones(ignore lateral 
spheres for now), guarantees the elastic performance of potato although the 
arrangement of bonds (which particle's should be bonded to each other to show a 
realistic behavior)  must be calibrated. 

So now, in Yade my simulations include 'n' particles(also a potato). Can
i create a bond between specific particles (e.g. particles i and j) with
no overlap ? In [3] i don't know where i should specify the particle id?

>1-3 If I copy paste in "ex.py" the example
I'll check the script soon, comment in the [2] but also notify you here.

Thanks
[2] https://answers.launchpad.net/yade/+question/266828
[3]https://yade-dem.org/doc/user.html#creating-interactions

-- 
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 #280376]: overlap with no force, pollygon collision, membrane

2016-01-01 Thread mohsen
New question #280376 on Yade:
https://answers.launchpad.net/yade/+question/280376

In the name of god
hello all!
happy new year!!
i have searched Yade documentations but could not find what i was searching! 
here are my questions:

1-  I want to generate an 'elastic' body (so rigid bonds and clump idea are not 
useful) with arbitrary shape such that:
i- it's surface should be smooth, to provide such feature i thought may be 
arranging spheres with prescribed  overlap (but with no force) could be the 
answer. is this OK? if yes how to apply it in YADE? if not , is there a better 
suggestion?
   ii- As the shape is arbitrary (suppose a 2D potato) and i need a realistic 
response of the body, i have decided to fill the inside of potato with spheres 
with overlap but no force generated ( like previous part of my question); any 
better idea? if this is OK, what is modelling consideration (any comment about  
forces, moments, contact law and ...)?

2- In new version of Yade, is it possible to capture polygon collision? 

3- Can i model a flexible membrane in Yade? Is there any new findings after 
zuoguang's question [1]?

Seeking your help

[1]:  https://answers.launchpad.net/yade/+question/254339



-- 
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 #279689]: Free plan

2015-12-20 Thread mohsen
Question #279689 on Yade changed:
https://answers.launchpad.net/yade/+question/279689

Status: Open => Answered

mohsen proposed the following answer:

Hi bruna
if you wan to simulate a plane that could move up and down  i think you can 
find that by studying oedometric test (2.6.3 Oedometric test) in Yade 
documentaion[1]. at that example 'plate' object is what you are searching.
best regards

[1]: https://yade-dem.org/doc/Yade.pdf

-- 
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 #279256]: Yade documnetation

2015-12-16 Thread mohsen
Question #279256 on Yade changed:
https://answers.launchpad.net/yade/+question/279256

Status: Answered => Solved

mohsen 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 #279256]: Yade documnetation

2015-12-16 Thread mohsen
Question #279256 on Yade changed:
https://answers.launchpad.net/yade/+question/279256

mohsen posted a new comment:
thank you Jan so much
i have to focus on
1-  Class reference and modules more; they have confused me.
2- the procedure of creating of a body
thank again

-- 
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 #279256]: Yade documnetation

2015-12-16 Thread mohsen
Question #279256 on Yade changed:
https://answers.launchpad.net/yade/+question/279256

mohsen posted a new comment:
hello Jan
thatns you for your consideration

my reference Documentation link:
https://yade-dem.org/doc/Yade.pdf

there are some more ambiguities:

about question 1- : there are some functions in Class references(ch 8) that are 
repeated in Yade modules (ch9); although they are not the same but i can not 
understand the difference for a better selecting when coding:
  class yade.wrapper.Sphere((object)arg1) (p.156)
   yade.utils.sphere(center, radius, dynamic=None, fixed=False,   
wire=False, color=None, highlight= False, material=-1, mask=1)  (p. 464)

again such classes could be found about 'tetra'. what is the difference
between s1 (an instance of  yade.wrapper.Sphere) and s2(an instance of
yade.utils.sphere)

2- i found this example on page 6:
Yade [96]: s=utils.sphere(center=[0,0,0],radius=1)
...
Yade [99]: s.shape.radius
...
as i have searched there is no 'radius' method for 'shape' class (p 151).  how 
above command is correct?

thanks Jan

-- 
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 #270175]: Yubuntu

2015-08-14 Thread mohsen
Question #270175 on Yade changed:
https://answers.launchpad.net/yade/+question/270175

Status: Answered = Solved

mohsen confirmed that the question is solved:
Thanks Klaus Thoeni, that solved my question.

-- 
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 #270175]: Yubuntu

2015-08-11 Thread mohsen
Question #270175 on Yade changed:
https://answers.launchpad.net/yade/+question/270175

mohsen posted a new comment:
again that works! the Pass was correct. 
and the last question as i asked before: 
Is there any difference between Yade and Yadedaily?

-- 
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 #270175]: Yubuntu

2015-08-10 Thread mohsen
Question #270175 on Yade changed:
https://answers.launchpad.net/yade/+question/270175

mohsen posted a new comment:
thanks Jan,
that worked,
But is there any difference between Yade and Yadedaily when entering in 
terminal? i.e. does Yubuntu have some limitations compared to Yade installed on 
ubuntu?
And any comment about second question? what is password?

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


[Yade-users] [Question #270175]: Yubuntu

2015-08-09 Thread mohsen
New question #270175 on Yade:
https://answers.launchpad.net/yade/+question/270175

in the name of god
hello every one
I have downloaded yubuntu130214.img and written it on a usb.
 after booting, following the procedure recommended in YADE doc, in terminal i 
entered:
yade@yadeusb:~$ yade

and then it was shown:
' the program 'yade' is currently not installed. ' and ...
So two questions:
1- why the yade is not installed on Yubuntu? I thought it has been installed 
before.
2- what is the password? i can't do any thing?

-- 
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 #269150]: efficiency of parallelization in Yade

2015-07-14 Thread mohsen
Question #269150 on Yade changed:
https://answers.launchpad.net/yade/+question/269150

mohsen posted a new comment:
dear Klaus
Thanks so much. the problem about the number of cores was nearly solved. but a 
question is remained. What about other system specifications that affect 
computation duration? For example is there an efficiency limit for RAM as there 
is for number of cores? Or other important parameters?
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 #269150]: efficiency of parallelization in Yade

2015-07-14 Thread mohsen
Question #269150 on Yade changed:
https://answers.launchpad.net/yade/+question/269150

Status: Answered = Solved

mohsen confirmed that the question is solved:
Thanks Klaus Thoeni, that solved my question.

-- 
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 #269150]: efficiency of parallelization in Yade

2015-07-14 Thread mohsen
Question #269150 on Yade changed:
https://answers.launchpad.net/yade/+question/269150

mohsen posted a new comment:
very good, thank you for your complete answer

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


[Yade-users] [Question #269150]: efficiency of parallelization in Yade

2015-07-12 Thread mohsen
New question #269150 on Yade:
https://answers.launchpad.net/yade/+question/269150

in the name of god
hello all
as i read in YADE documentation Yade was originally not designed with parallel 
computation in mind, but rather with maximum flexibility (for good or for bad). 
Parallel execution was added later; and in other hand i have read some 
comments about parallelization efficiency which is limited. 
in our college there is a cluster with 64 cores but installing any other code 
and program is a kind of disturbance for students and staff!!!  is there any 
body who can make a comparison between the cluster and a PC (for example core 
i7)? is there a great difference in computation cost? number of particles are 
more than 20,000 which each particle is approximated by clump of spheres.
thank so much

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


  1   2   >