Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
behzad posted a new comment:
Weimin,
No! I could not find a solution finally.
--
You received this question notification because your team yade-users is
an answer contact for Yade.
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
Weimin Song posted a new comment:
Hey behzad,
Do you solve the problem?
--
You received this question notification because your team yade-users is
an answer contact for Yade.
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
behzad posted a new comment:
OK. Thank you Bruno
--
You received this question notification because your team yade-users is
an answer contact for Yade.
___
Mailing
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
Status: Open => Answered
Bruno Chareyre proposed the following answer:
b.volume=TW.volume(b.id) is not the same in terms of scope, and the
problems you have are mainly scope problems.
>"The question is how
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
Status: Answered => Open
behzad is still having a problem:
I just find no way to get this thing working. Even with globals it gives
an error!
TW=TesselationWrapper()
TW.triangulate()
TW.computeVolumes()
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
Bruno Chareyre proposed the following answer:
It must be a scope issue, try something around
globals()["TW"].volume(id)?
Else it should be possible to add the attribute:
b.volume=TW.volume(b.id) #then use it to
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
behzad posted a new comment:
I even tried the following. The problem is that vtkExporter is not accepting
any function from outside. In the following script I get the error of TW is not
defined.
Then, I
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
behzad posted a new comment:
I understand that to visualize the deformation for example we can write:
#TW.setState(0)
#O.run(10,True)
#TW.setState(1)
#TW.defToVtk("strainvtk")
But there's not function like
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
behzad posted a new comment:
yes the equation is fine. How to export it however, is not clear to me.
I'd like to get the triangulated scene with this parameter (porosity) assigned
to them.
The following
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
Bruno Chareyre proposed the following answer:
I am assuming that you know how to export any value attached to particles using
VTK exporter (else please see the doc, this one is well documented).
Then the only
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
Chareyre proposed the following answer:
TW.volume(i) is the volume assigned to one sphere. From this you can
easily define the corresponding porosity.
B
--
You received this question notification because
Question #290070 on Yade changed:
https://answers.launchpad.net/yade/+question/290070
behzad posted a new comment:
map of porosity is what I'd like to get. How can I get this by means of TW?
--
You received this question notification because your team yade-users is
an answer contact for Yade.
New question #290070 on Yade:
https://answers.launchpad.net/yade/+question/290070
Hi there,
I'd like to know if we can visualize the porosity gradient (if any) in the
sample by using TesselationWrapper. Or is there any other way to to this?
Thanks
--
You received this question notification
13 matches
Mail list logo