Skip to content

Guidance on setting up directional inflow conditions #1679

Answered by hgopalan
Robson-Passos asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Robson-Passos
Comment options

@hgopalan
Comment options

Answer selected by Robson-Passos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants