Menu

Formatting input zone/parameter xml files for multi-zone calculations?

2018-11-28
2018-11-29
  • Leonard Nielsen

    Leonard Nielsen - 2018-11-28

    Dear Professor Meyer,

    This may be me failing at searching, but I can't find any documentation/blog posts on how to format the input xml files for multi-zone calculations, or an explanation of the precise differences between the exp_multi_mass, multi_mass and multi_zone_network codes. I had an idea for using multiple zones to model different layers (with different thermodynamic trajectories and perhaps initial abundances) in a toy model of a particular expanding stellar environment, which if I understand correctly is the kind of thing you would use multiple zones for.

    Specific questions:

    How do you format input zone xml file and input parameter xml files, respectively? Are there any example files?

    Thank you in advance!

    Regards,

    Leonard N

     
    • Bradley S. Meyer

      Thanks for your post. The philosophy behind the multi-zone codes (examples/multi_zone) is that the zones are linked during the calculation, usually by mixing of material between the zones. This means that the governing time step for all zones is controlled by the shortest timescale for all the zones. If that is what you have in mind, then a version of the multi-zone codes would be appropriate. The only problem is that I don't really have a dynamical version of that code right now.

      If your model is such that the zones can be considered independent, then it's better to run a kind of serial calculation. For example, if you are considering an expanding sphere that is radially zoned, and if you can consider the thermodynamic trajectory of each zone independently of the other zones, it's better to run them separately (or as separate calculations but in parallel). Some time ago, I played with examples/network/run_multiple_zone_omp.cpp to run calculations simultaneously, but I haven't looked at that in a while. Nevertheless, you might look there.

      As I promised elsewhere, I am developing some new versions of the network codes that are more flexible. It would be nice to have flexible versions of both kinds of multi-zone codes available. I don't think they'll be too hard to write, but it may be several weeks. Best wishes.

       
      • Leonard Nielsen

        Leonard Nielsen - 2018-11-29

        Aha, thank you!

        If your model is such that the zones can be considered independent, then it's better to run a kind of serial calculation. For example, if you are considering an expanding sphere that is radially zoned, and if you can consider the thermodynamic trajectory of each zone independently of the other zones, it's better to run them separately (or as separate calculations but in parallel).

        Yes, this is roughly what I have in mind (for now, at least, though mixing could definitely be interesting to play around with at some point). OK, then the best approach is probably just serial runs, like you suggest.

        Thank you!

         
        • Bradley S. Meyer

          I'll keep these thoughts in mind as we further develop our codes. Best wishes.

           

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.