AMReX-Combustion / PeleLMeX

An adaptive mesh hydrodynamics simulation code for low Mach number reacting flows without level sub-cycling.
https://amrex-combustion.github.io/PeleLMeX/
BSD 3-Clause "New" or "Revised" License
28 stars 40 forks source link

Add the diffusion coefficients of each species in the PLT directories. #310

Closed bazharz closed 10 months ago

bazharz commented 10 months ago

I want to store the diffusion coefficients of each species like the mass fractions and the production rate for each species because I need them in the PeleAnalysis part to perform calculations.

I tried to see how I_R and Y(species) are stored, but I can't find the arrays where the diffusion coefficients are stored.

Could you help me add the diffusion coefficients in the output?

Thank you in advance.

baperry2 commented 10 months ago

As described in the documentation you can add any available derived variable to your plot files, but there is a slight error in the documentation on derived variables as the name for the diffusion coefficients is diffcoeff not diffcoeffs.

Adding this to your input file should work for you: amr.derive_plot_vars = diffcoeff

bazharz commented 10 months ago

Thank you for the clarification. I've updated the input file with "amr.derive_plot_vars = diffcoeff" as suggested, and it works perfectly.