USNavalResearchLaboratory / nepc

NRL Evaluated Plasma Chemistry
Creative Commons Zero v1.0 Universal
13 stars 9 forks source link

Interface with bolos to generate reaction rates and transport parameters for a Model #45

Open padamson opened 3 years ago

padamson commented 3 years ago

bolos can be used to obtain reaction rates and transport parameters for a given set of cross sections at a specified reduced electric field and gas temperature.

The proposal is for a new feature that provides reaction rates and transport parameters for a nepc Model at a given reduced electric field and gas temperature:

cnx, cursor = nepc.connect()
n_phelps = nepc.Model(cursor, "phelps")
n_phelps.rates(En=120 Te=300)

I think there are two possible approaches:

  1. create a method in parser to write a Model as an LXCat formatted file. Model.rates writes the LXCat formatted file using this parser, then uses the approach in bolos sample file single.py to compute the rates.
  2. use the approach in single.py, but bypass writing the LXCat formatted file. This will require making an interface in nepc to bolos.solver.BoltzmannSolver..
ndisner commented 3 years ago

Okay I found it! Do you have an approach that you are leaning toward doing?

padamson commented 3 years ago

I kind of like option 1 because it also gives us the ability to generate formatted files for future submission to LXCat, and I can also use it in the verify_csdata step of the CurateLXCat template.