multiphaseEuler: Library reorganisation

This change makes multiphaseEuler more consistent with other modules and
makes its sub-libraries less inter-dependent. Some left-over references
to multiphaseEulerFoam have also been removed.
This commit is contained in:
Will Bainbridge
2023-09-14 09:26:13 +01:00
parent 1ff0bcd81b
commit 597121a4a7
406 changed files with 339 additions and 374 deletions

View File

@ -1,13 +1,16 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
wclean libso phaseSystems wclean libso phaseSystem
wclean libso interfacialModels wclean libso interfacialModels
wclean libso interfacialCompositionModels wclean libso populationBalance
wclean libso multiphaseCompressibleMomentumTransportModels wclean libso momentumTransportModels
wclean libso multiphaseThermophysicalTransportModels wclean libso thermophysicalTransportModels
wclean libso multiphaseReactions wclean libso reactions
multiphaseEuler/Allwclean wclean libso phaseSystems
wclean
wclean libso fvModels wclean libso fvModels
wclean libso functionObjects wclean libso functionObjects

View File

@ -4,13 +4,16 @@ cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for library compilation # Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
wmake $targetType phaseSystems wmake $targetType phaseSystem
wmake $targetType interfacialModels wmake $targetType interfacialModels
wmake $targetType interfacialCompositionModels wmake $targetType populationBalance
wmake $targetType multiphaseCompressibleMomentumTransportModels wmake $targetType momentumTransportModels
wmake $targetType multiphaseThermophysicalTransportModels wmake $targetType thermophysicalTransportModels
wmake $targetType multiphaseReactions wmake $targetType reactions
multiphaseEuler/Allwmake $targetType $* wmake $targetType phaseSystems
wmake $targetType
wmake $targetType fvModels wmake $targetType fvModels
wmake $targetType functionObjects wmake $targetType functionObjects

View File

@ -1,33 +1,21 @@
EXE_INC = \ EXE_INC = \
-I$(FOAM_MODULES)/fluidSolver/lnInclude \ -I$(FOAM_MODULES)/fluidSolver/lnInclude \
-I../include \ -IphaseSystem/lnInclude \
-I../phaseSystems/lnInclude \ -IinterfacialModels/lnInclude \
-I../interfacialModels/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I../interfacialCompositionModels/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/physicalProperties/lnInclude \ -I$(LIB_SRC)/physicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lfluidSolver \ -lfluidSolver \
-lphaseSystem \ -lphaseSystems \
-lmultiphaseSystems \ -lmultiphaseEulerReactions \
-leulerianInterfacialModels \
-leulerianInterfacialCompositionModels \
-lmultiphaseMomentumTransportModels \
-lmultiphaseThermophysicalTransportModels \
-lmultiphaseReactions \
-lmultiphaseProperties \
-lphaseFluidThermophysicalTransportModels \
-lphaseFluidMulticomponentThermophysicalTransportModels \
-lfiniteVolume \
-lfvModels \ -lfvModels \
-lfvConstraints \ -lfvConstraints
-lmeshTools

View File

@ -4,4 +4,4 @@ phaseForces/phaseForces.C
phaseMap/phaseMap.C phaseMap/phaseMap.C
wallBoilingProperties/wallBoilingProperties.C wallBoilingProperties/wallBoilingProperties.C
LIB = $(FOAM_LIBBIN)/libmultiphaseEulerFoamFunctionObjects LIB = $(FOAM_LIBBIN)/libmultiphaseEulerFunctionObjects

View File

@ -1,8 +1,14 @@
EXE_INC = \ EXE_INC = \
-I../phaseSystems/lnInclude \ -I../phaseSystem/lnInclude \
-I../interfacialModels/lnInclude \ -I../interfacialModels/lnInclude \
-I../multiphaseCompressibleMomentumTransportModels/lnInclude \ -I../populationBalance/lnInclude \
-I../multiphaseThermophysicalTransportModels/lnInclude \ -I../momentumTransportModels/lnInclude \
-I../thermophysicalTransportModels/lnInclude \
-I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/functionObjects/field/lnInclude \
-I$(LIB_SRC)/physicalProperties/lnInclude \ -I$(LIB_SRC)/physicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \
@ -10,25 +16,8 @@ EXE_INC = \
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/functionObjects/field/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lphaseSystem \ -lphaseSystems \
-lmultiphaseSystems \
-leulerianInterfacialModels \
-leulerianInterfacialCompositionModels \
-lmultiphaseMomentumTransportModels \
-lmultiphaseThermophysicalTransportModels \
-lmultiphaseReactions \
-lmultiphaseProperties \
-lphaseFluidThermophysicalTransportModels \
-lphaseFluidMulticomponentThermophysicalTransportModels \
-lcompressibleTwoPhases \
-lfiniteVolume \
-lmeshTools \
-lfileFormats \ -lfileFormats \
-lfieldFunctionObjects -lfieldFunctionObjects

View File

@ -28,7 +28,7 @@ Description
This functionObject calculates and outputs the blended interfacial forces This functionObject calculates and outputs the blended interfacial forces
acting on a given phase, i.e. drag, virtual mass, lift, wall-lubrication and acting on a given phase, i.e. drag, virtual mass, lift, wall-lubrication and
turbulent dispersion. Note that it works only in run-time processing mode turbulent dispersion. Note that it works only in run-time processing mode
and in combination with the multiphaseEulerFoam solver. and in combination with the multiphaseEuler solver module.
For a simulation involving more than two phases, the accumulated force is For a simulation involving more than two phases, the accumulated force is
calculated by looping over all interfaces involving that phase. The fields calculated by looping over all interfaces involving that phase. The fields
@ -41,7 +41,7 @@ Description
{ {
type phaseForces; type phaseForces;
libs ("libmultiphaseEulerFoamFunctionObjects.so"); libs ("libmultiphaseEulerFunctionObjects.so");
phase water; phase water;
} }

View File

@ -34,7 +34,7 @@ Description
phaseMap phaseMap
{ {
type phaseMap; type phaseMap;
libs ("libmultiphaseEulerFoamFunctionObjects.so"); libs ("libmultiphaseEulerFunctionObjects.so");
writeControl writeTime; writeControl writeTime;
} }
\endverbatim \endverbatim

View File

@ -37,7 +37,7 @@ Description
populationBalanceMoments populationBalanceMoments
{ {
type populationBalanceMoments; type populationBalanceMoments;
libs ("libmultiphaseEulerFoamFunctionObjects.so"); libs ("libmultiphaseEulerFunctionObjects.so");
executeControl timeStep; executeControl timeStep;
writeControl writeTime; writeControl writeTime;
populationBalance bubbles; populationBalance bubbles;

View File

@ -37,7 +37,7 @@ Description
numberDensity numberDensity
{ {
type populationBalanceSizeDistribution; type populationBalanceSizeDistribution;
libs ("libmultiphaseEulerFoamFunctionObjects.so"); libs ("libmultiphaseEulerFunctionObjects.so");
writeControl writeTime; writeControl writeTime;
populationBalance bubbles; populationBalance bubbles;
functionType numberDensity; functionType numberDensity;

View File

@ -40,7 +40,7 @@ Description
writeWallBoilingProperties writeWallBoilingProperties
{ {
type wallBoilingProperties; type wallBoilingProperties;
libs ( "libmultiphaseEulerFoamFunctionObjects.so" ); libs ( "libmultiphaseEulerFunctionObjects.so" );
writeControl writeTime; writeControl writeTime;
phase liquid; phase liquid;
} }

View File

@ -1,4 +1,4 @@
phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.C phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.C
interfaceTurbulenceDamping/interfaceTurbulenceDamping.C interfaceTurbulenceDamping/interfaceTurbulenceDamping.C
LIB = $(FOAM_LIBBIN)/libmultiphaseEulerFoamFvModels LIB = $(FOAM_LIBBIN)/libmultiphaseEulerFvModels

View File

@ -1,26 +1,15 @@
EXE_INC = \ EXE_INC = \
-I../phaseSystems/lnInclude \ -I../phaseSystem/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/physicalProperties/lnInclude \ -I$(LIB_SRC)/physicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lphaseSystem \ -lphaseSystems
-lmultiphaseSystems \
-leulerianInterfacialModels \
-leulerianInterfacialCompositionModels \
-lmultiphaseMomentumTransportModels \
-lmultiphaseReactions \
-lmultiphaseProperties \
-lphaseFluidThermophysicalTransportModels \
-lphaseFluidMulticomponentThermophysicalTransportModels \
-lcompressibleTwoPhases \
-lfiniteVolume \
-lfvModels \
-lmeshTools

View File

@ -55,7 +55,7 @@ Usage
{ {
type interfaceTurbulenceDamping; type interfaceTurbulenceDamping;
libs ("libmultiphaseEulerFoamFvModels.so"); libs ("libmultiphaseEulerFvModels.so");
phase water; phase water;

View File

@ -56,7 +56,7 @@ Usage
{ {
type phaseTurbulenceStabilisation; type phaseTurbulenceStabilisation;
libs ("libmultiphaseEulerFoamFvModels.so"); libs ("libmultiphaseEulerFvModels.so");
phase air; phase air;

View File

@ -1,20 +0,0 @@
diffusiveMassTransferModels/diffusiveMassTransferModel/diffusiveMassTransferModel.C
diffusiveMassTransferModels/diffusiveMassTransferModel/diffusiveMassTransferModelNew.C
diffusiveMassTransferModels/Frossling/Frossling.C
diffusiveMassTransferModels/sphericalDiffusiveMassTransfer/sphericalDiffusiveMassTransfer.C
interfaceSurfaceTensionModels/interfaceSurfaceTensionModel/interfaceSurfaceTensionModel.C
interfaceSurfaceTensionModels/interfaceSurfaceTensionModel/interfaceSurfaceTensionModelNew.C
interfaceSurfaceTensionModels/constantSurfaceTensionCoefficient/constantSurfaceTensionCoefficient.C
interfaceCompositionModels/interfaceCompositionModel/interfaceCompositionModel.C
interfaceCompositionModels/interfaceCompositionModel/interfaceCompositionModelNew.C
interfaceCompositionModels/Henry/Henry.C
interfaceCompositionModels/nonRandomTwoLiquid/nonRandomTwoLiquid.C
interfaceCompositionModels/Raoult/Raoult.C
interfaceCompositionModels/saturated/saturated.C
interfaceSaturationTemperatureModel/interfaceSaturationTemperatureModel.C
interfaceSaturationTemperatureModel/interfaceSaturationTemperatureModelNew.C
LIB = $(FOAM_LIBBIN)/libeulerianInterfacialCompositionModels

View File

@ -90,4 +90,23 @@ phaseTransferModels/cavitation/cavitation.C
phaseTransferModels/deposition/deposition.C phaseTransferModels/deposition/deposition.C
phaseTransferModels/reactionDriven/reactionDriven.C phaseTransferModels/reactionDriven/reactionDriven.C
LIB = $(FOAM_LIBBIN)/libeulerianInterfacialModels diffusiveMassTransferModels/diffusiveMassTransferModel/diffusiveMassTransferModel.C
diffusiveMassTransferModels/diffusiveMassTransferModel/diffusiveMassTransferModelNew.C
diffusiveMassTransferModels/Frossling/Frossling.C
diffusiveMassTransferModels/sphericalDiffusiveMassTransfer/sphericalDiffusiveMassTransfer.C
interfaceSurfaceTensionModels/interfaceSurfaceTensionModel/interfaceSurfaceTensionModel.C
interfaceSurfaceTensionModels/interfaceSurfaceTensionModel/interfaceSurfaceTensionModelNew.C
interfaceSurfaceTensionModels/constantSurfaceTensionCoefficient/constantSurfaceTensionCoefficient.C
interfaceCompositionModels/interfaceCompositionModel/interfaceCompositionModel.C
interfaceCompositionModels/interfaceCompositionModel/interfaceCompositionModelNew.C
interfaceCompositionModels/Henry/Henry.C
interfaceCompositionModels/nonRandomTwoLiquid/nonRandomTwoLiquid.C
interfaceCompositionModels/Raoult/Raoult.C
interfaceCompositionModels/saturated/saturated.C
interfaceSaturationTemperatureModel/interfaceSaturationTemperatureModel.C
interfaceSaturationTemperatureModel/interfaceSaturationTemperatureModelNew.C
LIB = $(FOAM_LIBBIN)/libmultiphaseEulerInterfacialModels

View File

@ -1,21 +1,21 @@
EXE_INC = \ EXE_INC = \
-I../phaseSystems/lnInclude \ -I../phaseSystem/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/physicalProperties/lnInclude \ -I$(LIB_SRC)/physicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/multicomponentThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/saturationModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/saturationModels/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \
-I$(LIB_SRC)/twoPhaseModels/compressibleCavitation/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/compressibleCavitation/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lphaseSystem \ -lphaseSystem \
-lfluidThermophysicalModels \
-lsaturationModels \
-lspecie \
-lcompressibleCavitationModels -lcompressibleCavitationModels

View File

@ -1,4 +1,4 @@
multiphaseCompressibleMomentumTransportModels.C momentumTransportModels.C
phasePressureModel/phasePressureModel.C phasePressureModel/phasePressureModel.C
@ -37,4 +37,4 @@ kineticTheoryModels/frictionalStressModel/JohnsonJacksonSchaeffer/JohnsonJackson
derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C
derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C
LIB = $(FOAM_LIBBIN)/libmultiphaseMomentumTransportModels LIB = $(FOAM_LIBBIN)/libmultiphaseEulerMomentumTransportModels

View File

@ -1,7 +1,9 @@
EXE_INC = \ EXE_INC = \
-I../phaseSystems/lnInclude \ -I../phaseSystem/lnInclude \
-I../interfacialModels/lnInclude\ -I../interfacialModels/lnInclude \
-I../interfacialCompositionModels/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/physicalProperties/lnInclude \ -I$(LIB_SRC)/physicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
@ -11,13 +13,9 @@ EXE_INC = \
-I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/compressibleTwoPhases/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude \ -I$(LIB_SRC)/MomentumTransportModels/phaseCompressible/lnInclude
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lphaseSystem \ -lphaseSystem \
-leulerianInterfacialModels \ -lmultiphaseEulerInterfacialModels \
-leulerianInterfacialCompositionModels \
-lphaseCompressibleMomentumTransportModels -lphaseCompressibleMomentumTransportModels

Some files were not shown because too many files have changed in this diff Show More