-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
238 lines (219 loc) · 10.2 KB
/
CMakeLists.txt
File metadata and controls
238 lines (219 loc) · 10.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# SPDX-License-Identifier: LGPL-2.1-only
#
# Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
# Copyright (c) 2018-2024 TotalEnergies
# Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
# Copyright (c) 2023-2024 Chevron
# Copyright (c) 2019- GEOS/GEOSX Contributors
# All rights reserved
#
# See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
#
#--------------------------------------------------------------------------------------------------
#[[
Package: fluidFlowSolvers
Contains:
#]]
# Specify solver headers
set( fluidFlowSolvers_headers
FlowSolverBase.hpp
FlowSolverBaseFields.hpp
CompositionalMultiphaseBase.hpp
CompositionalMultiphaseBaseFields.hpp
CompositionalMultiphaseStatistics.hpp
CompositionalMultiphaseFVM.hpp
CompositionalMultiphaseHybridFVM.hpp
CompositionalMultiphaseUtilities.hpp
ImmiscibleMultiphaseFlow.hpp
ImmiscibleMultiphaseFlowFields.hpp
LogLevelsInfo.hpp
ReactiveCompositionalMultiphaseOBL.hpp
ReactiveCompositionalMultiphaseOBLFields.hpp
SourceFluxStatistics.hpp
SinglePhaseBase.hpp
SinglePhaseBaseFields.hpp
SinglePhaseStatistics.hpp
SinglePhaseFVM.hpp
SinglePhaseHybridFVM.hpp
SinglePhaseProppantBase.hpp
StencilAccessors.hpp
StencilDataCollection.hpp
LogLevelsInfo.hpp
kernels/MinPoreVolumeMaxPorosityKernel.hpp
kernels/StencilWeightsUpdateKernel.hpp
kernels/HybridFVMHelperKernels.hpp
kernels/singlePhase/AccumulationKernels.hpp
kernels/singlePhase/AquiferBCKernel.hpp
kernels/singlePhase/DirichletFluxComputeKernel.hpp
kernels/singlePhase/FluidUpdateKernel.hpp
kernels/singlePhase/FluxComputeKernel.hpp
kernels/singlePhase/FluxComputeKernelBase.hpp
kernels/singlePhase/FluxKernelsHelper.hpp
kernels/singlePhase/HydrostaticPressureKernel.hpp
kernels/singlePhase/MobilityKernel.hpp
kernels/singlePhase/ResidualNormKernel.hpp
kernels/singlePhase/SinglePhaseHybridFVMKernels.hpp
kernels/singlePhase/SolidInternalEnergyUpdateKernel.hpp
kernels/singlePhase/SolutionCheckKernel.hpp
kernels/singlePhase/SolutionScalingKernel.hpp
kernels/singlePhase/StabilizedFluxComputeKernel.hpp
kernels/singlePhase/StatisticsKernel.hpp
kernels/singlePhase/ThermalAccumulationKernels.hpp
kernels/singlePhase/ThermalDirichletFluxComputeKernel.hpp
kernels/singlePhase/ThermalFluxComputeKernel.hpp
kernels/singlePhase/ThermalSolutionScalingKernel.hpp
kernels/singlePhase/proppant/ProppantBaseKernels.hpp
kernels/singlePhase/proppant/ProppantFluxKernels.hpp
kernels/singlePhase/reactive/AccumulationKernels.hpp
kernels/singlePhase/reactive/DirichletFluxComputeKernel.hpp
kernels/singlePhase/reactive/FluidUpdateKernel.hpp
kernels/singlePhase/reactive/FluxComputeKernel.hpp
kernels/singlePhase/reactive/KernelLaunchSelectors.hpp
kernels/singlePhase/reactive/ReactionUpdateKernel.hpp
kernels/singlePhase/reactive/ResidualNormKernel.hpp
kernels/singlePhase/reactive/SourceFluxComputeKernel.hpp
kernels/singlePhase/reactive/ThermalAccumulationKernels.hpp
kernels/singlePhase/reactive/ThermalDirichletFluxComputeKernel.hpp
kernels/singlePhase/reactive/ThermalFluxComputeKernel.hpp
kernels/singlePhase/reactive/ThermalSourceFluxComputeKernel.hpp
kernels/compositional/AccumulationKernel.hpp
kernels/compositional/AquiferBCKernel.hpp
kernels/compositional/PPUPhaseFlux.hpp
kernels/compositional/C1PPUPhaseFlux.hpp
kernels/compositional/CapillaryPressureInversionKernel.hpp
kernels/compositional/CapillaryPressureUpdateKernel.hpp
kernels/compositional/CFLKernel.hpp
kernels/compositional/CompositionalMultiphaseHybridFVMKernels.hpp
kernels/compositional/CompositionalMultiphaseHybridFVMKernels_impl.hpp
kernels/compositional/DiffusionDispersionFluxComputeKernel.hpp
kernels/compositional/DirichletFluxComputeKernel.hpp
kernels/compositional/DissipationFluxComputeKernel.hpp
kernels/compositional/FluidUpdateKernel.hpp
kernels/compositional/FluidUpdateKernel.hpp
kernels/compositional/FluxComputeKernel.hpp
kernels/compositional/FluxComputeKernelBase.hpp
kernels/compositional/GlobalComponentFractionKernel.hpp
kernels/compositional/HydrostaticPressureKernel.hpp
kernels/compositional/IHUPhaseFlux.hpp
kernels/compositional/HU2PhaseFlux.hpp
kernels/compositional/KernelLaunchSelectors.hpp
kernels/compositional/PhaseComponentFlux.hpp
kernels/compositional/PhaseMobilityKernel.hpp
kernels/compositional/PhaseVolumeFractionKernel.hpp
kernels/compositional/PotGrad.hpp
kernels/compositional/PPUPhaseFlux.hpp
kernels/compositional/PropertyKernelBase.hpp
kernels/compositional/ReactiveCompositionalMultiphaseOBLKernels.hpp
kernels/compositional/RelativePermeabilityUpdateKernel.hpp
kernels/compositional/ResidualNormKernel.hpp
kernels/compositional/SolidInternalEnergyUpdateKernel.hpp
kernels/compositional/SolutionScalingAndCheckingKernelBase.hpp
kernels/compositional/SolutionCheckKernel.hpp
kernels/compositional/SolutionScalingKernel.hpp
kernels/compositional/StabilizedFluxComputeKernel.hpp
kernels/compositional/StatisticsKernel.hpp
kernels/compositional/ThermalAccumulationKernel.hpp
kernels/compositional/ThermalDiffusionDispersionFluxComputeKernel.hpp
kernels/compositional/ThermalDirichletFluxComputeKernel.hpp
kernels/compositional/ThermalFluxComputeKernel.hpp
kernels/compositional/ThermalPhaseMobilityKernel.hpp
kernels/compositional/ThermalPhaseVolumeFractionKernel.hpp
kernels/compositional/ThermalResidualNormKernel.hpp
kernels/compositional/ThermalSolutionCheckKernel.hpp
kernels/compositional/ThermalSolutionScalingKernel.hpp
kernels/immiscibleMultiphase/ImmiscibleMultiphaseKernels.hpp
wells/CompositionalMultiphaseWell.hpp
wells/CompositionalMultiphaseWellFields.hpp
wells/SinglePhaseWell.hpp
wells/SinglePhaseWellFields.hpp
wells/WellConstants.hpp
wells/WellControls.hpp
wells/WellSolverBase.hpp
wells/WellSolverBaseFields.hpp
wells/LogLevelsInfo.hpp
wells/kernels/SinglePhaseWellKernels.hpp
wells/kernels/CompositionalMultiphaseWellKernels.hpp
proppantTransport/ProppantTransport.hpp
proppantTransport/ProppantTransportFields.hpp
proppantTransport/ProppantTransportKernels.hpp )
# Specify solver sources
set( fluidFlowSolvers_sources
CompositionalMultiphaseBase.cpp
CompositionalMultiphaseFVM.cpp
CompositionalMultiphaseStatistics.cpp
CompositionalMultiphaseHybridFVM.cpp
ImmiscibleMultiphaseFlow.cpp
ReactiveCompositionalMultiphaseOBL.cpp
FlowSolverBase.cpp
SinglePhaseBase.cpp
SinglePhaseStatistics.cpp
SinglePhaseFVM.cpp
SinglePhaseHybridFVM.cpp
SinglePhaseProppantBase.cpp
SinglePhaseReactiveTransport.cpp
SourceFluxStatistics.cpp
StencilDataCollection.cpp
kernels/singlePhase/proppant/ProppantFluxKernels.cpp
kernels/compositional/AquiferBCKernel.cpp
kernels/compositional/CFLKernel.cpp
kernels/compositional/FluxComputeKernelBase.cpp
kernels/compositional/CompositionalMultiphaseHybridFVMKernelsInstantiations.cpp
wells/CompositionalMultiphaseWell.cpp
wells/kernels/CompositionalMultiphaseWellKernels.cpp
wells/SinglePhaseWell.cpp
wells/kernels/SinglePhaseWellKernels.cpp
wells/WellControls.cpp
wells/WellSolverBase.cpp
proppantTransport/ProppantTransport.cpp
proppantTransport/ProppantTransportKernels.cpp )
# Remove the old generator-based hybrid flux/dirichlet kernels and switch to macro approach
file( READ "${CMAKE_CURRENT_LIST_DIR}/kernelSpecs.json" kernelSpecs )
set( kernelTemplateFileList "" )
# Keep only the templates that are unrelated to hybrid flux/dirichlet
list( APPEND kernelTemplateFileList
ReactiveCompositionalMultiphaseOBLKernels.cpp.template )
foreach( kernelTemplateFile ${kernelTemplateFileList} )
get_filename_component( jsonKey ${kernelTemplateFile} NAME_WE )
generateKernels( TEMPLATE ${kernelTemplateFile}
JSON kernelSpecs
KEY ${jsonKey}
HEADERS headerFiles
SOURCES sourceFiles )
list(APPEND fluidFlowSolvers_headers ${headerFiles})
list(APPEND fluidFlowSolvers_sources ${sourceFiles})
endforeach()
# TODO: The two kernels below have non-matching file names and JSON keys.
# Either fix them to follow pattern, or come up with another mechanism.
generateKernels( TEMPLATE "CompositionalMultiphaseFVMKernel_isothermal.cpp.template"
JSON kernelSpecs
KEY "IsothermalCompositionalMultiphaseFVM_DirichletFluxComputeKernels"
HEADERS headerFiles
SOURCES sourceFiles )
list(APPEND fluidFlowSolvers_headers ${headerFiles})
list(APPEND fluidFlowSolvers_sources ${sourceFiles})
generateKernels( TEMPLATE "CompositionalMultiphaseFVMKernel_thermal.cpp.template"
JSON kernelSpecs
KEY "ThermalCompositionalMultiphaseFVM_DirichletFluxComputeKernels"
HEADERS headerFiles
SOURCES sourceFiles )
list(APPEND fluidFlowSolvers_headers ${headerFiles})
list(APPEND fluidFlowSolvers_sources ${sourceFiles})
blt_add_library( NAME fluidFlowSolvers
SOURCES ${fluidFlowSolvers_sources}
HEADERS ${fluidFlowSolvers_headers}
DEPENDS_ON ${decoratedDependencies} ${externalComponentDeps}
OBJECT ${GEOS_BUILD_OBJ_LIBS}
SHARED ${GEOS_BUILD_SHARED_LIBS}
)
# Always enable the manual instantiation compile flag
target_compile_definitions( fluidFlowSolvers PUBLIC GEOS_ENABLE_MANUAL_HYBRID_FVM_INST )
target_include_directories( fluidFlowSolvers PUBLIC ${CMAKE_SOURCE_DIR}/coreComponents )
install( TARGETS fluidFlowSolvers LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
if( externalComponentDeps )
target_include_directories( fluidFlowSolvers PUBLIC ${CMAKE_SOURCE_DIR}/externalComponents )
endif()
if( GEOS_ENABLE_TESTS )
add_subdirectory( unitTests )
add_subdirectory( kernels/singlePhase/unitTests )
add_subdirectory( wells/unitTests )
endif()