Re: [Yade-users] [Question #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-10 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Status: Open => Solved

Shivpreet sharma confirmed that the question is solved:
Thanks for help Robert.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #671372]: VTK

2018-08-10 Thread Shivpreet sharma
Question #671372 on Yade changed:
https://answers.launchpad.net/yade/+question/671372

Status: Answered => Solved

Shivpreet sharma confirmed that the question is solved:
Thanks Robert Caulk, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-10 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Status: Solved => Open

Shivpreet sharma is still having a problem:
But I am facing another issue while plotting of the graph that my
tensile crack are coming constantly in Plot. They are n't changing at
all.So can someone help me with this 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 #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-10 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Status: Open => Solved

Shivpreet sharma confirmed that the question is solved:
Thanks Robert Caulk, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #670255]: properties of rock

2018-08-10 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Summary changed to:
properties of rock

Description changed to:
y

-- 
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 #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-09 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Status: Answered => Open

Shivpreet sharma is still having a problem:
  It is showing this error:


Running script gravity.py
  File "", line 1
__builtins__.strength reduction=Omega().labeledEngine('strength reduction')
  ^
SyntaxError: invalid syntax
  File "", line 1
__builtins__.strength reduction=Omega().labeledEngine('strength reduction')
  ^
SyntaxError: invalid syntax
/usr/lib/python2.7/dist-packages/matplotlib/artist.py:221: 
MatplotlibDeprecationWarning: This has been deprecated in mpl 1.5, please use 
the
axes property.  A removal date has not been set.
  warnings.warn(_get_axes_msg, mplDeprecation, stacklevel=1)


UnboundLocalError Traceback (most recent call last)
/usr/bin/yadedaily in ()

/usr/bin/yadedaily in reduceStrength()
134 
135 
--> 136 srFactor *= 0.9
137 for cont in O.interactions:
138   cont.phys.FnMax *= 0.9

UnboundLocalError: local variable 'srFactor' referenced before
assignment

-- 
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 #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-09 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Status: Answered => Open

Shivpreet sharma is still having a problem:
I have added this portion in my script but it was showing me an error :

NameError Traceback (most recent call last)
/usr/bin/yadedaily in ()

/usr/bin/yadedaily in history()
132 def history():
133plot.addData(
--> 134TSSR = srfactor,
135iters = O.iter,
136cracks = jcfpmlaw.nbTensileCracks

NameError: global name 'srfactor' is not defined


so where I have define 'srfactor'  and 'jcfpmlaw.nbTensileCracks' in my script

-- 
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 #671372]: VTK

2018-08-09 Thread Shivpreet sharma
Question #671372 on Yade changed:
https://answers.launchpad.net/yade/+question/671372

Status: Solved => Open

Shivpreet sharma is still having a problem:
One more thing, can you suggest me some proper procedure to load VTU
files in paraview such I can get the proper visualisation of the sphere
in paraview. I have followed the instruction given in YADE documentation
but that isn't generating a define diagram such as in the given link:

https://drive.google.com/file/d/1FYMnoAD1dpukmm5RS-
jUgd2W0beU14Tr/view?usp=sharing

It is generating like this:
https://drive.google.com/file/d/1LF_roHT65-6k2EAnYCqOkm4QgFAmN9hZ/view?usp=sharing

-- 
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 #671372]: VTK

2018-08-09 Thread Shivpreet sharma
Question #671372 on Yade changed:
https://answers.launchpad.net/yade/+question/671372

Status: Answered => Solved

Shivpreet sharma confirmed that the question is solved:
Thanks Robert Caulk, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-09 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Status: Answered => Open

Shivpreet sharma is still having a problem:
It is showing this error


AttributeErrorTraceback (most recent call last)
/usr/bin/yadedaily in ()

/usr/bin/yadedaily in history()
145TSSR = srFactor,
146iters = O.iter,
--> 147cracks =interactionLaw.nbTensileCracks
148 )
149 

AttributeError: 'Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM'
object has no attribute 'nbTensileCracks'

-- 
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 #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-09 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Description changed to:
I have read this question related to my problems

https://answers.launchpad.net/yade/+question/428040

But I do not understand how will I plot a graph in which on left Y axis there 
is strength reduction(TSSR) and on the right Y-axis there are tensile crack 
events with iteration similar to attached in the given link:
https://drive.google.com/file/d/1WU-lgHpfLFSaoNAqjKRioQlVmXnSYZbK/view?usp=sharing


And the script is:
from yade import plot, pack,utils,ymport

 controling parameters
packing='iit_10_plane'
smoothContact=True
jointFrict=radians(20)
jointDil=radians(0)
output='jointDip30_jointFrict20'
maxIter=1

 Import of the sphere assembly
def sphereMat(): return 
JCFpmMat(type=1,young=1e8,frictionAngle=radians(30),density=3000,poisson=0.3,tensileStrength=1e6,cohesion=1e6,jointNormalStiffness=1e7,jointShearStiffness=1e7,jointCohesion=1e6,jointFrictionAngle=jointFrict,jointDilationAngle=jointDil)
 ## Rq: density needs to be adapted as porosity of real rock is different to 
granular assembly due to difference in porosity 
(utils.sumForces(baseBodies,(0,1,0))/(Z*X) should be equal to Gamma*g*h with 
h=Y, g=9.82 and Gamma=2700 kg/m3
O.bodies.append(ymport.text(packing+'.spheres',scale=1.,shift=Vector3(5,-32.4,-4),material=sphereMat))

## preprocessing to get dimensions of the packing
dim=utils.aabbExtrema()
dim=utils.aabbExtrema()
xinf=dim[0][0]
xsup=dim[1][0]
X=xsup-xinf
yinf=dim[0][1]
ysup=dim[1][1]
Y=ysup-yinf
zinf=dim[0][2]
zsup=dim[1][2]
Z=zsup-zinf

## preprocessing to get spheres dimensions
R=0
Rmax=0
numSpheres=0.
for o in O.bodies:
 if isinstance(o.shape,Sphere):
   numSpheres+=1
   R+=o.shape.radius
   if o.shape.radius>Rmax:
 Rmax=o.shape.radius
Rmean=R/numSpheres

 Identification of the spheres on joint (some DIY here!) -> work to do on 
import function textExt to directly load material properties from the ascii file
inFile=open(packing+'_jointedPM.spheres','r')
for line in inFile:
if '#' in line : continue
id = int(line.split()[0])
onJ = int(line.split()[1])
nj = int(line.split()[2])
j11 = float(line.split()[3])
j12 = float(line.split()[4])
j13 = float(line.split()[5])
j21 = float(line.split()[6])
j22 = float(line.split()[7])
j23 = float(line.split()[8])
j31 = float(line.split()[9])
j32 = float(line.split()[10])
j33 = float(line.split()[11])
O.bodies[id].state.onJoint=onJ
O.bodies[id].state.joint=nj
O.bodies[id].state.jointNormal1=(j11,j12,j13)
O.bodies[id].state.jointNormal2=(j21,j22,j23)
O.bodies[id].state.jointNormal3=(j31,j32,j33)
inFile.close

 Boundary conditions
e=2*Rmean
Xmax=0
Ymax=0
baseBodies=[]

for o in O.bodies:
   if isinstance(o.shape,Sphere):
  o.shape.color=(0.9,0.8,0.6)
  ## to fix boundary particles on ground
  if o.state.pos[1]<(yinf+2*e) :
  o.state.blockedDOFs+='xyz'
  baseBodies.append(o.id)
  o.shape.color=(1,1,1)

  ## to identify indicator on top
  if o.state.pos[1]>(yinf-e) and o.state.pos[0]>(18) and 
o.state.pos[2]>(zinf+(Z-e)/2) and o.state.pos[2]<(zsup-(Z-e)/2) :
 refPoint=o.id
 p0=o.state.pos[1]

baseBodies=tuple(baseBodies)
O.bodies[refPoint].shape.color=(1,0,0)

 Engines definition
interactionRadius=1. # to set initial contacts to larger neighbours
O.engines=[

 ForceResetter(),
 
InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=interactionRadius,label='is2aabb'),]),
 InteractionLoop(
  
[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=interactionRadius,label='ss2d3dg')],
  
[Ip2_JCFpmMat_JCFpmMat_JCFpmPhys(cohesiveTresholdIteration=1,label='interactionPhys')],
  
[Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM(smoothJoint=smoothContact,label='interactionLaw')]
 ),
 GlobalStiffnessTimeStepper(timestepSafetyCoefficient=0.8),
 PyRunner(iterPeriod=1000,initRun=False,command='jointStrengthDegradation()'),
 
VTKRecorder(iterPeriod=5000,initRun=True,fileName=(output+'-'),recorders=['spheres','velocity','intr']),
 PyRunner(iterPeriod=10,initRun=True,command='dataCollector()'),
 NewtonIntegrator(damping=0.7,gravity=(0.,-9.82,0.)),

]

 dataCollector
plot.plots={'iterations':('p',)}
def dataCollector():
 R=O.bodies[refPoint]
 
plot.addData(v=R.state.vel[1],p=R.state.pos[1]-p0,iterations=O.iter,t=O.realtime)
 plot.saveDataTxt(output)

 joint strength degradation
stableIter=2000
stableVel=0.001
degrade=True
def jointStrengthDegradation():
global degrade
if degrade and O.iter>=stableIter and 

Re: [Yade-users] [Question #671372]: VTK

2018-08-09 Thread Shivpreet sharma
Question #671372 on Yade changed:
https://answers.launchpad.net/yade/+question/671372

Status: Answered => Open

Shivpreet sharma is still having a problem:
Ok thanks for the help, Robert. But the thing is I am not getting the procedure 
to generate the scale of variation of the velocity of spheres with different 
colour variations similar to the attached link:
https://drive.google.com/file/d/1WXax8_8J9iC_7846oIzRdTiAZ_69AVyi/view?usp=sharing

You might see there on the right Y-axis there is a scale which is
showing is the variation of velocity and this is the thing that I am not
getting  in Paraview

-- 
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 #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-09 Thread Shivpreet sharma
Question #671468 on Yade changed:
https://answers.launchpad.net/yade/+question/671468

Description changed to:
I have read this question related to my problems

https://answers.launchpad.net/yade/+question/428040

But I do not understand how will I plot a graph in which on left Y axis there 
is strength reduction(TSSR) and on the right Y-axis there are tensile crack 
events with iteration similar to attached in the given link:
https://drive.google.com/file/d/1WU-lgHpfLFSaoNAqjKRioQlVmXnSYZbK/view?usp=sharing

-- 
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 #671468]: How to use TSSR method in order to promote failure in YADE??

2018-08-09 Thread Shivpreet sharma
New question #671468 on Yade:
https://answers.launchpad.net/yade/+question/671468

I have read this question related to my problems 

https://answers.launchpad.net/yade/+question/428040

But I do not understand how will I plot a graph in which on left Y axis there 
is strength reduction(TSSR) and on the right Y-axis there are tensile crack 
events with iteration similar to attached in the given link:
https://drive.google.com/file/d/1WXax8_8J9iC_7846oIzRdTiAZ_69AVyi/view?usp=sharing

-- 
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 #671372]: VTK

2018-08-09 Thread Shivpreet sharma
Question #671372 on Yade changed:
https://answers.launchpad.net/yade/+question/671372

Status: Answered => Open

Shivpreet sharma is still having a problem:
I have used the above script which is similar to given link 
"https://github.com/yade/trunk/blob/master/examples/jointedCohesiveFrictionalPM/gravityLoading.py;
After the execution of the script, I am getting two files as output whose names 
are jointDip30_jointFrict20 with format VTP and VTU.
I am not getting an idea about how after loading this files into paraview how 
can I get a variation of the velocity of spheres while slope is collapsing 
similar to this image:
https://drive.google.com/file/d/1WXax8_8J9iC_7846oIzRdTiAZ_69AVyi/view?usp=sharing

I have read also the instruction given in YADE Documentation.

-- 
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 #671372]: VTK

2018-08-05 Thread Shivpreet sharma
New question #671372 on Yade:
https://answers.launchpad.net/yade/+question/671372

hi, I m new on YADE. I have problems with vtk recorder. I m able to export the 
particles positions of my deposition and the facets that I have, and I am able 
to generate vtp and vtu files but I am not able to set the conditions in 
paraview such that I can get a variation of velocities of sphere during 
collapsing of the slope. Also while executing this script I am getting a 
statement like 
"!joint cohesion total degradation!  | iteration= 2000"
So does  it have some reference why all the sphere are not falling down during 
collapsing of the slope above the persistent plane



from yade import plot, pack,utils,ymport

 controling parameters
packing='iit_10_plane'
smoothContact=True
jointFrict=radians(20)
jointDil=radians(0)
output='jointDip30_jointFrict20'
maxIter=1

 Import of the sphere assembly
def sphereMat(): return 
JCFpmMat(type=1,young=1e8,frictionAngle=radians(30),density=3000,poisson=0.3,tensileStrength=1e6,cohesion=1e6,jointNormalStiffness=1e7,jointShearStiffness=1e7,jointCohesion=1e6,jointFrictionAngle=jointFrict,jointDilationAngle=jointDil)
 ## Rq: density needs to be adapted as porosity of real rock is different to 
granular assembly due to difference in porosity 
(utils.sumForces(baseBodies,(0,1,0))/(Z*X) should be equal to Gamma*g*h with 
h=Y, g=9.82 and Gamma=2700 kg/m3
O.bodies.append(ymport.text(packing+'.spheres',scale=1.,shift=Vector3(5,-32.4,-4),material=sphereMat))

## preprocessing to get dimensions of the packing
dim=utils.aabbExtrema()
dim=utils.aabbExtrema()
xinf=dim[0][0]
xsup=dim[1][0]
X=xsup-xinf
yinf=dim[0][1]
ysup=dim[1][1]
Y=ysup-yinf
zinf=dim[0][2]
zsup=dim[1][2]
Z=zsup-zinf

## preprocessing to get spheres dimensions
R=0
Rmax=0
numSpheres=0.
for o in O.bodies:
 if isinstance(o.shape,Sphere):
   numSpheres+=1
   R+=o.shape.radius
   if o.shape.radius>Rmax:
 Rmax=o.shape.radius
Rmean=R/numSpheres

 Identification of the spheres on joint (some DIY here!) -> work to do on 
import function textExt to directly load material properties from the ascii file
inFile=open(packing+'_jointedPM.spheres','r')
for line in inFile:
if '#' in line : continue
id = int(line.split()[0])
onJ = int(line.split()[1])
nj = int(line.split()[2])
j11 = float(line.split()[3])
j12 = float(line.split()[4])
j13 = float(line.split()[5])
j21 = float(line.split()[6])
j22 = float(line.split()[7])
j23 = float(line.split()[8])
j31 = float(line.split()[9])
j32 = float(line.split()[10])
j33 = float(line.split()[11])
O.bodies[id].state.onJoint=onJ
O.bodies[id].state.joint=nj
O.bodies[id].state.jointNormal1=(j11,j12,j13)
O.bodies[id].state.jointNormal2=(j21,j22,j23)
O.bodies[id].state.jointNormal3=(j31,j32,j33)
inFile.close

 Boundary conditions
e=2*Rmean
Xmax=0
Ymax=0
baseBodies=[]

for o in O.bodies:
   if isinstance(o.shape,Sphere):
  o.shape.color=(0.9,0.8,0.6)
  ## to fix boundary particles on ground
  if o.state.pos[1]<(yinf+2*e) :
 o.state.blockedDOFs+='xyz'
 baseBodies.append(o.id)
 o.shape.color=(1,1,1)

  ## to identify indicator on top
  if o.state.pos[1]>(yinf-e) and o.state.pos[0]>(18) and 
o.state.pos[2]>(zinf+(Z-e)/2) and o.state.pos[2]<(zsup-(Z-e)/2) : 
refPoint=o.id
p0=o.state.pos[1]

baseBodies=tuple(baseBodies)
O.bodies[refPoint].shape.color=(1,0,0)

 Engines definition
interactionRadius=1. # to set initial contacts to larger neighbours
O.engines=[

ForceResetter(),

InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=interactionRadius,label='is2aabb'),]),
InteractionLoop(

[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=interactionRadius,label='ss2d3dg')],

[Ip2_JCFpmMat_JCFpmMat_JCFpmPhys(cohesiveTresholdIteration=1,label='interactionPhys')],

[Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM(smoothJoint=smoothContact,label='interactionLaw')]
),
GlobalStiffnessTimeStepper(timestepSafetyCoefficient=0.8),

PyRunner(iterPeriod=1000,initRun=False,command='jointStrengthDegradation()'),

VTKRecorder(iterPeriod=5000,initRun=True,fileName=(output+'-'),recorders=['spheres','velocity','intr']),
PyRunner(iterPeriod=10,initRun=True,command='dataCollector()'),
NewtonIntegrator(damping=0.7,gravity=(0.,-9.82,0.)),

]

 dataCollector
plot.plots={'iterations':('p',)}
def dataCollector():
R=O.bodies[refPoint]

plot.addData(v=R.state.vel[1],p=R.state.pos[1]-p0,iterations=O.iter,t=O.realtime)
plot.saveDataTxt(output)

 joint strength degradation
stableIter=2000
stableVel=0.001
degrade=True
def jointStrengthDegradation():
global degrade
if degrade and O.iter>=stableIter and 

Re: [Yade-users] [Question #670255]: Modelling a Homogenous slope with properties of rock

2018-07-27 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Open

Shivpreet sharma is still having a problem:
Hi,
I haven't edited the initial script but even I haven't done the changes in the 
initial script according to model. I have tried doing it but I am not getting 
body id of the particle located on top corner of moving part.

Dimensions are length -11.24  ,width -20 ,height -8.

The model figure is attached below.

GTS:
https://drive.google.com/file/d/1BtwHfgojSKCLCTtMB9ISpiPtmvFNUHBP/view?usp=sharing

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-14 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Shivpreet sharma gave more information on the question:
And here is the link for script which identify joint:
https://drive.google.com/file/d/1Ic1pyc015bal9bt4FsXK4yx81x_Td67o/view?usp=sharing

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-14 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Shivpreet sharma gave more information on the question:
And here is the link for script which identify joint:
https://drive.google.com/file/d/1Ic1pyc015bal9bt4FsXK4yx81x_Td67o/view?usp=sharing

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-13 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Solved => Open

Shivpreet sharma is still having a problem:
I have tried executing the steps as suggested by Luc in comment#18.But i
am facing problem in executing in running gravityLoading.py. It is
showing the error :


  execfile(script,globals())  File "gravity.py", line 84, in 
O.bodies[refPoint].shape.color=(-1,-1,-1)
NameError: name 'refPoint' is not defined

Here is the link for my script : https://drive.google.com/file/d
/1TZYzE2W-MEwVFd47LOa7g2bfJIY9oV4Z/view?usp=sharing

and following documents related for execution of that script:

https://drive.google.com/file/d/1aHuIQ5HV2pVWEA_1hW3ycMlcJLEdJQE2/view?usp=sharing
https://drive.google.com/file/d/17OXc4AvZYlx_kXM2LdJayvPETAr3NHBs/view?usp=sharing
https://drive.google.com/file/d/1VMUZCqJXER8pEJmEXiszXJ2HGC3mAhNf/view?usp=sharing

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-05 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Solved

Shivpreet sharma confirmed that the question is solved:
Thanks for the help, Luc. Next time I will remember to be more specific
about my 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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-02 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Open

Shivpreet sharma is still having a problem:
Thanks  a Lot Luc that has solved my problem.I just need more help regarding 
(comment #2). How can I add a particular joint dip angle in this gts file as in 
that code they have done in another way.Also can you help how can I calculate 
factor of safety of such slope
as I have the read given link provided in (comment #5) but I am not able to 
understand it how will I execute that in YADE.

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-02 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Open

Shivpreet sharma is still having a problem:
Hello Luc,

For more explanation of  this line I have attached link you can check it
out what i want to express "But it's doesn't help me because he was
adding in left out space which doesn't consist facets."

https://drive.google.com/file/d/1IBQqJTuRz3V6gChYdd9wmkCD3ryS0Z2e/view?usp=sharing

Also I have tried execution of above code but the similar result is
obtaining which I have showed in above link.

I have attached my Drawing STL and GTS format

STL: 
https://drive.google.com/file/d/1TLK-Ewmol77RbGp8s5ccYXPZxs_m96Wh/view?usp=sharing
GTS: 
https://drive.google.com/file/d/1Z1UZb3XQJsWTr3f6jWaqTdz1fBj56PJN/view?usp=sharing

After reading your code even I have tried drawing my model using mesh modelling 
in autocad but the result are same.
I have attached that drawing link also:

STL: 
https://drive.google.com/file/d/1T4AXqsq184CWXvw_MI_20SG6Xx7AAuaJ/view?usp=sharing
GTS: 
https://drive.google.com/file/d/1M1gf0QdXSbDHfAOcdlzHeev60YhnECSR/view?usp=sharing

Result Link:
https://drive.google.com/file/d/1OBlQ6Okbs5-MPnncHfXJr0K7zQhKw7uQ/view?usp=sharing

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-01 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Shivpreet sharma gave more information on the question:
And this is my code which I have used till now for further reference:

from yade import pack
import gts, os.path, locale
from yade import qt

surf=gts.read(open('s.gts'))

idTissue=O.materials.append(FrictMat(young=500.0,poisson=.35,frictionAngle=.6,label="concrete"))
pred=pack.inGtsSurface(surf)
aabb=pred.aabb()

dim0=aabb[1][0]-aabb[0][0];
# brain radius
dim0 = dim0/2.0
# small
radius=dim0/20. # get some characteristic dimension, use it for radius
O.bodies.append(pack.regularHexa(pred, radius=radius, gap=0.0, 
material=idTissue))

O.bodies.append(pack.gtsSurface2Facets(surf,wire=True))

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-07-01 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Open

Shivpreet sharma is still having a problem:
Thanks for help all of you.I have Converted stl drawing into gts but the
problem which I am facing is that how to add spheres in this gts with
predefined material properties.I have tried looking an example from the
below link

https://github.com/yade/trunk/blob/master/examples/stl-gts/gts-stl.py

But it's doesn't help me because he was adding in left out space which
doesn't consist facets.

I have attached my gts drawing:
https://drive.google.com/file/d/1Z1UZb3XQJsWTr3f6jWaqTdz1fBj56PJN/view?usp=sharing

Please help me out.

Thanks in advance

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-06-29 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Open

Shivpreet sharma is still having a problem:
Yes it is there *.stl format but can we used this in YADE???

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-06-29 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Open

Shivpreet sharma is still having a problem:
Thank you for help Jerome.But I have tried drawing a slope on autocad
2017 . But I am n't able to understand how to convert my drawing into
GTS format which can be used in YADE.

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-06-28 Thread Shivpreet sharma
Question #670255 on Yade changed:
https://answers.launchpad.net/yade/+question/670255

Status: Answered => Open

Shivpreet sharma is still having a problem:
Thanks for the help Luc and Jerome. I am trying to model it using your given 
references but can you help me how can I calculate factory of safety of rock 
slope with given dip and strike using any appropriate method. 
Thanks in advance

-- 
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 #670255]: Modelling a Homogenous slope with properties of rock

2018-06-16 Thread Shivpreet sharma
New question #670255 on Yade:
https://answers.launchpad.net/yade/+question/670255

Hello,

I am a beginner using Yade and I am trying to start a small project related to 
slope stability. The objective is to learn Yade and maybe to do something more 
elaborated in the future.I am trying to model slope with 30 degrees which is 
homogeneous with properties of rock(Granitic formation) and with a single joint 
of particular strike and dip.So can anyone help with some examples of code??


Thanks in advanced.

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