← Back to team overview

yade-users team mailing list archive

Re: [Question #230216]: How to apply boundary of seismic acceleration

 

Question #230216 on Yade changed:
https://answers.launchpad.net/yade/+question/230216

    Status: Open => Answered

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

I personally don't know about any implemented function for your situation.
However, you can write your own python code :-) something like:

class AccelerogramApplier:
  def __init__(self,bodies,accelerogram):
     self.accelerogram = accelerogram
     self.bodies = bodies
  def getAccel(self):

for t,a in self.acceleration:
        if O.time > t: break

  def applyAccel(self):
     a = self.getAceleration()
     for b in self.bodies:
        O.forces.addF(b.id,a*b.state.mass)
accelerogram = [(0.0,0.0),(0.4,2.0),(0.8,3.2),(1.2,0.9),(1.6,-0.4),...] #
time-acceleration pairs, the format may be any other , possibly loaded from
file


2013/6/5 Henry <question230216@xxxxxxxxxxxxxxxxxxxxx>

> New question #230216 on Yade:
> https://answers.launchpad.net/yade/+question/230216
>
> Hi, All,
>    I want to use the Yade to simulate the failure process of the slope
> under earthquake conditions. However, I can't find the function for the
> application of the seismic acceleration?
>  Is there anyone who has used this function? Thanks a lot!
>   Henry!
>
> --
> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

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