Turbulent Channel Flow with Periodic Boundary Conditions
Posted: Sun Apr 28, 2024 7:59 pm
Dear Code_Saturne developers,
I am a novice user of Code_Saturne and currently undertaking LES of turbulent channel flow using the WALE model. In my simulation setup, I have configured periodic boundary conditions at the inlet/outlet and two sidewalls, with volume forces driving the fluid flow.
However, I have encountered two specific challenges that I hope to address with your expertise:
1. Custom Velocity Initialization: I aim to introduce random perturbations to the velocity initialization. To achieve this, I modified the velocity initialization code generated by the GUI, as shown in the attached file "cs_meg_initialization.c". However, upon inspecting the simulation results, I discovered that the velocity initialization was still determined by the values specified in the GUI rather than by my custom code. I seek guidance on how to ensure that user-defined code dictates the velocity initialization process.
2. Volume Forces and Flow Stability: I have implemented volume forces using the code provided in the attached file "cs_user_source_terms.c". Despite my efforts to configure the volume forces, I have been unable to maintain a constant mean flow velocity, thus hindering the attainment of statistically steady turbulent flow fields. I believe that setting a constant pressure gradient could potentially address this issue. I would greatly appreciate any insights or recommendations on how to achieve this.
I am grateful for any assistance or advice you can provide to help me overcome these challenges and improve the accuracy and stability of my LES simulations.
Thank you sincerely for your support and guidance!
Best regards,
Liu Honglei
I am a novice user of Code_Saturne and currently undertaking LES of turbulent channel flow using the WALE model. In my simulation setup, I have configured periodic boundary conditions at the inlet/outlet and two sidewalls, with volume forces driving the fluid flow.
However, I have encountered two specific challenges that I hope to address with your expertise:
1. Custom Velocity Initialization: I aim to introduce random perturbations to the velocity initialization. To achieve this, I modified the velocity initialization code generated by the GUI, as shown in the attached file "cs_meg_initialization.c". However, upon inspecting the simulation results, I discovered that the velocity initialization was still determined by the values specified in the GUI rather than by my custom code. I seek guidance on how to ensure that user-defined code dictates the velocity initialization process.
2. Volume Forces and Flow Stability: I have implemented volume forces using the code provided in the attached file "cs_user_source_terms.c". Despite my efforts to configure the volume forces, I have been unable to maintain a constant mean flow velocity, thus hindering the attainment of statistically steady turbulent flow fields. I believe that setting a constant pressure gradient could potentially address this issue. I would greatly appreciate any insights or recommendations on how to achieve this.
I am grateful for any assistance or advice you can provide to help me overcome these challenges and improve the accuracy and stability of my LES simulations.
Thank you sincerely for your support and guidance!
Best regards,
Liu Honglei