Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read inflow file on init when restarting #266

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/xcompact3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ subroutine init_xcompact3d()
use tools, only : test_speed_min_max, test_scalar_min_max, &
restart, &
simu_stats, compute_cfldiff, &
init_inflow_outflow
init_inflow_outflow, read_inflow

use param, only : ilesmod, jles,itype
use param, only : irestart
Expand Down Expand Up @@ -230,6 +230,9 @@ subroutine init_xcompact3d()

if ((ioutflow.eq.1).or.(iin.eq.3)) then
call init_inflow_outflow()
if ((irestart==1).and.(iin.eq.3)) then
call read_inflow(ux_inflow,uy_inflow,uz_inflow,itime/ntimesteps)
endif
end if

if ((iibm.eq.2).or.(iibm.eq.3)) then
Expand Down