Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reformatter script for data from NIST #10

Open
RyanWollaeger opened this issue Nov 25, 2024 · 0 comments
Open

Add reformatter script for data from NIST #10

RyanWollaeger opened this issue Nov 25, 2024 · 0 comments

Comments

@RyanWollaeger
Copy link
Collaborator

The NIST tabular opacity data is nearly in the SuperNu 4.x parsed format, but not quite.
In particular, the following has to be done to use the NIST data in SuperNu:

  • Select "all": the columns are then identical in content to the assumed columns of the parser.
  • Choose the desired temperature and frequency range.
  • Remove dividing lines between columns, and replace header (including column headers) with e.g.,
#start        4.175E+01   1.000E-02   1.253E-04   3.000E-06
# e,abs+st,tot+st,bb,bf,ff,scat

where the 2nd number is the temperature (the other numbers are ignored).

  • Ensure the number of frequency points matches the assumed number in tbxsmod.f (currently 14900).
  • For a particular density, concatenate the files over the range of temperatures, and ensure that the number of temperatures matches tbxsmod.f (currently 27).
  • Ensure the number of tables per density matches the number of densities assumed in tbxsmod.f (currently 17).
  • Name the files, e.g. “op_nd_1Em20gcc.table”, for “opacity, Nd, density=1e-20 g/cc”.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant