Specification of air as the ONLY working fluid - massfrac #868
-
Hi, My doubt is, whether these two IDs are pre-defined in PeleC? In certain cases I'm seeing that an additional mass fraction is also specified with a value of absolute 0.0, (e.g. amrex::Real massfrac[NUM_SPECIES] = {0.0}; in Spray-TG) . But I don't understand this additional statement. I am unable to find any value for NUM_SPECIES in the prob_parm.H. Would be glad if someone could explain all this and inform what is the correct way to specify air as the only working fluid. I also came across this case involving air - https://amrex-combustion.github.io/PeleC/validation/validation.html#counter-flow-diffusion-flame But I am unable to find a case with a matching name in the RegTests folder. Thanks for reading! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
PelePhysics offers several chemistry mechanisms that include O2. In the GNUmakefile for the Spray-Multijet case, you'll see the line If you want to run a case with air, you can set |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, I am able to correlate and understand whatever you have explained through the suite of testcases. |
Beta Was this translation helpful? Give feedback.
PelePhysics offers several chemistry mechanisms that include O2. In the GNUmakefile for the Spray-Multijet case, you'll see the line
Chemistry_Model := decane_3sp
, which points to this specific mechanism in PelePhysics. In the associatedmechanism.H
file, you'll find three species defined: NC10H22, O2, and N2, each with a pre-defined index ID for the mass fraction. This file also contains the definition forNUM_SPECIES
.If you want to run a case with air, you can set
Chemistry_Model := air
, then initialize the mass fraction in PeleC using the pre-defined index ID's in the associatedmechanism.H
file. Theair
mechanism has two species, O2 and N2. If you only want O2, initializemassfrac[O2…