TriaxialTest export data

Asked by Ali Naseri on 2012-01-31

Hi

I'm using TriaxialTest to create a packing of particles, I like to export the spheres coordinates and other properties to a file Does the controller allow that? I've used the yade.export.VTKexporter in the terminal , apparently not compatible with TriaxialTest generator. What syntax do you use for exporting data from controller?

Thanks,

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2012-02-02
Last reply:
2012-02-02
Klaus Thoeni (klaus.thoeni) said : #1

Hi Ali,

what other properties do you need? Have a look here what can easily be done:

https://www.yade-dem.org/doc/yade.export.html

If you just need radius and coordinates of the spheres after the packing has
been created you can use the following commands:

from yade import export
export.text('mypacking.spheres')

This will give you a simple text file. You can use VTKexporter as well. In
order to use it you have to import the yade.export module first, e.g. use
command

from yade import export

HTH
Klaus

On Wed, 1 Feb 2012 10:35:38 AM Ali Naseri wrote:
> Question #186458 on Yade changed:
> https://answers.launchpad.net/yade/+question/186458
>
> Description changed to:
> Hi
>
> I'm using TriaxialTest to create a packing of particles, I like to
> export the spheres coordinates and other properties to a file Does the
> controller allow that? I've used the yade.export.VTKexporter in the
> terminal , apparently not compatible with TriaxialTest generator. What
> syntax do you use for exporting data from controller?
>
> Thanks,

Jan Stránský (honzik) said : #2

Hi Ali,

the exporter should be independent on controller.. What do you mean,
that the exporter is not compatible? did you use VTKExporter with
cappital E, or (as you send in the email) VTKexporter? I am just
curious, because I should be responsible for this tool :-)

if you need only coordinates, then Klaus's suggestions should be enough

good luck

Jan

Klaus Thoeni píše v St 01. 02. 2012 v 00:10 +0000:
> Question #186458 on Yade changed:
> https://answers.launchpad.net/yade/+question/186458
>
> Status: Open => Answered
>
> Klaus Thoeni proposed the following answer:
> Hi Ali,
>
> what other properties do you need? Have a look here what can easily be
> done:
>
> https://www.yade-dem.org/doc/yade.export.html
>
> If you just need radius and coordinates of the spheres after the packing has
> been created you can use the following commands:
>
> from yade import export
> export.text('mypacking.spheres')
>
> This will give you a simple text file. You can use VTKexporter as well. In
> order to use it you have to import the yade.export module first, e.g. use
> command
>
> from yade import export
>
> HTH
> Klaus
>
> On Wed, 1 Feb 2012 10:35:38 AM Ali Naseri wrote:
> > Question #186458 on Yade changed:
> > https://answers.launchpad.net/yade/+question/186458
> >
> > Description changed to:
> > Hi
> >
> > I'm using TriaxialTest to create a packing of particles, I like to
> > export the spheres coordinates and other properties to a file Does the
> > controller allow that? I've used the yade.export.VTKexporter in the
> > terminal , apparently not compatible with TriaxialTest generator. What
> > syntax do you use for exporting data from controller?
> >
> > Thanks,
>

Ali Naseri (artnaseri) said : #3

I used export.text to get the coordinates, I wondered if it's possible to to export to a file the volume of the packing, their surface area and particle size distribution through the VTKExporter . But I was not sure about the syntax of the command for VTKExporter. exportSpheres() to get those properties , examples in the manual are not very helpful for all the cases.

I know I can get for example porosity and PSD through other commands in the terminal. Just wanted to have all in an export file. Because I'm gonna do a large size particle packing.

Thank You!

Anton Gladky (gladky-anton) said : #4

I think, for such specific task you should write a simple function,
which exports all information, you need.
Export-Import functions in Yade are for generic case.

Anton

Can you help with this problem?

Provide an answer of your own, or ask Ali Naseri for more information if necessary.

To post a message you must log in.