Read / Write ASCII DATA IN DualSphysics

edited May 2016 in DualSPHysics_v4.0
Hi all first of all thank you very much for the new release, it is simpy great!!!
Unfortunately, I have a problem to import ASCII data into DualSphysics 4.0, without using gengase !!! This was possible in version 3.0, while reading a particle file and a .inf file. Basically I need a conversion from the .bi4 file format to ASCII and the other way around.

For example to turn the bi.4 file into ASCII format, I tired the following, so far:

- In JPartDataBi4::AddPartInfo - I tried to replace:
Part->SetvUint("Cpart",cpart) // SetvUint seems somehow to control the output ?

with:
string test=fun::UintStr(cpart);

Part->SetvText("cparttttttttttt",test); // SetvText seems somehow to allow to write a sting to the bi.4 file

In the PartXXXX files I found that the variable cpart was written in ASCII or as a string however there were still encrypted values in the file. Moreover, I did not succeed with all the other variables and arrays e.g. posd pos vel press...
I appreciate any hints help answers.
Thank you!!!

Sign In or Register to comment.