Re: [Yade-users] [Question #274036]: I can't open Inspector in Ubuntu 15.10 with yadedaily.

2017-06-17 Thread Jan Stránský
Question #274036 on Yade changed:
https://answers.launchpad.net/yade/+question/274036

Jan Stránský posted a new comment:
Hi Jason,

i'm wondering where I can do the modification


in the script, where something.setMargin(...) is used.

cheers
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 #643878]: Uniaxial strainer source

2017-06-17 Thread Jan Stránský
Question #643878 on Yade changed:
https://answers.launchpad.net/yade/+question/643878

Jan Stránský proposed the following answer:
Hi Manon,
have a look at [1], figure 3.8 (page 49). Red particles are posids and green 
particles are negids (or vice versa, you can easily test it). Their 
velocity/displacement is prescribed and force is measured.
cheers
Jan

[1] http://beta.arcig.cz/lide/eudoxos/smilauer2010-phd-thesis.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 #641561]: Hinge constraint between facets

2017-06-17 Thread Jan Stránský
Question #641561 on Yade changed:
https://answers.launchpad.net/yade/+question/641561

Status: Open => Answered

Jan Stránský proposed the following answer:
Hello Alessandro,

> 1) Is it possible to add an hinge constraint between the lower edge of
the fin and the side of the cylinder, such that the fin can passively
open when the harpoon is re-tracted?

not directly, but in principle it is possible. A kind of penalty stiffness 
method put inside a PyRunner came to my mind, something like:
* dst = distance of hinges on both clumps = something
* force = dst * penaltyStiffness
* add forces and correcponding moments (excentricity of the force with respect 
to clump pos) to both clumps

> 2) Moreover, I created the geometry following some examples and
answers I found here. Is the procedure I used, to generate a dynamic
element made of facets, correct?

after a quick look it seems ok. If a rotation of clumped facets is
important in your simulation, maybe more precise mass then 1e-6 will be
needed for facets as the pos of the clump is computed based on pos and
mass of individual facets. You cen easily test if the difference between
computed and desired pos is negligible or not.

cheers
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 #638137]: Adding a new contact Law

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

Status: Open => Expired

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

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

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


[Yade-users] [Question #644156]: Deformation Record

2017-06-17 Thread Seti
New question #644156 on Yade:
https://answers.launchpad.net/yade/+question/644156

hi all,

I need to save the deformation of the sample in UCS test, for post processing, 
in below script - maybe by using defToVtk  can you please let me know how? I 
could not find any sample in this regards,
Thanks

#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import division

from yade import plot,pack,timing, qt
import time, sys, os, copy

#import matplotlib
#matplotlib.rc('text',usetex=True)
#matplotlib.rc('text.latex',preamble=r'\usepackage{concrete}\usepackage{euler}')



"""
A fairly complex script performing uniaxial tension-compression test on 
hyperboloid-shaped specimen.
Most parameters of the model (and of the setup) can be read from table using 
yade-multi.
After the simulation setup, tension loading is run and stresses are 
periodically saved for plotting
as well as checked for getting below the maximum value so far. This indicates 
failure (see stopIfDamaged
function). After failure in tension, the original setup is loaded anew and the 
sense of loading reversed.
After failure in compression, strain-stress curves are saved via 
plot.saveGnuplot and we exit,
giving some useful information like peak stresses in tension/compression.
Running this script for the first time can take long time, as the specimen is 
prepared using triaxial
compression. Next time, however, an attempt is made to load 
previously-generated packing 
(from /tmp/triaxPackCache.sqlite) and this expensive procedure is avoided.
The specimen length can be specified, its diameter is half of the length and 
skirt of the hyperboloid is 
4/5 of the width.
The particle size is constant and can be specified using the sphereRadius 
parameter.
The 3d display has displacement scaling applied, so that the fracture looks 
more spectacular. The scale
is 1000 for tension and 100 for compression.
"""



# default parameters or from table
readParamsFromTable(noTableOk=True, # unknownOk=True,
young=270e6,
poisson=.2,

sigmaT=30e4,
frictionAngle=atan(.75),
epsCrackOnset=1e-3,
relDuctility=20,

intRadius=1.5,
dtSafety=.8,
damping=0.4,
strainRateTension=1e-1,
strainRateCompression=1e-1,
setSpeeds=True,
# 1=tension, 2=compression (ANDed; 3=both)
doModes=2,

specimenLength=.030,
sphereRadius=5e-3,

# isotropic confinement (should be negative)
isoPrestress=0,
)

from yade.params.table import *

if 'sigmaT=3.5e6, compression' in O.tags.keys(): 
O.tags['id']=O.tags['id']+O.tags['sigmaT=3.5e6, compression']


# make geom; the dimensions are hard-coded here; could be in param table if 
desired
# z-oriented hyperboloid, length 20cm, diameter 10cm, skirt 8cm
# using spheres 7mm of diameter
concreteId=O.materials.append(CpmMat(young=young,frictionAngle=frictionAngle,poisson=poisson,density=4800,sigmaT=sigmaT,relDuctility=relDuctility,epsCrackOnset=epsCrackOnset,isoPrestress=isoPrestress))
#concreteId=O.materials.append(CohFrictMat(young=30e9,poisson=0.2,alphaKr=3000,alphaKtw=3000,density=2700,frictionAngle=0.6,isCohesive=True,momentRotationLaw=True,normalCohesion=-3.5e6,shearCohesion=-10e6,etaRoll=-3))
sps=SpherePack()
#sp=pack.randomDensePack(pack.inHyperboloid((0,0,-.5*specimenLength),(0,0,.5*specimenLength),.25*specimenLength,.17*specimenLength),spheresInCell=2000,radius=sphereRadius,memoizeDb='/tmp/triaxPackCache.sqlite',returnSpherePack=True)

#
sp=pack.SpherePack()
pred=pack.inCylinder((0,0,0.0002),(0,0,0.090),0.030)
O.bodies.append(pack.randomDensePack(pred,radius=0.00325,material=concreteId))

#pred=pack.inCylinder((0,0,0),(0,0,0.2),0.1)

#sp=pack.randomDensePack(pred,radius=0.002,material=concreteId)
#O.bodies.append(TS1)
##

#sp=pack.randomDensePack(pack.inAlignedBox((-.25*specimenLength,-.25*specimenLength,-.5*specimenLength),(.25*specimenLength,.25*specimenLength,.5*specimenLength)),spheresInCell=2000,radius=sphereRadius,memoizeDb='/tmp/triaxPackCache.sqlite',returnSpherePack=True)
sp.toSimulation(material=concreteId)
bb=uniaxialTestFeatures()
negIds,posIds,axis,crossSectionArea=bb['negIds'],bb['posIds'],bb['axis'],bb['area']
O.dt=dtSafety*PWaveTimeStep()
print 'Timestep',O.dt
print 'sigmaT=150e3,duc30, compression,1e-4'
mm,mx=[pt[axis] for pt in aabbExtrema()]
coord_25,coord_50,coord_75=mm+.25*(mx-mm),mm+.5*(mx-mm),mm+.75*(mx-mm)
area_25,area_50,area_75=approxSectionArea(coord_25,axis),approxSectionArea(coord_50,axis),approxSectionArea(coord_75,axis)

O.engines=[
ForceResetter(),

InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=intRadius,label='is2aabb'),],verletDist=.05*sphereRadius),
InteractionLoop(

[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=intRadius,label='ss2sc')],
[Ip2_CpmMat_CpmMat_CpmPhys()],
[Law2_ScGeom_CpmPhys_Cpm()],
),
NewtonIntegrator(damping=dam