I realized that dumping data from binary file is a viable solution for my case although it’s not easy to do in the first place. Dumping data from ASCII file was not good due to some reasons:
- A simulation generates some hundreds data files (depends on number of steps). Each data files is then compared with a reference result from simulation with a reliable solver.
- ASCII data file grows bigger when the number of d.o.f is large. For instance, one of my problem with 5000 nodes generates 14MB for one ASCII data file. Performs numerous simulation of large scale may consume tremendous memory.
I want an automatic mechanism to compare the results since there were so many to do it manually. As you mentioned, compare text files using diff tool does not make sense at all.
Off course an ASCII is bigger that its equivalent binary compressed file, and probably a little slower to be read
- About handling hundreds of files: you can write all time steps in a single file.
How do you define that two results are “equivalent”? It is your own decision to consider similar results as equal.
Numerical values and the kind of results written by two different programs will be different, (e.g. how to automatically map results with different names)
You must write your own program to compare files as you want, the ASCII format allows you to read it easily than a complicated binary compressed format.
you can also run GiD in batch mode to read results, and write some representative data to be compared (e.g. an image of a contour fill, a graph of some point, some integral value, etc)
----- Original Message -----
From: Hoang Giang Bui
To: gidlist at listas.cimne.upc.edu
Sent: Thursday, November 15, 2012 5:37 PM
Subject: Re: [GiDlist] compare results of gid post files
On 11/07/12 17:22, Enrique Escolano wrote:
1- If do you feel more comfortable, you can convert the binary files to ASCII from GiD (Files-Export-Post information-ASCII files…),
and then compare the text files if they are very similar with some diff tool (e.g. tkdiff, Ramdebugger of GiD include this tool)
2- Probably both results will be very differents, then a text comparison will be unusable.
You can read both results in GiD (must have different result name, to not overwrite), and create a new derivated result sustracting them.
Window-Create result… select the first result, the operator - , the second result, provide the new name and press Apply,
then you will be able to graphically see how different the results are.
Enrique Escolano
----- Original Message -----
From: Hoang Giang Bui
To: gidlist at listas.cimne.upc.edu
Sent: Wednesday, November 07, 2012 4:11 PM
Subject: [GiDlist] compare results of gid post files
Hi
I have GiD results in binary format from two solvers. To validate the solver, I want to check if the two solvers produced the same results. Therefore I want to dump the results in each file and compare it node by node. Can you give me some hints to do that in GiD?
BR
Giang Bui
\
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
\
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
Hi
I realized that dumping data from binary file is a viable solution for my case although it’s not easy to do in the first place. Dumping data from ASCII file was not good due to some reasons:
- A simulation generates some hundreds data files (depends on number of steps). Each data files is then compared with a reference result from simulation with a reliable solver.
- ASCII data file grows bigger when the number of d.o.f is large. For instance, one of my problem with 5000 nodes generates 14MB for one ASCII data file. Performs numerous simulation of large scale may consume tremendous memory.
I want an automatic mechanism to compare the results since there were so many to do it manually. As you mentioned, compare text files using diff tool does not make sense at all.
BR
Giang Bui
\
\
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20121115/f1c43b3a/attachment.htm