Enable overset & Patched up more tutorials for CMake build
This commit is contained in:
parent
21873a1cb7
commit
7b6ce1ff7c
69 changed files with 774 additions and 40 deletions
|
@ -50,3 +50,5 @@ add_subdirectory(basic)
|
||||||
add_subdirectory(immersedBoundary)
|
add_subdirectory(immersedBoundary)
|
||||||
add_subdirectory(surfaceTracking)
|
add_subdirectory(surfaceTracking)
|
||||||
add_subdirectory(viscoelastic)
|
add_subdirectory(viscoelastic)
|
||||||
|
add_subdirectory(overset)
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(XiFoam
|
add_foam_executable(XiFoam
|
||||||
DEPENDS engine compressibleTurbulenceModel laminarFlameSpeedModels
|
DEPENDS engine compressibleRASModels compressibleLESModels laminarFlameSpeedModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,7 +41,7 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(coldEngineFoam
|
add_foam_executable(coldEngineFoam
|
||||||
DEPENDS engine compressibleTurbulenceModel
|
DEPENDS engine compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(engineFoam
|
add_foam_executable(engineFoam
|
||||||
DEPENDS engine compressibleTurbulenceModel laminarFlameSpeedModels
|
DEPENDS engine compressibleRASModels compressibleLESModels laminarFlameSpeedModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(fireFoam
|
add_foam_executable(fireFoam
|
||||||
DEPENDS compressibleTurbulenceModel radiation combustionModels
|
DEPENDS radiation combustionModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(reactingFoam
|
add_foam_executable(reactingFoam
|
||||||
DEPENDS compressibleTurbulenceModel chemistryModel
|
DEPENDS compressibleRASModels compressibleLESModels chemistryModel
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(rhoReactingFoam
|
add_foam_executable(rhoReactingFoam
|
||||||
DEPENDS chemistryModel compressibleTurbulenceModel
|
DEPENDS chemistryModel compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(realFluidPisoFoam
|
add_foam_executable(realFluidPisoFoam
|
||||||
DEPENDS compressibleTurbulenceModel
|
DEPENDS compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -37,6 +37,6 @@ list(APPEND SOURCES
|
||||||
rho/fixedRhoFvPatchScalarField.C
|
rho/fixedRhoFvPatchScalarField.C
|
||||||
)
|
)
|
||||||
|
|
||||||
add_foam_library(rhoCentralFoam SHARED ${SOURCES})
|
add_foam_library(rhoCentralFoamLib SHARED ${SOURCES})
|
||||||
|
|
||||||
target_link_libraries(rhoCentralFoam finiteVolume)
|
target_link_libraries(rhoCentralFoamLib PUBLIC finiteVolume)
|
||||||
|
|
|
@ -31,3 +31,18 @@
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
add_subdirectory(BCs)
|
add_subdirectory(BCs)
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
rhoCentralFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(rhoCentralFoam
|
||||||
|
DEPENDS rhoCentralFoamLib compressibleRASModels compressibleLESModels
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(rhoPimpleFoam
|
add_foam_executable(rhoPimpleFoam
|
||||||
DEPENDS compressibleTurbulenceModel
|
DEPENDS compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(rhoPisoFoam
|
add_foam_executable(rhoPisoFoam
|
||||||
DEPENDS compressibleTurbulenceModel
|
DEPENDS compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,7 +41,7 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(rhoPorousMRFPimpleFoam
|
add_foam_executable(rhoPorousMRFPimpleFoam
|
||||||
DEPENDS compressibleTurbulenceModel
|
DEPENDS compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,6 @@ list(APPEND SOURCES
|
||||||
p/inviscidWallPFvPatchScalarField.C
|
p/inviscidWallPFvPatchScalarField.C
|
||||||
)
|
)
|
||||||
|
|
||||||
add_foam_library(rhopSonicFoam SHARED ${SOURCES})
|
add_foam_library(rhopSonicFoamLib SHARED ${SOURCES})
|
||||||
|
|
||||||
target_link_libraries(rhopSonicFoam PUBLIC finiteVolume)
|
target_link_libraries(rhopSonicFoamLib PUBLIC finiteVolume)
|
||||||
|
|
|
@ -31,3 +31,18 @@
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
add_subdirectory(BCs)
|
add_subdirectory(BCs)
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
rhopSonicFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(rhopSonicFoam
|
||||||
|
DEPENDS rhopSonicFoamLib compressibleRASModels compressibleLESModels
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(sonicDyMFoam
|
add_foam_executable(sonicDyMFoam
|
||||||
DEPENDS compressibleTurbulenceModel dynamicFvMesh
|
DEPENDS dynamicFvMesh compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(sonicFoam
|
add_foam_executable(sonicFoam
|
||||||
DEPENDS compressibleTurbulenceModel
|
DEPENDS compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(sonicTurbDyMEngineFoam
|
add_foam_executable(sonicTurbDyMEngineFoam
|
||||||
DEPENDS compressibleTurbulenceModel engine
|
DEPENDS engine compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(buoyantPisoFoam
|
add_foam_executable(buoyantPisoFoam
|
||||||
DEPENDS compressibleTurbulenceModel
|
DEPENDS compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -46,7 +46,7 @@ if(NOT FOAM_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_executable(chtMultiRegionFoam
|
add_foam_executable(chtMultiRegionFoam
|
||||||
DEPENDS compressibleTurbulenceModel
|
DEPENDS compressibleRASModels compressibleLESModels
|
||||||
SOURCES ${SOURCES}
|
SOURCES ${SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -33,3 +33,22 @@
|
||||||
add_subdirectory(interfacialModels)
|
add_subdirectory(interfacialModels)
|
||||||
add_subdirectory(phaseModel)
|
add_subdirectory(phaseModel)
|
||||||
add_subdirectory(kineticTheoryModels)
|
add_subdirectory(kineticTheoryModels)
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
twoPhaseEulerFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(twoPhaseEulerFoam
|
||||||
|
DEPENDS kineticTheoryModel
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(twoPhaseEulerFoam PUBLIC
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/turbulenceModel>
|
||||||
|
)
|
||||||
|
|
|
@ -44,4 +44,4 @@ list(APPEND SOURCES
|
||||||
|
|
||||||
add_foam_library(EulerianInterfacialModels SHARED ${SOURCES})
|
add_foam_library(EulerianInterfacialModels SHARED ${SOURCES})
|
||||||
|
|
||||||
target_link_libraries(EulerianInterfacialModels PUBLIC phaseModel)
|
target_link_libraries(EulerianInterfacialModels PUBLIC finiteVolume phaseModel)
|
||||||
|
|
|
@ -61,7 +61,7 @@ list(APPEND SOURCES
|
||||||
|
|
||||||
add_foam_library(kineticTheoryModel SHARED ${SOURCES})
|
add_foam_library(kineticTheoryModel SHARED ${SOURCES})
|
||||||
|
|
||||||
target_link_libraries(kineticTheoryModel PUBLIC phaseModel)
|
target_link_libraries(kineticTheoryModel PUBLIC EulerianInterfacialModels)
|
||||||
|
|
||||||
target_include_directories(kineticTheoryModel PUBLIC
|
target_include_directories(kineticTheoryModel PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../interfacialModels/dragModels/dragModel>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../interfacialModels/dragModels/dragModel>
|
||||||
|
|
42
applications/solvers/overset/CMakeLists.txt
Normal file
42
applications/solvers/overset/CMakeLists.txt
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
add_subdirectory(icoDyMOversetFoam)
|
||||||
|
add_subdirectory(icoOversetFoam)
|
||||||
|
add_subdirectory(interOversetFoam)
|
||||||
|
add_subdirectory(laplacianOversetFoam)
|
||||||
|
add_subdirectory(pimpleDyMOversetFoam)
|
||||||
|
add_subdirectory(potentialDyMOversetFoam)
|
||||||
|
add_subdirectory(potentialOversetFoam)
|
||||||
|
add_subdirectory(scalarTransportOversetFoam)
|
||||||
|
add_subdirectory(simpleMRFOversetFoam)
|
||||||
|
add_subdirectory(simpleOversetFoam)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
icoDyMOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(icoDyMOversetFoam
|
||||||
|
DEPENDS oversetDynamicFvMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
46
applications/solvers/overset/icoOversetFoam/CMakeLists.txt
Normal file
46
applications/solvers/overset/icoOversetFoam/CMakeLists.txt
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
icoOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(icoOversetFoam
|
||||||
|
DEPENDS oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
46
applications/solvers/overset/interOversetFoam/CMakeLists.txt
Normal file
46
applications/solvers/overset/interOversetFoam/CMakeLists.txt
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
interOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(interOversetFoam
|
||||||
|
DEPENDS interfaceProperties incompressibleRASModels incompressibleLESModels oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
laplacianOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(laplacianOversetFoam
|
||||||
|
DEPENDS oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
pimpleDyMOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(pimpleDyMOversetFoam
|
||||||
|
DEPENDS incompressibleRASModels incompressibleLESModels oversetDynamicFvMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
potentialDyMOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(potentialDyMOversetFoam
|
||||||
|
DEPENDS oversetDynamicFvMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
potentialOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(potentialOversetFoam
|
||||||
|
DEPENDS oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
scalarTransportOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(scalarTransportOversetFoam
|
||||||
|
DEPENDS oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
simpleMRFOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(simpleMRFOversetFoam
|
||||||
|
DEPENDS incompressibleRASModels oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
simpleOversetFoam.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(simpleOversetFoam
|
||||||
|
DEPENDS incompressibleRASModels oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -41,3 +41,4 @@ add_subdirectory(postProcessing)
|
||||||
add_subdirectory(parallelProcessing)
|
add_subdirectory(parallelProcessing)
|
||||||
add_subdirectory(errorEstimation)
|
add_subdirectory(errorEstimation)
|
||||||
add_subdirectory(mesh)
|
add_subdirectory(mesh)
|
||||||
|
add_subdirectory(overset)
|
||||||
|
|
34
applications/utilities/overset/CMakeLists.txt
Normal file
34
applications/utilities/overset/CMakeLists.txt
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
add_subdirectory(calcOverset)
|
||||||
|
add_subdirectory(oversetRegionIndex)
|
46
applications/utilities/overset/calcOverset/CMakeLists.txt
Normal file
46
applications/utilities/overset/calcOverset/CMakeLists.txt
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
calcOverset.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(calcOverset
|
||||||
|
DEPENDS oversetMesh
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# ======== |
|
||||||
|
# \ / F ield | foam-extend: Open Source CFD
|
||||||
|
# \ / O peration | Version: 4.1
|
||||||
|
# \ / A nd | Web: http://www.foam-extend.org
|
||||||
|
# \/ M anipulation | For copyright notice see file Copyright
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# License
|
||||||
|
# This file is part of foam-extend.
|
||||||
|
#
|
||||||
|
# foam-extend is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or {at your
|
||||||
|
# option} any later version.
|
||||||
|
#
|
||||||
|
# foam-extend is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# Description
|
||||||
|
# CMakeLists.txt file for libraries and applications
|
||||||
|
#
|
||||||
|
# Author
|
||||||
|
# Henrik Rusche, Wikki GmbH, 2017. All rights reserved
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
list(APPEND SOURCES
|
||||||
|
oversetRegionIndex.C
|
||||||
|
)
|
||||||
|
|
||||||
|
# Set minimal environment for external compilation
|
||||||
|
if(NOT FOAM_FOUND)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
find_package(FOAM REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_foam_executable(oversetRegionIndex
|
||||||
|
DEPENDS finiteVolume
|
||||||
|
SOURCES ${SOURCES}
|
||||||
|
)
|
|
@ -128,17 +128,21 @@ compileApplication ()
|
||||||
wmake $1
|
wmake $1
|
||||||
fi
|
fi
|
||||||
rm -rf $lockFilename
|
rm -rf $lockFilename
|
||||||
|
echo DONE
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
compileLibrary ()
|
compileLibrary ()
|
||||||
{
|
{
|
||||||
echo "Compiling $1 library"
|
echo "Compiling $1 library"
|
||||||
|
echo $WM_USE_CMAKE
|
||||||
if [ "$WM_USE_CMAKE" = "1" ];
|
if [ "$WM_USE_CMAKE" = "1" ];
|
||||||
(cd $1; cmake .; make)
|
|
||||||
then
|
then
|
||||||
|
(cd $1; cmake .; make)
|
||||||
|
else
|
||||||
wmake libso $1
|
wmake libso $1
|
||||||
fi
|
fi
|
||||||
|
echo DONE
|
||||||
}
|
}
|
||||||
|
|
||||||
cloneCase ()
|
cloneCase ()
|
||||||
|
|
|
@ -36,6 +36,11 @@ add_custom_target(ImportMessage
|
||||||
)
|
)
|
||||||
|
|
||||||
function(add_foam_library lib)
|
function(add_foam_library lib)
|
||||||
|
set(options USERSPACE)
|
||||||
|
set(oneValueArgs "")
|
||||||
|
set(multiValueArgs "")
|
||||||
|
cmake_parse_arguments(AFL "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
|
||||||
|
|
||||||
# Create target for lnInclude and use it
|
# Create target for lnInclude and use it
|
||||||
include_directories(lnInclude)
|
include_directories(lnInclude)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
|
@ -47,8 +52,13 @@ function(add_foam_library lib)
|
||||||
)
|
)
|
||||||
add_custom_target(${lib}_lnInclude DEPENDS lnInclude/uptodate)
|
add_custom_target(${lib}_lnInclude DEPENDS lnInclude/uptodate)
|
||||||
|
|
||||||
|
if(${AFL_USERSPACE})
|
||||||
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $ENV{FOAM_USER_LIBBIN})
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $ENV{FOAM_USER_APPBIN})
|
||||||
|
endif()
|
||||||
|
|
||||||
# Add the library to the targets and set include paths
|
# Add the library to the targets and set include paths
|
||||||
add_library(${lib} ${ARGN})
|
add_library(${lib} ${AFL_UNPARSED_ARGUMENTS})
|
||||||
add_dependencies(${lib} ${lib}_lnInclude)
|
add_dependencies(${lib} ${lib}_lnInclude)
|
||||||
target_include_directories(${lib} PUBLIC
|
target_include_directories(${lib} PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lnInclude>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lnInclude>
|
||||||
|
@ -88,12 +98,14 @@ function(add_foam_executable exe)
|
||||||
cmake_parse_arguments(AFE "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
|
cmake_parse_arguments(AFE "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
|
||||||
|
|
||||||
if(${AFE_USERSPACE})
|
if(${AFE_USERSPACE})
|
||||||
message(STATUS Got here)
|
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $ENV{FOAM_USER_LIBBIN})
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $ENV{FOAM_USER_LIBBIN})
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $ENV{FOAM_USER_APPBIN})
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $ENV{FOAM_USER_APPBIN})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(${exe} ${AFE_SOURCES})
|
add_executable(${exe} ${AFE_SOURCES})
|
||||||
|
target_link_libraries(${exe}
|
||||||
|
"-Xlinker --add-needed -Xlinker --no-as-needed"
|
||||||
|
)
|
||||||
target_link_libraries(${exe} ${AFE_DEPENDS})
|
target_link_libraries(${exe} ${AFE_DEPENDS})
|
||||||
install (TARGETS ${exe} DESTINATION bin)
|
install (TARGETS ${exe} DESTINATION bin)
|
||||||
|
|
||||||
|
|
|
@ -93,14 +93,14 @@ endif()
|
||||||
|
|
||||||
find_package(Metis REQUIRED)
|
find_package(Metis REQUIRED)
|
||||||
if(METIS_FOUND)
|
if(METIS_FOUND)
|
||||||
add_library(metis SHARED IMPORTED)
|
add_library(metis STATIC IMPORTED)
|
||||||
set_property(TARGET metis PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${METIS_INCLUDE_DIRS})
|
set_property(TARGET metis PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${METIS_INCLUDE_DIRS})
|
||||||
set_property(TARGET metis PROPERTY IMPORTED_LOCATION ${METIS_LIBRARY})
|
set_property(TARGET metis PROPERTY IMPORTED_LOCATION ${METIS_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(ParMetis REQUIRED)
|
find_package(ParMetis REQUIRED)
|
||||||
if(PARMETIS_FOUND)
|
if(PARMETIS_FOUND)
|
||||||
add_library(parmetis SHARED IMPORTED)
|
add_library(parmetis STATIC IMPORTED)
|
||||||
set_property(TARGET parmetis PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${PARMETIS_INCLUDE_DIRS})
|
set_property(TARGET parmetis PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${PARMETIS_INCLUDE_DIRS})
|
||||||
set_property(TARGET parmetis PROPERTY IMPORTED_LOCATION ${PARMETIS_LIBRARY})
|
set_property(TARGET parmetis PROPERTY IMPORTED_LOCATION ${PARMETIS_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
@ -121,10 +121,6 @@ if(CCMIO_FOUND)
|
||||||
set_property(TARGET ccmio PROPERTY INTERFACE_LINK_LIBRARIES ${CCMIO_LIBRARIES})
|
set_property(TARGET ccmio PROPERTY INTERFACE_LINK_LIBRARIES ${CCMIO_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#SET(CMAKE_INSTALL_RPATH FALSE)
|
|
||||||
#SET(CMAKE_SKIP_BUILD_RPATH TRUE)
|
|
||||||
#SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
|
||||||
#SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Recurse into the source
|
# Recurse into the source
|
||||||
|
@ -138,7 +134,6 @@ file(WRITE ${CMAKE_BINARY_DIR}/cmake/FOAMTargets.cmake "#" )
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(applications)
|
add_subdirectory(applications)
|
||||||
#add_subdirectory(tutorials)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -182,6 +177,11 @@ if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||||
target_compile_options(OSspecific PUBLIC -fdefault-inline -ggdb3)
|
target_compile_options(OSspecific PUBLIC -fdefault-inline -ggdb3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#target_link_libraries(
|
||||||
|
# OSspecific INTERFACE
|
||||||
|
# "-Xlinker --add-needed -Xlinker --no-as-needed"
|
||||||
|
#)
|
||||||
|
|
||||||
#target_compile_options(
|
#target_compile_options(
|
||||||
# OSspecific PUBLIC
|
# OSspecific PUBLIC
|
||||||
# -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
# -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
||||||
|
|
|
@ -324,7 +324,7 @@ message("Site name: ${SITE}")
|
||||||
|
|
||||||
# Compile FOAM, libs and apps
|
# Compile FOAM, libs and apps
|
||||||
add_custom_target (foam-extend-$ENV{WM_PROJECT_VERSION} ALL
|
add_custom_target (foam-extend-$ENV{WM_PROJECT_VERSION} ALL
|
||||||
#${FOAM_ROOT}/Allwmake
|
${FOAM_ROOT}/Allwmake
|
||||||
)
|
)
|
||||||
|
|
||||||
set_property(
|
set_property(
|
||||||
|
|
|
@ -34,6 +34,6 @@ list(APPEND SOURCES
|
||||||
postCalc.C
|
postCalc.C
|
||||||
)
|
)
|
||||||
|
|
||||||
add_foam_library(postCalc SHARED ${SOURCES})
|
add_foam_library(postCalc STATIC ${SOURCES})
|
||||||
|
|
||||||
target_link_libraries(postCalc PUBLIC finiteVolume)
|
target_link_libraries(postCalc PUBLIC finiteVolume)
|
||||||
|
|
|
@ -17,7 +17,7 @@ FoamFile
|
||||||
|
|
||||||
libs
|
libs
|
||||||
(
|
(
|
||||||
"libcompressibleRASModels"
|
"libcompressibleRASModels.so"
|
||||||
"liblduSolvers.so"
|
"liblduSolvers.so"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ FoamFile
|
||||||
|
|
||||||
libs
|
libs
|
||||||
(
|
(
|
||||||
"libcompressibleRASModels.so"
|
//"libcompressibleRASModels.so"
|
||||||
"liblduSolvers.so"
|
"liblduSolvers.so"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ libs
|
||||||
(
|
(
|
||||||
"libimmersedBoundary.so"
|
"libimmersedBoundary.so"
|
||||||
"libimmersedBoundaryDynamicMesh.so"
|
"libimmersedBoundaryDynamicMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
|
|
|
@ -58,6 +58,7 @@ libs
|
||||||
(
|
(
|
||||||
"libimmersedBoundary.so"
|
"libimmersedBoundary.so"
|
||||||
"libimmersedBoundaryDynamicMesh.so"
|
"libimmersedBoundaryDynamicMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
|
|
|
@ -17,6 +17,7 @@ FoamFile
|
||||||
libs
|
libs
|
||||||
(
|
(
|
||||||
"libimmersedBoundary.so"
|
"libimmersedBoundary.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
)
|
)
|
||||||
|
|
||||||
application simpleFoam;
|
application simpleFoam;
|
||||||
|
|
|
@ -40,6 +40,6 @@ if(NOT FOAM_FOUND)
|
||||||
find_package(FOAM REQUIRED)
|
find_package(FOAM REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_foam_library(RBFMotionFunction SHARED ${SOURCES})
|
add_foam_library(RBFMotionFunction USERSPACE SHARED ${SOURCES})
|
||||||
|
|
||||||
target_link_libraries(RBFMotionFunction PUBLIC RBFMotionSolver)
|
target_link_libraries(RBFMotionFunction PUBLIC RBFMotionSolver)
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,12 @@ timePrecision 6;
|
||||||
|
|
||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"liblduSolvers.so"
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
(
|
||||||
forces
|
forces
|
||||||
|
|
|
@ -55,6 +55,8 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,5 +50,10 @@ adjustTimeStep yes;
|
||||||
|
|
||||||
maxCo 0.5;
|
maxCo 0.5;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"liblduSolvers.so"
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
|
@ -55,6 +55,7 @@ libs
|
||||||
"libdynamicFvMesh.so"
|
"libdynamicFvMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
"liboversetDynamicFvMesh.so"
|
"liboversetDynamicFvMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ libs
|
||||||
"libdynamicFvMesh.so"
|
"libdynamicFvMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
"liboversetDynamicFvMesh.so"
|
"liboversetDynamicFvMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
functions
|
functions
|
||||||
|
|
|
@ -44,6 +44,12 @@ timePrecision 6;
|
||||||
|
|
||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
libs
|
||||||
|
(
|
||||||
|
"liblduSolvers.so"
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
functions
|
functions
|
||||||
(
|
(
|
||||||
forces
|
forces
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ libs
|
||||||
"libsampling.so"
|
"libsampling.so"
|
||||||
"libdynamicMesh.so"
|
"libdynamicMesh.so"
|
||||||
"liboversetMesh.so"
|
"liboversetMesh.so"
|
||||||
|
"liblduSolvers.so"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue