output

Asked by zyz

hello everyone.
   Is it possible to output a file in STL format? I just build a box and some sphere particles. I want to get the position and radius for being used in flow 3d.

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

> Is it possible to output a file in STL format?

yes, of course.

> I just build a box and some sphere particles

Do you want to export the box, spheres or both?

> I want to get the position and radius for being used in flow 3d.

What exactly is "position and radius"? positionS and radII of spheres?

Do you want STL output (triangulated surface) or "position and radius"?

what is "flow 3d"?

In general, please be more specific [1].
Ideally also provide a MWE [1] with more specific description of what you want to achieve.

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
zyz (gscczyz) said :
#2

First of all, thanks, Jan.

I want export the information of the box and sphere. This information includes the relative positions of the box and the spherical particles and the radius of the sphere. I want to use this information to rebuild the box and sphere particles in other software. And the box and sphere particle Can't just have triangulated surface. I hope the reconstructed object is solid.

I got stuck on this for a few days.

Best wishes for you.

Revision history for this message
Jan Stránský (honzik) said :
#3

Hello,

please provide a MWE [1]

> relative positions of the box and the spherical particles

why not absolute positions?
What exactly is "relative positions"? absolute positions minus a constant?

> And the box and sphere particle Can't just have triangulated surface.

then you do NOT want STL [2] ("Standard Triangle Language ... STL files describe only the surface geometry of a three-dimensional object ... An STL file describes a raw, unstructured triangulated surface ...").

> I hope the reconstructed object is solid.

this pretty much depends on "other software". The center-radius describes both spherical surface as well as spherical solid, the data about box (vertices, surface, even triangulated surface) can be used both for surface and "reconstruction a solid object" from closed surface should be trivial..

> I want ... to rebuild the box and sphere particles in other software

what is "other software" (what file format does it support etc.)?

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://en.wikipedia.org/wiki/STL_(file_format)

Revision history for this message
zyz (gscczyz) said :
#4

 I'm sorry I got this concept(STL) wrong. How can I output a STL file in YADE ? When I search STL in YADE, I can't find it correctly.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

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

Revision history for this message
Jan Stránský (honzik) said :
#6

Hello,
sorry for late answer. I think there is no built-in support for STL output (exporting triangulated surface is not a usual use case for Yade).
But the STL format is easy [2], there exist Python support [3,4] and it was already discussed here [5,6]
cheers
Jan

[3] https://pypi.org/project/stl/
[4] https://pypi.org/search/?q=stl
[5] https://answers.launchpad.net/yade/+question/688822
[6] https://answers.launchpad.net/yade/+question/688983

Revision history for this message
zyz (gscczyz) said :
#7

Thank you,Jan
I solved this problem with paraview.