Skip to content

Commit

Permalink
Made Filtering case variable
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcata committed Dec 21, 2016
1 parent 0fd3bc8 commit 5830a64
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
8 changes: 6 additions & 2 deletions LES_Filtering_main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@
!------------------------------------------------------------------------------!

PROGRAM LES_FILTERING
USE LES_FILTERING_module, &
ONLY : FILTER_OX

IMPLICIT NONE
REAL(KIND=8) :: time_sta, time_end

CALL SETUP
CALL READ_DNS

IF ( FILTER_OX > 0) CALL FILTER
IF ( FILTER_OX > 1) CALL SECOND_FILTER

CALL VORTICAL_STRUCTURE
CALL FILTER
CALL SECOND_FILTER
CALL OUTPUT

END PROGRAM LES_FILTERING
2 changes: 1 addition & 1 deletion LES_Filtering_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
MODULE LES_FILTERING_module

IMPLICIT NONE
INTEGER :: Nx, Ny, Nz, Nx_fil, Nz_fil, VS_CASE
INTEGER :: Nx, Ny, Nz, Nx_fil, Nz_fil, VS_CASE, FILTER_OX
REAL(KIND=8) :: Del,dx,dz,FW,pi,tol
CHARACTER(LEN=65) :: file_name, dir_name, path_name

Expand Down
18 changes: 14 additions & 4 deletions LES_Filtering_setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SUBROUTINE SETUP

USE LES_FILTERING_module, &
ONLY : Nx, Ny, Nz, dx, dz, FW, pi, tol, &
file_name, dir_name, path_name, VS_CASE
file_name, dir_name, path_name, VS_CASE, FILTER_OX

USE LES_FILTERING_module, &
ONLY : X, Y, Z, dy, U, V, W, U_Fil, V_Fil, W_Fil, &
Expand Down Expand Up @@ -54,9 +54,19 @@ SUBROUTINE SETUP
! (a) Q-criteria : 1 !
! (b) Lambda_2 criteria : 2 !
! (c) Lambda_ci criteria : 3 !
!
! !
!------------------------------------------------------------------!
VS_CASE = 1

!------------------------------------------------------------------!
! The number of Filter !
! !
! (a) No-Filter : 0 !
! (b) First Filter : 1 !
! (c) Second Filter : 2 !
! !
!------------------------------------------------------------------!
VS_CASE = 3
FILTER_OX = 1

!------------------------------------------------------------------!
! Constants for LES filtering !
Expand All @@ -65,7 +75,7 @@ SUBROUTINE SETUP
Ny = 257
Nz = 288

FW = 16 ! Filter width constant
FW = 4 ! Filter width constant
tol = 1e-8 ! Tolerance for the number of nodes in x,z directions

!------------------------------------------------------------------!
Expand Down

0 comments on commit 5830a64

Please sign in to comment.