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

IBM + Kdtree DEBUG mode fix #187

Merged
merged 46 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
54b2a4a
update with master
Jan 18, 2023
70dc838
Merge branch 'Stefano_Development'
Jan 18, 2023
65995e0
Merge branch 'Stefano_Development'
Jan 18, 2023
9822b77
Merge branch 'Stefano_Development'
Jan 18, 2023
1a86fd0
Merge branch 'Stefano_Development'
Jan 18, 2023
dc5d453
Merge branch 'Stefano_Development'
Jan 18, 2023
b7ee6e0
Merge branch 'Stefano_Development'
Jan 18, 2023
5167122
Merge branch 'Stefano_Development'
Jan 18, 2023
7e78155
Merge branch 'Stefano_Development'
Jan 18, 2023
eb27e69
Merge branch 'Stefano_Development'
Jan 18, 2023
7a17a4c
Merge branch 'Stefano_Development'
Jan 18, 2023
490934b
Merge branch 'Stefano_Development'
Jan 18, 2023
b10c488
Merge branch 'Stefano_Development'
Jan 18, 2023
9c47492
Merge branch 'Stefano_Development'
Jan 18, 2023
1f15af6
Merge branch 'Stefano_Development'
Jan 18, 2023
c5280cf
Merge branch 'Stefano_Development'
Jan 18, 2023
f00324a
Merge branch 'Stefano_Development'
Jan 18, 2023
a6973e4
Merge branch 'Stefano_Development'
Jan 19, 2023
83ffb3e
Merge branch 'Stefano_Development'
Jan 19, 2023
965122b
Merge branch 'Stefano_Development'
Jan 19, 2023
de20017
Merge branch 'Stefano_Development'
Jan 19, 2023
8d6a072
Merge branch 'master' of https://github.com/loganoz/horses3d
Jan 20, 2023
0fb6893
IBM + vWall
Jan 31, 2023
b874a96
update with master, ibm old
Jan 31, 2023
a2c6480
update tests
Jan 31, 2023
7614427
fixing ibm parts
Jan 31, 2023
00f9670
merge & compilation bugs fixed + IBM refinement tool
Feb 1, 2023
7cc71a1
IBM mesh test case added
Feb 1, 2023
05a4543
stl, control file, IBM folder added for testcase
Feb 1, 2023
2dc60b9
bug in kdtree destr. + test mesh + control file
Feb 1, 2023
4139770
problemfile added to IBM test
Feb 1, 2023
3b55fb0
added test to configure
Feb 1, 2023
82c1d85
Manual updated
Feb 1, 2023
ad4516d
Normalize all the line endings
Feb 1, 2023
5ebaaed
Merge branch 'master' of https://github.com/loganoz/horses3d
Feb 1, 2023
63ad9fa
check normalize lines
Feb 1, 2023
298c8b5
check normalize lines
Feb 1, 2023
1f37f57
IBM + kdtree DEBUG mode fixed + body vel.
Oct 18, 2023
5e71c14
Merge branch 'master' of https://github.com/loganoz/horses3d
Oct 19, 2023
e0e6ead
Update configure
Oct 19, 2023
1aa56f9
Merge branch 'master' into Stefano_Development
Oct 19, 2023
1b641c0
Revert configure to master status
loganoz Oct 19, 2023
036fd8e
Update TimeIntegrator.f90
Oct 19, 2023
5b6db6a
Fixing deallocation bug
Oct 23, 2023
b85e265
Add 'shift' to LinearMultigridClass + IBM test
Oct 23, 2023
cfc786e
Sort algorithm fix
Oct 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Solver/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -460,4 +460,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
2 changes: 1 addition & 1 deletion Solver/src/CahnHilliardSolver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
2 changes: 1 addition & 1 deletion Solver/src/CahnHilliardSolver/SpatialDiscretization.f90
Original file line number Diff line number Diff line change
Expand Up @@ -950,4 +950,4 @@ subroutine GetPoiseuilleFlow_Face(f)

end subroutine GetPoiseuilleFlow_Face

end module SpatialDiscretization
end module SpatialDiscretization
2 changes: 1 addition & 1 deletion Solver/src/CahnHilliardSolver/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,4 @@ subroutine CheckIfTheVersionIsRequested
end if
end do

end subroutine CheckIfTheVersionIsRequested
end subroutine CheckIfTheVersionIsRequested
2 changes: 1 addition & 1 deletion Solver/src/IncompressibleNSSolver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
Original file line number Diff line number Diff line change
Expand Up @@ -950,4 +950,4 @@ end subroutine DensityLimiter
!
!////////////////////////////////////////////////////////////////////////////////////////
!
end module SpatialDiscretization
end module SpatialDiscretization
2 changes: 1 addition & 1 deletion Solver/src/IncompressibleNSSolver/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,4 @@ subroutine CheckIfTheVersionIsRequested
end if
end do

end subroutine CheckIfTheVersionIsRequested
end subroutine CheckIfTheVersionIsRequested
2 changes: 1 addition & 1 deletion Solver/src/MultiphaseSolver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
2 changes: 1 addition & 1 deletion Solver/src/MultiphaseSolver/SpatialDiscretization.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1509,4 +1509,4 @@ SUBROUTINE ComputeTimeDerivativeIsolated( mesh, particles, time, mode)

end subroutine ComputeTimeDerivativeIsolated

end module SpatialDiscretization
end module SpatialDiscretization
2 changes: 1 addition & 1 deletion Solver/src/MultiphaseSolver/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,4 @@ subroutine CheckIfTheVersionIsRequested
end if
end do

end subroutine CheckIfTheVersionIsRequested
end subroutine CheckIfTheVersionIsRequested
2 changes: 1 addition & 1 deletion Solver/src/NavierStokesSolver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
39 changes: 23 additions & 16 deletions Solver/src/NavierStokesSolver/SpatialDiscretization.f90
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,10 @@ subroutine TimeDerivative_ComputeQDot( mesh , particles, t)
! Local variables
! ---------------
!
integer :: eID , i, j, k, ierr, fID, iFace, iEl, iP
real(kind=RP) :: mu_smag, delta, Source(NCONS), TurbulentSource(NCONS)
integer :: eID , i, j, k, ierr, fID, iFace, iEl, iP, STLNum, n
real(kind=RP) :: mu_smag, delta, Source(NCONS), TurbulentSource(NCONS), Q_target(NCONS)
real(kind=RP), allocatable :: Source_HO(:,:,:,:)
integer, allocatable :: i_(:), j_(:), k_(:)
!
! ***********************************************
! Compute the viscosity at the elements and faces
Expand Down Expand Up @@ -606,19 +608,24 @@ subroutine TimeDerivative_ComputeQDot( mesh , particles, t)
! Add IBM source term
! *********************
if( mesh% IBM% active ) then
if( .not. mesh% IBM% semiImplicit .and. t .gt. 0.0_RP ) then
!$omp do schedule(runtime) private(i,j,k,Source)
do eID = 1, mesh % no_of_elements
associate ( e => mesh % elements(eID) )
do k = 0, e % Nxyz(3) ; do j = 0, e % Nxyz(2) ; do i = 0, e % Nxyz(1)
if( e% isInsideBody(i,j,k) ) then
call mesh% IBM% SourceTerm( eID = eID, Q = e % storage % Q(:,i,j,k), Source = Source, wallfunction = .false. )
e % storage % QDot(:,i,j,k) = e % storage % QDot(:,i,j,k) + Source
end if
end do ; end do ; end do
end associate
end do
!$omp end do
if( .not. mesh% IBM% semiImplicit ) then
!$omp do schedule(runtime) private(i,j,k,Source,Q_target)
do eID = 1, mesh % no_of_elements
associate ( e => mesh % elements(eID) )
do k = 0, e % Nxyz(3) ; do j = 0, e % Nxyz(2) ; do i = 0, e % Nxyz(1)
if( e% isInsideBody(i,j,k) ) then
if( mesh% IBM% stl(e% STL(i,j,k))% move ) then
Q_target = mesh% IBM% MaskVelocity( e% storage% Q(:,i,j,k), NCONS, e% STL(i,j,k), e% geom% x(:,i,j,k), t )
call mesh% IBM% SourceTerm( eID = eID, Q = e % storage % Q(:,i,j,k), Q_target = Q_target, Source = Source, wallfunction = .false. )
else
call mesh% IBM% SourceTerm( eID = eID, Q = e % storage % Q(:,i,j,k), Source = Source, wallfunction = .false. )
end if
e % storage % QDot(:,i,j,k) = e % storage % QDot(:,i,j,k) + Source
end if
end do ; end do ; end do
end associate
end do
!$omp end do
if( mesh% IBM% Wallfunction ) then
!$omp single
call mesh% IBM% GetBandRegionStates( mesh% elements )
Expand Down Expand Up @@ -1327,4 +1334,4 @@ SUBROUTINE computeBoundaryFlux(f, time, mesh)

end subroutine computeBoundaryFlux

end module SpatialDiscretization
end module SpatialDiscretization
2 changes: 1 addition & 1 deletion Solver/src/NavierStokesSolver/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,4 @@ subroutine CheckIfTheVersionIsRequested
end if
end do

end subroutine CheckIfTheVersionIsRequested
end subroutine CheckIfTheVersionIsRequested
2 changes: 1 addition & 1 deletion Solver/src/NavierStokesSolverRANS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
2 changes: 1 addition & 1 deletion Solver/src/NavierStokesSolverRANS/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,4 @@ subroutine CheckIfTheVersionIsRequested
end if
end do

end subroutine CheckIfTheVersionIsRequested
end subroutine CheckIfTheVersionIsRequested
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ subroutine ConstructMeshAndSpectralBasis(meshFile, solutionFile, ControlFile, me

end subroutine ConstructMeshAndSpectralBasis

end module ConstructMeshAndSpectralBasis_MOD
end module ConstructMeshAndSpectralBasis_MOD
2 changes: 1 addition & 1 deletion Solver/src/addons/extractgeometry/GeometryClass.f90
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,4 @@ subroutine Cube_Describe(self)

end subroutine Cube_Describe

end module GeometryClass
end module GeometryClass
2 changes: 1 addition & 1 deletion Solver/src/addons/extractgeometry/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
2 changes: 1 addition & 1 deletion Solver/src/addons/extractgeometry/getInputData.f90
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ subroutine getInputData(controlVariables)

end subroutine getInputData

end module getInputData_MOD
end module getInputData_MOD
2 changes: 1 addition & 1 deletion Solver/src/addons/extractgeometry/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ program ExtractGeometry
call MPI_Process % Close


end program ExtractGeometry
end program ExtractGeometry
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/Mesh2Plt.f90
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ subroutine Mesh2Plt(meshFile)

end subroutine Mesh2Plt

end module Mesh2PltModule
end module Mesh2PltModule
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/OutputVariables.f90
Original file line number Diff line number Diff line change
Expand Up @@ -955,4 +955,4 @@ integer function getNoOfCommas(input_line)
end do

end function getNoOfCommas
end module OutputVariables
end module OutputVariables
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,4 @@ subroutine InterpolateFaces(N,spAxi,spAeta,spAzeta,x,face1,face2,face3,face4,fac

end subroutine InterpolateFaces

end module ProlongMeshAndSolution
end module ProlongMeshAndSolution
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/Solution2Plt.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1071,4 +1071,4 @@ character(len=LINE_LENGTH) function getFormat()

end function getFormat

end module Solution2PltModule
end module Solution2PltModule
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/Solution2VtkHdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -517,4 +517,4 @@ function get_connectivities(elemType, Nout) result(conn)

end function get_connectivities

end module Solution2VtkHdfModule
end module Solution2VtkHdfModule
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/Stats2Plt.f90
Original file line number Diff line number Diff line change
Expand Up @@ -544,4 +544,4 @@ character(len=LINE_LENGTH) function getFormat()

end function getFormat

end module Stats2PltModule
end module Stats2PltModule
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/Storage.f90
Original file line number Diff line number Diff line change
Expand Up @@ -566,4 +566,4 @@ Subroutine getNVARS(originalDim, useFlowEq)
end select

End Subroutine getNVARS
end module Storage
end module Storage
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/getTask.f90
Original file line number Diff line number Diff line change
Expand Up @@ -685,4 +685,4 @@ Subroutine getBasis(basisPresent, basisName, fixedOrder, basis)
!
End Subroutine getBasis
!
end module getTask
end module getTask
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ program horses2plt

call MPI_Process % Close

end program horses2plt
end program horses2plt
2 changes: 1 addition & 1 deletion Solver/src/addons/horses2tecplot/sharedSpectralBasis.f90
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ subroutine addNewInterpolationMatrix( Tset_, Nold, spAold, Nnew, xiNew)

end subroutine addNewInterpolationMatrix

end module SharedSpectralBasis
end module SharedSpectralBasis
2 changes: 1 addition & 1 deletion Solver/src/addons/mergeStatistics/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ header: FORCE
@echo

## Dummy target to make sure a rule is executed
FORCE:
FORCE:
2 changes: 1 addition & 1 deletion Solver/src/addons/mergeStatistics/StatsAveragingModule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,4 @@ subroutine Mesh_SaveStatistics(self, name)
call SealSolutionFile(trim(name))

end subroutine Mesh_SaveStatistics
end module StatsAveragingModule
end module StatsAveragingModule
2 changes: 1 addition & 1 deletion Solver/src/addons/mergeStatistics/getTaskModule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ subroutine getTask(num_of_statFiles, fileNames, weights, initial_iteration, file
end do

end subroutine getTask
end module getTaskModule
end module getTaskModule
2 changes: 1 addition & 1 deletion Solver/src/addons/mergeStatistics/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ program MergeStatistics

call MPI_Process % Close

end program MergeStatistics
end program MergeStatistics
2 changes: 1 addition & 1 deletion Solver/src/addons/tools/ConverStats.f90
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ Subroutine ConvertStatsForRestart(controlVariables)
call SealSolutionFile(trim(restartFileName))

End Subroutine ConvertStatsForRestart
End Module ConverStats
End Module ConverStats
2 changes: 1 addition & 1 deletion Solver/src/addons/tools/FWHPostProc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ Subroutine LoadSingleFile(fileName, mesh, fwh, actualIter, hasGradients)
!
End Subroutine LoadSingleFile

End Module FWHPostProc
End Module FWHPostProc
2 changes: 1 addition & 1 deletion Solver/src/addons/tools/FWHPreSurface.f90
Original file line number Diff line number Diff line change
Expand Up @@ -976,4 +976,4 @@ End Function getElementSize
!
!////////////////////////////////////////////////////////////////////////
!
End Module FWHPreSurface
End Module FWHPreSurface
2 changes: 1 addition & 1 deletion Solver/src/addons/tools/FWHTools.f90
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ subroutine DisplaySimulationStatistics(iter,mesh)

end subroutine DisplaySimulationStatistics

End Module FWHTools
End Module FWHTools
Loading