Replies: 3 comments 10 replies
-
Hi Dan, Working directly with the SDF binary is complicated, although I believe some FORTRAN and C++ code is present in the SDF directory. I also struggle to get Visit working on Linux, and I find the least-effort approach is to use the MATLAB or Python functions for extracting and manipulating SDF data. These are also present in the SDF directory (Python is labelled as utils). My personal preference is to use the MATLAB's GetDataSDF("0000.sdf") function to get the data contained in the 0000.sdf file. Alternatively, Python users may wish to follow the instructions documented here: We are about to start a large rewrite of EPOCH to scale with next generation super-computers, and the I/O will likely be updated here. We appreciate the suggestion of using STREAM - this is worth looking into. I wouldn't expect any big changes any time soon though, the new EPOCH project is a 3 year grant. Cheers, |
Beta Was this translation helpful? Give feedback.
-
I just contacted the developer's forums of Visit and Paraview. They quickly responded that they could be interested to work on developing the ability of their software to read SDF file format. I am surprised why no one contacted them before. They ask where to find the description of SDF ? What one can read in EPOCH description is the following "A detailed specification of this format is available elsewhere, although this is only of interest to developers wishing to write new libraries". Is Self Describing Format the same as SDFormat which also exists in the world wild net confusing things even more? |
Beta Was this translation helpful? Give feedback.
-
The maintainer of Visit Kathleen Biagas asking : "Since EPOCH has a VisIt plugin for SDF already, I wonder if the EPOCH folks would be amenable to contributing their plugin to VisIt's repo? I don't know if there would be licensing issues or whatnot" Probably EPOCH developers should be very interested to give the users the ability to visualize the output of the code straight off the run and not through the several more intermediate stages of different software you need to learn to install and use and which may or may not work anyway. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Visit or Paraview can load hell amount (~200) of different file formats but not the EPOCH's SDF one. Hence EPOCH provides additional driver for specific version of Visit. Unfortunately there is no version of Visit for my version of Linux, compilation of Visit from GetHub took hours and failed, Visit folks are helpless with this version of Linux too for the last two years, and for Windows version of Visit it is probably harder to create the driver because all MAKE files there are different. But may be anyone has succeeded to make SDF driver for Visit in Windows?
Alternatively can anyone help to get the particles and fields saved to harddrive directly from EPOCH avoiding these FOUR (!!!) intermediate "black box" stages:
saving to SDF --> SDF DRIVER converts SDF file for Visit --> Visit loads data --> Visit dumps the data in ASCII/binary format.
Not even mentioning that we do not need these Visit, Paraview or any other graphics software nice pics, we just need the raw data.
I have made the beta version for this saving but it messes output somewhere. It works only if no MPI parallelization is used or essentially only if one core is used. When say two cores are used the final data does not represent the sum of two parts to make the whole entire simulation box, the pieces of data get distorted somewhere like in a wrong assembled puzzle. Does each core work not with real x,y,z coordinates but with the additionally shifted ones ?
It is completely understandable that the decision to use SDF, HDF etc file formats were taken years ago when there was no compatible way to save and load binary data and saving just the text ASCII is slow and inefficient. But with latest additions to Standard ACCESS = "STREAM" all binary formats now became compatible along all existing compilers and OSes. Plus this way to read/write is 10-100x faster, infinitely simpler and files are ~2x smaller than with SDF
Beta Was this translation helpful? Give feedback.
All reactions