Question about turbinflow in pelec #656
-
In PeleC, I am facing difficulties while attempting to generate a turbulent field using the turbinflow tool. My initial intention was to simulate the JetFlame case, but it prompted me to provide an additional file. For this, I used the same file that was created for the PeleLMeX/Exec/RegTests/TurbInflow/TurbFileHIT/ case. However, I am uncertain if this is the correct approach. Interestingly, when I conducted a simulation in PeleLMeX, I could observe the presence of turbulence. However, in PeleC, the turbulence does not seem to manifest. I suspect that the turbulence file generated in PeleLMeX might not be suitable for PeleC. To clarify the process and ensure I am using turbinflow correctly in PeleC, I would appreciate some guidance on the proper procedure. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
Could this be due to a units thing? PeleC is cgs units. You can see how we do turb inflow in PeleC here: https://github.com/AMReX-Combustion/PeleC/tree/development/Exec/Production/ChallengeProblem and you will notice some scaling MKS->cgs here: https://github.com/AMReX-Combustion/PeleC/blob/development/Exec/Production/ChallengeProblem/challenge.inp#L149 |
Beta Was this translation helpful? Give feedback.
-
Note that you may need to scale both the spatial coordinate used to interpolate the file data, and the velocity that results. |
Beta Was this translation helpful? Give feedback.
-
the settings I used are as follows: turbinflows = bottom do I need to do a scaling somewhere else ? additionally I would like to know what does this last parameter turbinflow.bottom.turb_nplane refers to? |
Beta Was this translation helpful? Give feedback.
-
nplanes: The data file could be arbitrarily large which would consume an unnecessarily large amount of memory. So, we added the ability to only read in part of the file at a time. The reader/interpolater manages ensuring that the needed planes are in memory. If not, it dumps and reads a set that does. |
Beta Was this translation helpful? Give feedback.
-
We do need to improve the documentation on this. I opened an issue in PelePhysics (where the turbinflow capability is implemented) to add some documentation on this capability: AMReX-Combustion/PelePhysics#401 |
Beta Was this translation helpful? Give feedback.
-
I have been trying to simulate the jet flame and challenge problem cases, however in neither case can I get turbulence. I am thinking that the problem may be the HDR and DAT files I got from pelelmex/turbinflow, any advice on how I can change those files and adjust them for the simulated cases? |
Beta Was this translation helpful? Give feedback.
-
thank you very much for your help, I was able to replicate the cases. |
Beta Was this translation helpful? Give feedback.
I looked into the JetFlame case a bit and was able to get it to push in turbulence based on the files generated from turbinflow in PeleLMeX. That generates turbulence in a box of size 2pi2pi2pi and a u_rms of 1.0 (both arbitrary units). The HDR file starts like:
The jet diameter in the JetFlame case is
prob.D = 1.7e-2
(cm). So to get the turbulence patch to be the same size as the jet, we need to rescale by 2pi/1.7e-2 = 369.5 (setturbinflow.bottom_jet.turb_scale_loc = 369.5
). The jet velocity is set through bothprob.v_in = 2800
andturbinflow.bottom_jet.turb_conv_vel = 2800.0
in units of (cm/s). To get velocity…