Menu

Reaction rate data storage in XML

Anonymous
2019-03-05
2019-03-07
  • Anonymous

    Anonymous - 2019-03-05

    Moved from here:

    Dear Professor,

    It seems that the reaction rate information would be storaged in the my_output.xml, which costs quite a lot disk. It there somewhere to turn it off? By the way, if I keep the my_net.xml all the time, what does the rate information in my_output.xml for?

    Thank you.

     
    • Bradley S. Meyer

      Thanks for your post. The output XML from a network calculation does contain the reaction rate information, which can take a lot of memory. That information is useful for analysis of calculation results, for example, for flow diagrams. There is, at the present time, no automatic way to turn that off. On the other hand, one could replace

       Libnucnet__writeToXmlFile(
         p_my_output,
         zone.getProperty<std::string>( S_OUTPUT_FILE ).c_str()
      );
      

      with

      Libnucnet__writeZoneDataToXmlFile(
          p_my_output,
          zone.getProperty<std::string>( S_OUTPUT_FILE ).c_str()
      );
      

      The output file will only have the zone data. You'll then need to use the network data from the input file to extract information about the species, for example. Thus, you could use XInclude to create the full output libnucnet XML using the input network data and the output zone data.

      Alternatively, you could output to HDF5. There are example codes to do that (examples/hdf5). I will soon release a new version of the codes that will make all this easier. I'll anounce that on the blog. I hope this helps. Best wishes.

       
      • Anonymous

        Anonymous - 2019-03-06

        Thank you very much.

         

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.