Skip to content

Commit

Permalink
added uni initial velocity field
Browse files Browse the repository at this point in the history
  • Loading branch information
p-costa committed Nov 29, 2021
1 parent 2cdfe59 commit 00a1cae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/INFO_INPUT.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ This line sets the initial velocity field for the block in question.
`initvel` **chooses the initial velocity field**. The following options are available:

* `zer`: zero velocity field
* `uni`: uniform velocity field equal to `uref` ; streamwise direction in `x`
* `cou`: plane Couette flow profile with symmetric wall velocities equal to `uref/2`; streamwise direction in `x`
* `poi`: plane Poiseuille flow profile with mean velocity `uref` ; streamwise direction in `x`
* `log`: logarithmic profile with mean velocity `uref` ; streamwise direction in `x`
Expand Down
2 changes: 2 additions & 0 deletions src/initflow.f90
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ subroutine initflow(inivel,is_wallturb,lo,hi,lo_g,hi_g,l,uref,lref,visc,bforce,
is_mean=.true.
case('zer')
u1d(:) = 0._rp
case('uni')
u1d(:) = uref
case('log')
call log_profile(lo(3),hi(3),zc,l(3),uref,lref,visc,u1d)
is_noise = .true.
Expand Down

0 comments on commit 00a1cae

Please sign in to comment.