Re: [Yade-users] [Question #664191]: binary vtu/vtk
Question #664191 on Yade changed: https://answers.launchpad.net/yade/+question/664191 Status: Open => Answered Bruno Chareyre proposed the following answer: Hi, The vtu comes from "writer.Write()" [1] where writer is a vtkXMLUnstructuredGridWriter from Vtk lib. The config parameters currently are VTKRecorder::compressor and VTKRecorder::ascii, based on which: ... if(compress) writer->SetCompressor(compressor); if(ascii) writer->SetDataModeToAscii(); ... If you know other usefull options available in vtk6 they can easily be inserted in the source code with the same method. Cheers Bruno [1] https://github.com/yade/trunk/blob/master/pkg/dem/VTKRecorder.cpp#L926 -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #664191]: binary vtu/vtk
Question #664191 on Yade changed: https://answers.launchpad.net/yade/+question/664191 Description changed to: Good evening, I was rummaging around in the vtu files and saw that the encoding is base64.xI cant see the advantage of base64 and it increases the file size (to my mind) needlesly. Is there a way to use binary vtu or vtk files for the output? Or alternatively, is this way (base64) faster/better/safer? For the record I am using this command VTKRecorder(fileName='./vis/3d-vtk-',recorders=['spheres'],realPeriod=1), Also, as the simulation takes veeery long, I would ideally not want to drag python scripts into this (at least not more than absolutely necessary :-)) Thank you very much for your time Best Regards John -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
[Yade-users] [Question #664191]: binary vtu/vtk
New question #664191 on Yade: https://answers.launchpad.net/yade/+question/664191 Good evening, I was rummaging around in the vtu files and saw that the encoding is base64.xI cant see the advantage of base64 and it increases the file size (to my mind) needlesly. Is there a way to use binary vtu or vtk files for the output? For the record I am using this command VTKRecorder(fileName='./vis/3d-vtk-',recorders=['spheres'],realPeriod=1), Thank you very much for your time Best Regards John -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #664191]: binary vtu/vtk
Question #664191 on Yade changed: https://answers.launchpad.net/yade/+question/664191 Description changed to: Good evening, I was rummaging around in the vtu files and saw that the encoding is base64.xI cant see the advantage of base64 and it increases the file size (to my mind) needlesly. Is there a way to use binary vtu or vtk files for the output? For the record I am using this command VTKRecorder(fileName='./vis/3d-vtk-',recorders=['spheres'],realPeriod=1), Also, as the simulation takes veeery long, I would ideally not want to drag python scripts into this (at least not more than absolutely necessary :-)) Thank you very much for your time Best Regards John -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp