FORCING: Normalize the injection power by the volume size.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2024-05-24 18:47:08 -03:00
parent 9ae03a4998
commit 9376e09fdf

View File

@ -173,7 +173,7 @@ module forcing
subroutine initialize_forcing(verbose, status) subroutine initialize_forcing(verbose, status)
use constants , only : pi2 use constants , only : pi2
use coordinates, only : xlen, ylen, zlen use coordinates, only : xlen, ylen, zlen, vol
use helpers , only : print_message use helpers , only : print_message
use parameters , only : get_parameter use parameters , only : get_parameter
use random , only : randuni, randnorz use random , only : randuni, randnorz
@ -732,6 +732,10 @@ module forcing
end select end select
! normalize the injection power by the volume size
!
fmodes(:) = fmodes(:) / sqrt(vol)
! === OrnsteinUhlenbeck driving === ! === OrnsteinUhlenbeck driving ===
! !
if (injection_method == injection_oh) then if (injection_method == injection_oh) then