← Back to team overview

yade-users team mailing list archive

[Question #251967]: Parametric studies -Datas problem

 

New question #251967 on Yade:
https://answers.launchpad.net/yade/+question/251967

Hy Everybody,

I'm a newbie in Yade, for this reason please help me. I would like to make a  parametric study of Triaxial test. I would like to change any parameters in the simulations. For this I used the yade batch mode, and everything was good. A little problem for me: I want to make a diagram from normal and shear forces based on the multiple simulations with one script. How can I save specified datas in all simulation than (if all of the simulations done) process these datas.

I hade been testing functions, for and while loops, but these were not good. 

def Gravitydepos():
   # basic simulation showing sphere falling ball gravity,
   # bouncing against another sphere representing the support

  # DATA COMPONENTS

  # add 2 particles to the simulation
  # they the default material (utils.defaultMat)
  O.bodies.append([
    # fixed: particle's position in space will not change (support)
     utils.sphere(center=(0,0,0),radius=.5,fixed=True),
     # this particles is free, subject to dynamics
     utils.sphere((0,0,2),.5)
  ])

  # FUNCTIONAL COMPONENTS

  # simulation loop -- see presentation for the explanation
  O.engines=[
     ForceResetter(),
     InsertionSortCollider([Bo1_Sphere_Aabb()]),
     InteractionLoop(
        [Ig2_Sphere_Sphere_L3Geom()],        # collision geometry 
        [Ip2_FrictMat_FrictMat_FrictPhys()], # collision "physics"
        [Law2_L3Geom_FrictPhys_ElPerfPl()]   # contact law -- apply forces
     ),
     # apply gravity force to particles
     GravityEngine(gravity=(0,0,-9.81)),
     # damping: numerical dissipation of energy
     NewtonIntegrator(damping=0.1)
  ]

# set timestep to a fraction of the critical timestep
# the fraction is very small, so that the simulation is not too fast
# and the motion can be observed
  O.dt=.5e-4*utils.PWaveTimeStep()

# save the simulation, so that it can be reloaded later, for experimentation
  O.saveTmp()

I can not call this function. please help me! Thanks a lot!

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.