Skip to content

Commit

Permalink
Add sponge as source term for compressible NS.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarmarino committed Feb 28, 2024
1 parent 1261df3 commit 02b6464
Show file tree
Hide file tree
Showing 3 changed files with 490 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Solver/src/NavierStokesSolver/SpatialDiscretization.f90
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ subroutine TimeDerivative_ComputeQDot( mesh , particles, t)
use WallFunctionConnectivity
use TripForceClass, only: randomTrip
use ActuatorLine, only: farm
use SpongeClass, only: sponge
implicit none
type(HexMesh) :: mesh
type(Particles_t) :: particles
Expand Down Expand Up @@ -545,6 +546,8 @@ subroutine TimeDerivative_ComputeQDot( mesh , particles, t)
end associate
end do
!$omp end do
! for the sponge, loops are in the internal subroutine as values are precalculated
call sponge % addSource(mesh)
!
! Add Particles source
! ********************
Expand Down Expand Up @@ -1334,4 +1337,4 @@ SUBROUTINE computeBoundaryFlux(f, time, mesh)

end subroutine computeBoundaryFlux

end module SpatialDiscretization
end module SpatialDiscretization
5 changes: 3 additions & 2 deletions Solver/src/libs/sources/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ MOD_FLAG?=-J

LIBOBJS_NS = ./build_ns/ActuatorLine.o \
./build_ns/mkl_dfti.o \
./build_ns/TripForceClass.o
./build_ns/TripForceClass.o \
./build_ns/SpongeClass.o

LIBOBJS_NSSA = ./build_nssa/ActuatorLine.o \
./build_nssa/mkl_dfti.o \
Expand Down Expand Up @@ -157,4 +158,4 @@ clean: FORCE
#############################################
# Dummy procedure to force a rule #
#############################################
FORCE:
FORCE:
Loading

0 comments on commit 02b6464

Please sign in to comment.