pyro-kinetics / pyrokinetics

Python library to run and analyse gyrokinetics simulations
https://pyrokinetics.readthedocs.io/en/latest/#
GNU Lesser General Public License v3.0
25 stars 6 forks source link

Enhancements/add gk output data #390

Closed bpatel2107 closed 1 month ago

bpatel2107 commented 1 month ago

Lets you programmatically add data to the GKOutput object if you it is not a default output. All that is needed is the raw data, units and dimensions of the data. This does require the output to use existing dimensions but it would be easy to add new dimensions though I can't see any situation where we would need that.

For an example I add a Reynolds and Maxwell stress from GENE

bpatel2107 commented 1 month ago

@dake0795 can you check if this works for your stress calculation in GENE?