← Back to team overview

yade-users team mailing list archive

Re: [Question #688060]: Extracting micro variables from Triaxial test

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
something like:
###
with open(fileName,"w") as f:
   f.write("# cpx cpy cpz fnx fny fnz ...\n")
   for d in data: # or directly for i in O.interactions
      cp = d["cp"]
      fn = d["fn"]
      ...
      f.write("{} {} {}  {} {} {} ... "\n".format(cp[0],cp[1],cp[2],fn[0],fn[1],fn[2],...)
###

cheers
Jan

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