Enable overset & Patched up more tutorials for CMake build

This commit is contained in:
Henrik Rusche 2018-06-01 17:28:29 +02:00
parent 21873a1cb7
commit 7b6ce1ff7c
69 changed files with 774 additions and 40 deletions

View file

@ -50,3 +50,5 @@ add_subdirectory(basic)
add_subdirectory(immersedBoundary)
add_subdirectory(surfaceTracking)
add_subdirectory(viscoelastic)
add_subdirectory(overset)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(XiFoam
DEPENDS engine compressibleTurbulenceModel laminarFlameSpeedModels
DEPENDS engine compressibleRASModels compressibleLESModels laminarFlameSpeedModels
SOURCES ${SOURCES}
)

View file

@ -41,7 +41,7 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(coldEngineFoam
DEPENDS engine compressibleTurbulenceModel
DEPENDS engine compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -41,7 +41,7 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(engineFoam
DEPENDS engine compressibleTurbulenceModel laminarFlameSpeedModels
DEPENDS engine compressibleRASModels compressibleLESModels laminarFlameSpeedModels
SOURCES ${SOURCES}
)

View file

@ -43,6 +43,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(fireFoam
DEPENDS compressibleTurbulenceModel radiation combustionModels
DEPENDS radiation combustionModels
SOURCES ${SOURCES}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(reactingFoam
DEPENDS compressibleTurbulenceModel chemistryModel
DEPENDS compressibleRASModels compressibleLESModels chemistryModel
SOURCES ${SOURCES}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(rhoReactingFoam
DEPENDS chemistryModel compressibleTurbulenceModel
DEPENDS chemistryModel compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(realFluidPisoFoam
DEPENDS compressibleTurbulenceModel
DEPENDS compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -37,6 +37,6 @@ list(APPEND SOURCES
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)

View file

@ -31,3 +31,18 @@
# --------------------------------------------------------------------------
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}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(rhoPimpleFoam
DEPENDS compressibleTurbulenceModel
DEPENDS compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(rhoPisoFoam
DEPENDS compressibleTurbulenceModel
DEPENDS compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -41,7 +41,7 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(rhoPorousMRFPimpleFoam
DEPENDS compressibleTurbulenceModel
DEPENDS compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -39,6 +39,6 @@ list(APPEND SOURCES
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)

View file

@ -31,3 +31,18 @@
# --------------------------------------------------------------------------
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}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(sonicDyMFoam
DEPENDS compressibleTurbulenceModel dynamicFvMesh
DEPENDS dynamicFvMesh compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(sonicFoam
DEPENDS compressibleTurbulenceModel
DEPENDS compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(sonicTurbDyMEngineFoam
DEPENDS compressibleTurbulenceModel engine
DEPENDS engine compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -41,6 +41,6 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(buoyantPisoFoam
DEPENDS compressibleTurbulenceModel
DEPENDS compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -46,7 +46,7 @@ if(NOT FOAM_FOUND)
endif()
add_foam_executable(chtMultiRegionFoam
DEPENDS compressibleTurbulenceModel
DEPENDS compressibleRASModels compressibleLESModels
SOURCES ${SOURCES}
)

View file

@ -33,3 +33,22 @@
add_subdirectory(interfacialModels)
add_subdirectory(phaseModel)
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>
)

View file

@ -44,4 +44,4 @@ list(APPEND SOURCES
add_foam_library(EulerianInterfacialModels SHARED ${SOURCES})
target_link_libraries(EulerianInterfacialModels PUBLIC phaseModel)
target_link_libraries(EulerianInterfacialModels PUBLIC finiteVolume phaseModel)

View file

@ -61,7 +61,7 @@ list(APPEND SOURCES
add_foam_library(kineticTheoryModel SHARED ${SOURCES})
target_link_libraries(kineticTheoryModel PUBLIC phaseModel)
target_link_libraries(kineticTheoryModel PUBLIC EulerianInterfacialModels)
target_include_directories(kineticTheoryModel PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../interfacialModels/dragModels/dragModel>

View 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)

View 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
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}
)

View 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}
)

View 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}
)

View 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
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}
)

View 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
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}
)

View 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
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}
)

View 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
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}
)

View 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
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}
)

View 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
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}
)

View 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
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}
)

View file

@ -41,3 +41,4 @@ add_subdirectory(postProcessing)
add_subdirectory(parallelProcessing)
add_subdirectory(errorEstimation)
add_subdirectory(mesh)
add_subdirectory(overset)

View 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)

View 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}
)

View 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
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}
)

View file

@ -128,17 +128,21 @@ compileApplication ()
wmake $1
fi
rm -rf $lockFilename
echo DONE
fi
}
compileLibrary ()
{
echo "Compiling $1 library"
echo $WM_USE_CMAKE
if [ "$WM_USE_CMAKE" = "1" ];
(cd $1; cmake .; make)
then
(cd $1; cmake .; make)
else
wmake libso $1
fi
echo DONE
}
cloneCase ()

View file

@ -36,6 +36,11 @@ add_custom_target(ImportMessage
)
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
include_directories(lnInclude)
add_custom_command(
@ -47,8 +52,13 @@ function(add_foam_library lib)
)
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_library(${lib} ${ARGN})
add_library(${lib} ${AFL_UNPARSED_ARGUMENTS})
add_dependencies(${lib} ${lib}_lnInclude)
target_include_directories(${lib} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lnInclude>
@ -88,12 +98,14 @@ function(add_foam_executable exe)
cmake_parse_arguments(AFE "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
if(${AFE_USERSPACE})
message(STATUS Got here)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $ENV{FOAM_USER_LIBBIN})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $ENV{FOAM_USER_APPBIN})
endif()
add_executable(${exe} ${AFE_SOURCES})
target_link_libraries(${exe}
"-Xlinker --add-needed -Xlinker --no-as-needed"
)
target_link_libraries(${exe} ${AFE_DEPENDS})
install (TARGETS ${exe} DESTINATION bin)

View file

@ -93,14 +93,14 @@ endif()
find_package(Metis REQUIRED)
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 IMPORTED_LOCATION ${METIS_LIBRARY})
endif()
find_package(ParMetis REQUIRED)
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 IMPORTED_LOCATION ${PARMETIS_LIBRARY})
endif()
@ -121,10 +121,6 @@ if(CCMIO_FOUND)
set_property(TARGET ccmio PROPERTY INTERFACE_LINK_LIBRARIES ${CCMIO_LIBRARIES})
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
@ -138,7 +134,6 @@ file(WRITE ${CMAKE_BINARY_DIR}/cmake/FOAMTargets.cmake "#" )
add_subdirectory(src)
add_subdirectory(applications)
#add_subdirectory(tutorials)
#
@ -182,6 +177,11 @@ if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
target_compile_options(OSspecific PUBLIC -fdefault-inline -ggdb3)
endif()
#target_link_libraries(
# OSspecific INTERFACE
# "-Xlinker --add-needed -Xlinker --no-as-needed"
#)
#target_compile_options(
# OSspecific PUBLIC
# -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor

View file

@ -324,7 +324,7 @@ message("Site name: ${SITE}")
# Compile FOAM, libs and apps
add_custom_target (foam-extend-$ENV{WM_PROJECT_VERSION} ALL
#${FOAM_ROOT}/Allwmake
${FOAM_ROOT}/Allwmake
)
set_property(

View file

@ -34,6 +34,6 @@ list(APPEND SOURCES
postCalc.C
)
add_foam_library(postCalc SHARED ${SOURCES})
add_foam_library(postCalc STATIC ${SOURCES})
target_link_libraries(postCalc PUBLIC finiteVolume)

View file

@ -17,7 +17,7 @@ FoamFile
libs
(
"libcompressibleRASModels"
"libcompressibleRASModels.so"
"liblduSolvers.so"
)

View file

@ -17,7 +17,7 @@ FoamFile
libs
(
"libcompressibleRASModels.so"
//"libcompressibleRASModels.so"
"liblduSolvers.so"
)

View file

@ -58,6 +58,7 @@ libs
(
"libimmersedBoundary.so"
"libimmersedBoundaryDynamicMesh.so"
"liblduSolvers.so"
);
functions

View file

@ -58,6 +58,7 @@ libs
(
"libimmersedBoundary.so"
"libimmersedBoundaryDynamicMesh.so"
"liblduSolvers.so"
);
functions

View file

@ -17,6 +17,7 @@ FoamFile
libs
(
"libimmersedBoundary.so"
"liblduSolvers.so"
)
application simpleFoam;

View file

@ -40,6 +40,6 @@ if(NOT FOAM_FOUND)
find_package(FOAM REQUIRED)
endif()
add_foam_library(RBFMotionFunction SHARED ${SOURCES})
add_foam_library(RBFMotionFunction USERSPACE SHARED ${SOURCES})
target_link_libraries(RBFMotionFunction PUBLIC RBFMotionSolver)

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -55,6 +55,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -57,6 +57,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -55,6 +55,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -47,6 +47,12 @@ timePrecision 6;
runTimeModifiable yes;
libs
(
"liblduSolvers.so"
);
functions
(
forces

View file

@ -55,6 +55,8 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -50,5 +50,10 @@ adjustTimeStep yes;
maxCo 0.5;
libs
(
"liblduSolvers.so"
);
// ************************************************************************* //

View file

@ -55,6 +55,7 @@ libs
"libdynamicFvMesh.so"
"liboversetMesh.so"
"liboversetDynamicFvMesh.so"
"liblduSolvers.so"
);

View file

@ -58,6 +58,7 @@ libs
"libdynamicFvMesh.so"
"liboversetMesh.so"
"liboversetDynamicFvMesh.so"
"liblduSolvers.so"
);
functions

View file

@ -44,6 +44,12 @@ timePrecision 6;
runTimeModifiable yes;
libs
(
"liblduSolvers.so"
);
functions
(
forces

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -52,6 +52,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);

View file

@ -53,6 +53,7 @@ libs
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
"liblduSolvers.so"
);