Guidance on setting up directional inflow conditions #1679
-
Hello, I would like to run the simulations under neutral atmospheric conditions so that the speedups are linearized ( independent of the Reynolds number). In this case, the speedups would depend only on the orography and surface roughness. Initially, I plan to use the RANS approach. However, I have some doubts about how to proceed (most likely due to my lack of experience in CFD). I’m running a RANS simulation without a precursor. I used amr1D to generate an initial profile by forcing a wind speed of 10 m/s at 10 m height, and I set CoriolisForcing and GeostrophicForcing under ICNS.source_terms. For the boundary conditions, I defined the type as "pressure_outflow". I was able to successfully run the simulation with the geostrophic forcing. However, with this approach, the inflow is not aligned with the desired wind direction. I believe this is due to the Coriolis effect when running amr1D, which causes the wind to be deflected. If I use a precursor I will get the same effect. I considered applying a logarithmic (Dirichlet) profile using PowerLawProfile I’m opening this discussion to see if anyone has ideas on how I can impose a logarithmic inflow profile that is aligned with the desired wind direction (0°, 22.5°, 45°, etc.). Maybe there’s a way to define a pressure gradient to steer the flow? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is an indirect way of doing it. Check the example here: test/test_files/abl_wallrans_neutral/abl_wallrans_neutral.inp You modify the rans_1d.info file to provide a log law. The file requires following inputs Z u v w k So you compute your log u = u* / kappa * log(z/z0) cos(dir) v= u* / kappa * log(z/z0) sin(dir) w= 0 k = u* ^2 / 0.556^2 ( this expression is to be consistent with RANS model) And use python or matlab to write |
Beta Was this translation helpful? Give feedback.
There is an indirect way of doing it. Check the example here: test/test_files/abl_wallrans_neutral/abl_wallrans_neutral.inp
You modify the rans_1d.info file to provide a log law. The file requires following inputs
Z u v w k
...
So you compute your log
Law as
u = u* / kappa * log(z/z0) cos(dir)
v= u* / kappa * log(z/z0) sin(dir)
w= 0
k = u* ^2 / 0.556^2 ( this expression is to be consistent with RANS model)
And use python or matlab to write
The input file. Also when using log law you need to turn off geostrophic and coriolis forcing as they are inconsistent with log law profile which is valid only in surface layer.