-
Notifications
You must be signed in to change notification settings - Fork 111
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
hy2Foam: Updated turbulent terms and Mach number calculation #141
base: master
Are you sure you want to change the base?
Conversation
Use total heat capacities in Mach calculation.
Read turbulent Schmidt number
Added turbulent mass diffusivity with turbulent Schmidt number.
Added turbulent thermal diffusivity.
Use total heat capacity ratios to calculate Mach number.
Revised reaction rates.
Updated gas properties.
nice job! |
Very useful work!!! |
Hi Shepherd, |
Hi @LDK29 , |
Hi @alexlshepherd , |
Turbulent Terms and Mach Number Calculation
Changes
Writes out the heat capactiy ratio, gamma, as a volScalarField, this is useful for post-processing. Calculation of gamma, and subsequently the Mach number, were modified to use the total (translational, rotational, vibrational, etc.) heat capacities. This revised calculation aligns with the common definition of speed of sound. The current release of hy2Foam uses only the tranlstional-rotational heat capacities to calculate the speed of sound, the reasons for this are unclear despite the provided.
The species conservation equation is modified to now include turbulent terms, making use of the turbulent Schmidt number defined in the transportProperties dictionary:
The viscous energy equation now includes turbulent thermal diffusivity terms. These changes have been only applied to the single temperature equations, so further modifications may need to be made to work with a two temperature model.
Known Issues
The turbulent Schmidt number must be defined in all cases, currently this parameter has no default value, and is still used in the laminar case, however since the turbulent viscosity
mut()
is zero this shouldn't be an issue. An error is occasionally raised when this fork is initially run, the simulation will then proceed as normal and can be largely ignored without issue. It has been observed that a case using "too many" or "too little" processors , when running a case in parallel withadjustableRunTime
enabled, will start with timesteps on the order of 1e-100s. This behaviour has not been observed in hy2Foam (unmodified), and to mitigate it one can start with a fixed time step initially and change back later, or just simply change the number of processors.Changes to Data Files
Reaction rate constants, variable
A
, were off by a few orders of magnitude inhTCReactionsES
. This is likely a mistake due to unit conversion. This change was only made to one file for clarity, and should be updated in the other tutorial folders.Molecular data in
thermoDEM_TRVE
was updated. Comments in that file elaborate on this. This change was only made to one file for clarity, and should be updated in the other tutorial folders as well as the variants:thermoDEM
,thermoDEM_TR
, etc.