KTH framework for Nek5000 toolboxes; testing version
0.0.1
|
Set of rutine for Selective Frequency Damping. More...
Files | |
file | sfd.f |
Selective frequency damping (SFD) in nekton. | |
Functions | |
subroutine | sfd_register () |
Register SFD module. More... | |
subroutine | sfd_init () |
Initialise SFD module. More... | |
logical function | sfd_is_initialised () |
Check if module was initialised. More... | |
subroutine | sfd_end |
Finalise SFD. More... | |
subroutine | sfd_main |
Main SFD interface. More... | |
subroutine | sfd_forcing (ffx, ffy, ffz, ix, iy, iz, ieg) |
Calcualte SFD forcing. More... | |
subroutine | sfd_solve |
Update filtered velocity field. More... | |
subroutine | sfd_rst_write |
Create checkpoint. More... | |
subroutine | sfd_rst_read |
Read from checkpoint. More... | |
subroutine | sfd_mfo (fname) |
Store SFD restart file. More... | |
subroutine | sfd_mfi (fname) |
Load SFD restart file. More... | |
Set of rutine for Selective Frequency Damping.
The base flow is computed using Selective Frequency Damping (SFD) method [1], which damps the oscillations of the unsteady part of the solution using a temporal low-pass filter by setting the forcing term to where is the solution of the non–linear Navier-Stokes equations, and is a temporally low–pass–filtered state given by the differential exponential filter The filter parameters and (control coefficient and filter width) can be determined based on the DNS simulations of the studied case. During the calculations we control the magnitude of the forcing term in , which is a good indicator of convergence. Description of the implementation and performed tests can be found in [4].
Varaible | Type | Runtime parameter | Description |
---|---|---|---|
sfd_dlt | real | _sfd:FilterWdth | filter width |
sfd_chi | real | _sfd:ControlCff | control coefficient |
sfd_tol | real | _sfd:ResidualTol | tolerance for residual |
sfd_cnv | integer | _sfd:LogInterval | frequency for logging convegence data |
sfd_ifrst | logical | _sfd:SFDReadChkpt | SFD; restat from checkpoint |
subroutine sfd_end |
Finalise SFD.
Definition at line 286 of file sfd.f.
References mntr_log(), mntr_logr(), mntr_tmr_add(), and outpost2().
subroutine sfd_forcing | ( | real | ffx, |
real | ffy, | ||
real | ffz, | ||
integer | ix, | ||
integer | iy, | ||
integer | iz, | ||
integer | ieg | ||
) |
subroutine sfd_init |
Initialise SFD module.
Definition at line 100 of file sfd.f.
References io_file_freeid(), mntr_abort(), mntr_check_abort(), mntr_mod_is_name_reg(), mntr_tmr_add(), mntr_warn(), opcopy(), opsub3(), rprm_rp_get(), rprm_rp_is_name_reg(), rprm_sec_is_name_reg(), rzero(), and sfd_rst_read().
logical function sfd_is_initialised |
subroutine sfd_main |
Main SFD interface.
Definition at line 362 of file sfd.f.
References sfd_rst_write(), and sfd_solve().
subroutine sfd_mfi | ( | character*132 | fname | ) |
Load SFD restart file.
This rouotine is version of mfi adjusted ofr SFD restart.
[in] | fname | file name |
Definition at line 800 of file sfd.f.
References chkptms_map_gll(), io_mbyte_close(), io_mfiv(), mfi_prepare(), mntr_abort(), mntr_check_abort(), mntr_log(), mntr_logi(), and mntr_logr().
subroutine sfd_mfo | ( | character*132 | fname | ) |
Store SFD restart file.
This rouotine is version of mfo_outfld adjusted for SFD restart.
[in] | fname | file name |
Definition at line 714 of file sfd.f.
References io_mbyte_close(), io_mbyte_open(), io_mfov(), mfo_write_hdr(), mntr_check_abort(), mntr_log(), mntr_logi(), and mntr_logr().
subroutine sfd_register |
Register SFD module.
Definition at line 10 of file sfd.f.
References mntr_abort(), mntr_mod_is_name_reg(), mntr_mod_reg(), mntr_tmr_add(), mntr_tmr_is_name_reg(), mntr_tmr_reg(), mntr_warn(), rprm_rp_reg(), rprm_sec_reg(), and rprm_sec_set_act().
subroutine sfd_rst_read |
Read from checkpoint.
Definition at line 646 of file sfd.f.
References io_init(), io_mfo_fname(), mntr_check_abort(), mntr_log(), opcopy(), and sfd_mfi().
subroutine sfd_rst_write |
Create checkpoint.
Definition at line 550 of file sfd.f.
References chkpt_get_fset(), io_init(), io_mfo_fname(), mntr_check_abort(), mntr_get_step_delay(), mntr_log(), mntr_tmr_add(), and sfd_mfo().
subroutine sfd_solve |
Update filtered velocity field.
Sum up contributions to kth order extrapolation scheme and get new filtered velocity field. This subroutine is based on makeabf and makebdf
Definition at line 405 of file sfd.f.
References add2s1(), add3s2(), copy(), mntr_log(), mntr_logr(), mntr_set_conv(), mntr_tmr_add(), opadd2cm(), opcmult(), opcopy(), and opsub3().