Compare commits
17 Commits
feature-cl
...
multiNodeD
| Author | SHA1 | Date | |
|---|---|---|---|
| 8862a0b3b2 | |||
| c7477885a5 | |||
| cc6ba5c1a0 | |||
| 26420a88d7 | |||
| ff13cdd39d | |||
| 988ec18ecc | |||
| 0339e5ee0d | |||
| 07c69fdf0d | |||
| 03ab6c1a9d | |||
| e62b031f26 | |||
| 33f0ff8145 | |||
| 166164da93 | |||
| 1f68e7f9b3 | |||
| e346620a62 | |||
| df808ad3f2 | |||
| 51ed7a6034 | |||
| 0031cb1efa |
@ -1,2 +1,2 @@
|
|||||||
api=2212
|
api=2212
|
||||||
patch=0
|
patch=230110
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
Info<< "\nConstructing reacting cloud" << endl;
|
Info<< "\nConstructing reacting cloud" << endl;
|
||||||
reactingCloud parcels
|
basicReactingCloud parcels
|
||||||
(
|
(
|
||||||
"reactingCloud1",
|
"reactingCloud1",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
|
g,
|
||||||
slgThermo
|
slgThermo
|
||||||
);
|
);
|
||||||
|
|||||||
@ -37,7 +37,7 @@ Description
|
|||||||
|
|
||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
#include "reactingCloud.H"
|
#include "basicReactingCloud.H"
|
||||||
#include "surfaceFilmModel.H"
|
#include "surfaceFilmModel.H"
|
||||||
#include "pyrolysisModelCollection.H"
|
#include "pyrolysisModelCollection.H"
|
||||||
#include "radiationModel.H"
|
#include "radiationModel.H"
|
||||||
|
|||||||
@ -9,7 +9,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -7,7 +7,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -10,7 +10,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -7,7 +7,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -19,7 +19,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
|
|||||||
@ -8,7 +8,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels\lnInclude
|
-I$(LIB_SRC)/regionFaModels/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -42,11 +42,11 @@ Description
|
|||||||
#include "CorrectPhi.H"
|
#include "CorrectPhi.H"
|
||||||
|
|
||||||
#ifdef MPPIC
|
#ifdef MPPIC
|
||||||
#include "kinematicCloud.H"
|
#include "basicKinematicCloud.H"
|
||||||
#define kinematicTypeCloud kinematicCloud
|
#define basicKinematicTypeCloud basicKinematicCloud
|
||||||
#else
|
#else
|
||||||
#include "kinematicCollidingCloud.H"
|
#include "basicKinematicCollidingCloud.H"
|
||||||
#define kinematicTypeCloud kinematicCollidingCloud
|
#define basicKinematicTypeCloud basicKinematicCollidingCloud
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
@ -88,7 +88,7 @@ int main(int argc, char *argv[])
|
|||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
// Store the particle positions
|
// Store the particle positions
|
||||||
kCloud.storeGlobalPositions();
|
kinematicCloud.storeGlobalPositions();
|
||||||
|
|
||||||
mesh.update();
|
mesh.update();
|
||||||
|
|
||||||
@ -111,15 +111,15 @@ int main(int argc, char *argv[])
|
|||||||
continuousPhaseTransport.correct();
|
continuousPhaseTransport.correct();
|
||||||
muc = rhoc*continuousPhaseTransport.nu();
|
muc = rhoc*continuousPhaseTransport.nu();
|
||||||
|
|
||||||
kCloud.evolve();
|
kinematicCloud.evolve();
|
||||||
|
|
||||||
// Update continuous phase volume fraction field
|
// Update continuous phase volume fraction field
|
||||||
alphac = max(1.0 - kCloud.theta(), alphacMin);
|
alphac = max(1.0 - kinematicCloud.theta(), alphacMin);
|
||||||
alphac.correctBoundaryConditions();
|
alphac.correctBoundaryConditions();
|
||||||
alphacf = fvc::interpolate(alphac);
|
alphacf = fvc::interpolate(alphac);
|
||||||
alphaPhic = alphacf*phic;
|
alphaPhic = alphacf*phic;
|
||||||
|
|
||||||
fvVectorMatrix cloudSU(kCloud.SU(Uc));
|
fvVectorMatrix cloudSU(kinematicCloud.SU(Uc));
|
||||||
volVectorField cloudVolSUSu
|
volVectorField cloudVolSUSu
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
|
|||||||
@ -12,8 +12,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
|
|||||||
@ -11,11 +11,8 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/phaseIncompressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/phaseIncompressible/lnInclude \
|
||||||
|
|||||||
@ -43,11 +43,11 @@ Description
|
|||||||
#include "pimpleControl.H"
|
#include "pimpleControl.H"
|
||||||
|
|
||||||
#ifdef MPPIC
|
#ifdef MPPIC
|
||||||
#include "kinematicCloud.H"
|
#include "basicKinematicCloud.H"
|
||||||
#define kinematicTypeCloud kinematicCloud
|
#define basicKinematicTypeCloud basicKinematicCloud
|
||||||
#else
|
#else
|
||||||
#include "kinematicCollidingCloud.H"
|
#include "basicKinematicCollidingCloud.H"
|
||||||
#define kinematicTypeCloud kinematicCollidingCloud
|
#define basicKinematicTypeCloud basicKinematicCollidingCloud
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
@ -91,16 +91,16 @@ int main(int argc, char *argv[])
|
|||||||
continuousPhaseTransport.correct();
|
continuousPhaseTransport.correct();
|
||||||
muc = rhoc*continuousPhaseTransport.nu();
|
muc = rhoc*continuousPhaseTransport.nu();
|
||||||
|
|
||||||
Info<< "Evolving " << kCloud.name() << endl;
|
Info<< "Evolving " << kinematicCloud.name() << endl;
|
||||||
kCloud.evolve();
|
kinematicCloud.evolve();
|
||||||
|
|
||||||
// Update continuous phase volume fraction field
|
// Update continuous phase volume fraction field
|
||||||
alphac = max(1.0 - kCloud.theta(), alphacMin);
|
alphac = max(1.0 - kinematicCloud.theta(), alphacMin);
|
||||||
alphac.correctBoundaryConditions();
|
alphac.correctBoundaryConditions();
|
||||||
alphacf = fvc::interpolate(alphac);
|
alphacf = fvc::interpolate(alphac);
|
||||||
alphaPhic = alphacf*phic;
|
alphaPhic = alphacf*phic;
|
||||||
|
|
||||||
fvVectorMatrix cloudSU(kCloud.SU(Uc));
|
fvVectorMatrix cloudSU(kinematicCloud.SU(Uc));
|
||||||
volVectorField cloudVolSUSu
|
volVectorField cloudVolSUSu
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
|
|||||||
@ -10,8 +10,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||||
|
|||||||
@ -10,11 +10,8 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
||||||
|
|||||||
@ -125,13 +125,13 @@ const word kinematicCloudName
|
|||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
||||||
kinematicTypeCloud kCloud
|
basicKinematicTypeCloud kinematicCloud
|
||||||
(
|
(
|
||||||
kinematicCloudName,
|
kinematicCloudName,
|
||||||
g,
|
|
||||||
rhoc,
|
rhoc,
|
||||||
Uc,
|
Uc,
|
||||||
muc
|
muc,
|
||||||
|
g
|
||||||
);
|
);
|
||||||
|
|
||||||
// Particle fraction upper limit
|
// Particle fraction upper limit
|
||||||
@ -139,13 +139,13 @@ scalar alphacMin
|
|||||||
(
|
(
|
||||||
1.0
|
1.0
|
||||||
- (
|
- (
|
||||||
kCloud.particleProperties().subDict("constantProperties")
|
kinematicCloud.particleProperties().subDict("constantProperties")
|
||||||
.get<scalar>("alphaMax")
|
.get<scalar>("alphaMax")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update alphac from the particle locations
|
// Update alphac from the particle locations
|
||||||
alphac = max(1.0 - kCloud.theta(), alphacMin);
|
alphac = max(1.0 - kinematicCloud.theta(), alphacMin);
|
||||||
alphac.correctBoundaryConditions();
|
alphac.correctBoundaryConditions();
|
||||||
|
|
||||||
surfaceScalarField alphacf("alphacf", fvc::interpolate(alphac));
|
surfaceScalarField alphacf("alphacf", fvc::interpolate(alphac));
|
||||||
|
|||||||
@ -6,6 +6,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
||||||
|
-I$(LIB_SRC)/lagrangian/coalCombustion/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||||
@ -34,6 +35,7 @@ EXE_LIBS = \
|
|||||||
-llagrangian \
|
-llagrangian \
|
||||||
-llagrangianIntermediate \
|
-llagrangianIntermediate \
|
||||||
-llagrangianTurbulence \
|
-llagrangianTurbulence \
|
||||||
|
-lcoalCombustion\
|
||||||
-lspecie \
|
-lspecie \
|
||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
-lfluidThermophysicalModels \
|
-lfluidThermophysicalModels \
|
||||||
|
|||||||
@ -37,8 +37,8 @@ Description
|
|||||||
|
|
||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
#include "thermoCloud.H"
|
#include "basicThermoCloud.H"
|
||||||
#include "reactingMultiphaseCloud.H"
|
#include "coalCloud.H"
|
||||||
#include "psiReactionThermo.H"
|
#include "psiReactionThermo.H"
|
||||||
#include "CombustionModel.H"
|
#include "CombustionModel.H"
|
||||||
#include "fvOptions.H"
|
#include "fvOptions.H"
|
||||||
|
|||||||
@ -1,19 +1,19 @@
|
|||||||
Info<< "\nConstructing coal cloud" << endl;
|
Info<< "\nConstructing coal cloud" << endl;
|
||||||
reactingMultiphaseCloud coalParcels
|
coalCloud coalParcels
|
||||||
(
|
(
|
||||||
"coalCloud1",
|
"coalCloud1",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
|
g,
|
||||||
slgThermo
|
slgThermo
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "\nConstructing limestone cloud" << endl;
|
Info<< "\nConstructing limestone cloud" << endl;
|
||||||
thermoCloud limestoneParcels
|
basicThermoCloud limestoneParcels
|
||||||
(
|
(
|
||||||
"limestoneCloud1",
|
"limestoneCloud1",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
|
g,
|
||||||
slgThermo
|
slgThermo
|
||||||
);
|
);
|
||||||
|
|||||||
@ -9,8 +9,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
|
|||||||
@ -63,13 +63,13 @@ const word kinematicCloudName
|
|||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
||||||
kinematicCollidingCloud kCloud
|
basicKinematicCollidingCloud kinematicCloud
|
||||||
(
|
(
|
||||||
kinematicCloudName,
|
kinematicCloudName,
|
||||||
g,
|
|
||||||
rhoInf,
|
rhoInf,
|
||||||
U,
|
U,
|
||||||
mu
|
mu,
|
||||||
|
g
|
||||||
);
|
);
|
||||||
|
|
||||||
IOobject Hheader
|
IOobject Hheader
|
||||||
|
|||||||
@ -10,8 +10,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
|
|||||||
@ -41,7 +41,7 @@ Description
|
|||||||
#include "dynamicFvMesh.H"
|
#include "dynamicFvMesh.H"
|
||||||
#include "singlePhaseTransportModel.H"
|
#include "singlePhaseTransportModel.H"
|
||||||
#include "turbulentTransportModel.H"
|
#include "turbulentTransportModel.H"
|
||||||
#include "kinematicCollidingCloud.H"
|
#include "basicKinematicCollidingCloud.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -76,19 +76,19 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
kCloud.storeGlobalPositions();
|
kinematicCloud.storeGlobalPositions();
|
||||||
|
|
||||||
mesh.update();
|
mesh.update();
|
||||||
|
|
||||||
U.correctBoundaryConditions();
|
U.correctBoundaryConditions();
|
||||||
|
|
||||||
Info<< "Evolving " << kCloud.name() << endl;
|
Info<< "Evolving " << kinematicCloud.name() << endl;
|
||||||
|
|
||||||
laminarTransport.correct();
|
laminarTransport.correct();
|
||||||
|
|
||||||
mu = laminarTransport.nu()*rhoInfValue;
|
mu = laminarTransport.nu()*rhoInfValue;
|
||||||
|
|
||||||
kCloud.evolve();
|
kinematicCloud.evolve();
|
||||||
|
|
||||||
runTime.write();
|
runTime.write();
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ Description
|
|||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "singlePhaseTransportModel.H"
|
#include "singlePhaseTransportModel.H"
|
||||||
#include "turbulentTransportModel.H"
|
#include "turbulentTransportModel.H"
|
||||||
#include "kinematicCollidingCloud.H"
|
#include "basicKinematicCollidingCloud.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -75,13 +75,13 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
Info<< "Evolving " << kCloud.name() << endl;
|
Info<< "Evolving " << kinematicCloud.name() << endl;
|
||||||
|
|
||||||
laminarTransport.correct();
|
laminarTransport.correct();
|
||||||
|
|
||||||
mu = laminarTransport.nu()*rhoInfValue;
|
mu = laminarTransport.nu()*rhoInfValue;
|
||||||
|
|
||||||
kCloud.evolve();
|
kinematicCloud.evolve();
|
||||||
|
|
||||||
runTime.write();
|
runTime.write();
|
||||||
|
|
||||||
|
|||||||
@ -8,12 +8,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
+ MRF.DDt(U)
|
+ MRF.DDt(U)
|
||||||
+ turbulence->divDevReff(U)
|
+ turbulence->divDevReff(U)
|
||||||
==
|
==
|
||||||
scalar(1)/rhoInfValue*parcels.SU(U)
|
parcels.SU(U, true)
|
||||||
+ fvOptions(U)
|
+ fvOptions(U)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -4,12 +4,13 @@ const word kinematicCloudName
|
|||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
||||||
kinematicCloud parcels
|
|
||||||
|
basicKinematicCloud parcels
|
||||||
(
|
(
|
||||||
kinematicCloudName,
|
kinematicCloudName,
|
||||||
g,
|
|
||||||
rhoInf,
|
rhoInf,
|
||||||
U,
|
U,
|
||||||
muc
|
muc,
|
||||||
|
g
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ Description
|
|||||||
#include "singlePhaseTransportModel.H"
|
#include "singlePhaseTransportModel.H"
|
||||||
#include "turbulentTransportModel.H"
|
#include "turbulentTransportModel.H"
|
||||||
#include "surfaceFilmModel.H"
|
#include "surfaceFilmModel.H"
|
||||||
#include "kinematicCloud.H"
|
#include "basicKinematicCloud.H"
|
||||||
#include "fvOptions.H"
|
#include "fvOptions.H"
|
||||||
#include "pimpleControl.H"
|
#include "pimpleControl.H"
|
||||||
#include "CorrectPhi.H"
|
#include "CorrectPhi.H"
|
||||||
@ -67,6 +67,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createDyMControls.H"
|
#include "createDyMControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createFieldRefs.H"
|
#include "createFieldRefs.H"
|
||||||
|
#include "createRegionControls.H"
|
||||||
#include "createUfIfPresent.H"
|
#include "createUfIfPresent.H"
|
||||||
|
|
||||||
turbulence->validate();
|
turbulence->validate();
|
||||||
@ -94,7 +95,7 @@ int main(int argc, char *argv[])
|
|||||||
// Do any mesh changes
|
// Do any mesh changes
|
||||||
mesh.update();
|
mesh.update();
|
||||||
|
|
||||||
if (pimple.solveFlow() && mesh.changing())
|
if (solvePrimaryRegion && mesh.changing())
|
||||||
{
|
{
|
||||||
MRF.update();
|
MRF.update();
|
||||||
|
|
||||||
@ -119,7 +120,7 @@ int main(int argc, char *argv[])
|
|||||||
parcels.evolve();
|
parcels.evolve();
|
||||||
surfaceFilm.evolve();
|
surfaceFilm.evolve();
|
||||||
|
|
||||||
if (pimple.solveFlow())
|
if (solvePrimaryRegion)
|
||||||
{
|
{
|
||||||
// --- PIMPLE loop
|
// --- PIMPLE loop
|
||||||
while (pimple.loop())
|
while (pimple.loop())
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
parcelFoam.C
|
|
||||||
|
|
||||||
EXE = $(FOAM_USER_APPBIN)/parcelFoam
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
MRF.correctBoundaryVelocity(U);
|
|
||||||
|
|
||||||
fvVectorMatrix UEqn
|
|
||||||
(
|
|
||||||
fvm::ddt(U) + fvm::div(phi, U)
|
|
||||||
+ MRF.DDt(U)
|
|
||||||
+ turbulence->divDevReff(U)
|
|
||||||
==
|
|
||||||
scalar(1)/rhoInfValue*parcels.SU(U)
|
|
||||||
+ fvOptions(U)
|
|
||||||
);
|
|
||||||
|
|
||||||
UEqn.relax();
|
|
||||||
|
|
||||||
fvOptions.constrain(UEqn);
|
|
||||||
|
|
||||||
if (pimple.momentumPredictor())
|
|
||||||
{
|
|
||||||
solve(UEqn == -fvc::grad(p));
|
|
||||||
|
|
||||||
fvOptions.correct(U);
|
|
||||||
}
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
auto parcels = parcelCloudModelList(g, rhoInf, U, muc);
|
|
||||||
|
|
||||||
@ -1 +0,0 @@
|
|||||||
regionModels::surfaceFilmModel& surfaceFilm = tsurfaceFilm();
|
|
||||||
@ -1,85 +0,0 @@
|
|||||||
#include "readGravitationalAcceleration.H"
|
|
||||||
|
|
||||||
Info<< "Reading field p\n" << endl;
|
|
||||||
volScalarField p
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"p",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "\nReading field U\n" << endl;
|
|
||||||
volVectorField U
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"U",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "createPhi.H"
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
|
||||||
|
|
||||||
dimensionedScalar rhoInfValue
|
|
||||||
(
|
|
||||||
"rhoInf",
|
|
||||||
dimDensity,
|
|
||||||
laminarTransport
|
|
||||||
);
|
|
||||||
|
|
||||||
volScalarField rhoInf
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"rho",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
),
|
|
||||||
mesh,
|
|
||||||
rhoInfValue
|
|
||||||
);
|
|
||||||
|
|
||||||
volScalarField muc
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"muc",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
),
|
|
||||||
rhoInf*laminarTransport.nu()
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
|
||||||
autoPtr<incompressible::turbulenceModel> turbulence
|
|
||||||
(
|
|
||||||
incompressible::turbulenceModel::New(U, phi, laminarTransport)
|
|
||||||
);
|
|
||||||
|
|
||||||
label pRefCell = 0;
|
|
||||||
scalar pRefValue = 0.0;
|
|
||||||
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
|
||||||
mesh.setFluxRequired(p.name());
|
|
||||||
|
|
||||||
#include "createMRF.H"
|
|
||||||
#include "createClouds.H"
|
|
||||||
#include "createSurfaceFilmModel.H"
|
|
||||||
#include "createFvOptions.H"
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,58 +0,0 @@
|
|||||||
|
|
||||||
volScalarField rAU(1.0/UEqn.A());
|
|
||||||
volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p));
|
|
||||||
|
|
||||||
surfaceScalarField phiHbyA("phiHbyA", fvc::flux(HbyA));
|
|
||||||
|
|
||||||
if (pimple.ddtCorr())
|
|
||||||
{
|
|
||||||
phiHbyA += MRF.zeroFilter(fvc::interpolate(rAU)*fvc::ddtCorr(U, phi, Uf));
|
|
||||||
}
|
|
||||||
|
|
||||||
MRF.makeRelative(phiHbyA);
|
|
||||||
|
|
||||||
if (p.needReference())
|
|
||||||
{
|
|
||||||
fvc::makeRelative(phiHbyA, U);
|
|
||||||
adjustPhi(phiHbyA, U, p);
|
|
||||||
fvc::makeAbsolute(phiHbyA, U);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Update the pressure BCs to ensure flux consistency
|
|
||||||
constrainPressure(p, U, phiHbyA, rAU, MRF);
|
|
||||||
|
|
||||||
// Non-orthogonal pressure corrector loop
|
|
||||||
while (pimple.correctNonOrthogonal())
|
|
||||||
{
|
|
||||||
fvScalarMatrix pEqn
|
|
||||||
(
|
|
||||||
fvm::laplacian(rAU, p)
|
|
||||||
==
|
|
||||||
fvc::div(phiHbyA)
|
|
||||||
);
|
|
||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
|
||||||
|
|
||||||
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
|
||||||
{
|
|
||||||
phi = phiHbyA - pEqn.flux();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#include "continuityErrs.H"
|
|
||||||
|
|
||||||
p.relax();
|
|
||||||
|
|
||||||
U = HbyA - rAU*fvc::grad(p);
|
|
||||||
U.correctBoundaryConditions();
|
|
||||||
fvOptions.correct(U);
|
|
||||||
|
|
||||||
// Correct rhoUf if the mesh is moving
|
|
||||||
fvc::correctUf(Uf, U, phi);
|
|
||||||
|
|
||||||
// Make the fluxes relative to the mesh motion
|
|
||||||
fvc::makeRelative(phi, U);
|
|
||||||
|
|
||||||
@ -1,154 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | www.openfoam.com
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Copyright (C) 2021 OpenCFD Ltd.
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM 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.
|
|
||||||
|
|
||||||
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Application
|
|
||||||
parcelFoam
|
|
||||||
|
|
||||||
Group
|
|
||||||
grpLagrangianSolvers
|
|
||||||
|
|
||||||
Description
|
|
||||||
Transient solver for incompressible, turbulent flow with kinematic,
|
|
||||||
particle cloud, and surface film modelling.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "fvCFD.H"
|
|
||||||
#include "dynamicFvMesh.H"
|
|
||||||
#include "singlePhaseTransportModel.H"
|
|
||||||
#include "turbulentTransportModel.H"
|
|
||||||
#include "surfaceFilmModel.H"
|
|
||||||
#include "parcelCloudModelList.H"
|
|
||||||
#include "fvOptions.H"
|
|
||||||
#include "pimpleControl.H"
|
|
||||||
#include "CorrectPhi.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
argList::addNote
|
|
||||||
(
|
|
||||||
"Transient solver for incompressible, turbulent flow"
|
|
||||||
" with kinematic particle clouds"
|
|
||||||
" and surface film modelling."
|
|
||||||
);
|
|
||||||
|
|
||||||
#define CREATE_MESH createMeshesPostProcess.H
|
|
||||||
#include "postProcess.H"
|
|
||||||
|
|
||||||
#include "addCheckCaseOptions.H"
|
|
||||||
#include "setRootCaseLists.H"
|
|
||||||
#include "createTime.H"
|
|
||||||
#include "createDynamicFvMesh.H"
|
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
#include "createDyMControls.H"
|
|
||||||
#include "createFields.H"
|
|
||||||
#include "createFieldRefs.H"
|
|
||||||
#include "createUfIfPresent.H"
|
|
||||||
|
|
||||||
turbulence->validate();
|
|
||||||
|
|
||||||
#include "CourantNo.H"
|
|
||||||
#include "setInitialDeltaT.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
|
||||||
|
|
||||||
while (runTime.run())
|
|
||||||
{
|
|
||||||
#include "readDyMControls.H"
|
|
||||||
#include "CourantNo.H"
|
|
||||||
#include "setMultiRegionDeltaT.H"
|
|
||||||
|
|
||||||
++runTime;
|
|
||||||
|
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
|
||||||
|
|
||||||
// Store the particle positions
|
|
||||||
parcels.storeGlobalPositions();
|
|
||||||
|
|
||||||
// Do any mesh changes
|
|
||||||
mesh.update();
|
|
||||||
|
|
||||||
if (pimple.solveFlow() && mesh.changing())
|
|
||||||
{
|
|
||||||
MRF.update();
|
|
||||||
|
|
||||||
if (correctPhi)
|
|
||||||
{
|
|
||||||
// Calculate absolute flux
|
|
||||||
// from the mapped surface velocity
|
|
||||||
phi = mesh.Sf() & Uf();
|
|
||||||
|
|
||||||
#include "../../incompressible/pimpleFoam/correctPhi.H"
|
|
||||||
|
|
||||||
// Make the fluxes relative to the mesh-motion
|
|
||||||
fvc::makeRelative(phi, U);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (checkMeshCourantNo)
|
|
||||||
{
|
|
||||||
#include "meshCourantNo.H"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
parcels.evolve();
|
|
||||||
surfaceFilm.evolve();
|
|
||||||
|
|
||||||
if (pimple.solveFlow())
|
|
||||||
{
|
|
||||||
// --- PIMPLE loop
|
|
||||||
while (pimple.loop())
|
|
||||||
{
|
|
||||||
#include "UEqn.H"
|
|
||||||
|
|
||||||
// --- Pressure corrector loop
|
|
||||||
while (pimple.correct())
|
|
||||||
{
|
|
||||||
#include "pEqn.H"
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pimple.turbCorr())
|
|
||||||
{
|
|
||||||
laminarTransport.correct();
|
|
||||||
turbulence->correct();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
runTime.write();
|
|
||||||
|
|
||||||
runTime.printExecutionTime(Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "End\n" << endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,9 +1,9 @@
|
|||||||
Info<< "\nConstructing reacting cloud" << endl;
|
Info<< "\nConstructing reacting cloud" << endl;
|
||||||
reactingTypeCloud parcels
|
basicReactingTypeCloud parcels
|
||||||
(
|
(
|
||||||
"reactingCloud1",
|
"reactingCloud1",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
|
g,
|
||||||
slgThermo
|
slgThermo
|
||||||
);
|
);
|
||||||
|
|||||||
@ -37,8 +37,8 @@ Description
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#define CLOUD_BASE_TYPE heterogeneousReacting
|
#define CLOUD_BASE_TYPE HeterogeneousReacting
|
||||||
#define CLOUD_BASE_TYPE_NAME "heterogeneousReacting"
|
#define CLOUD_BASE_TYPE_NAME "HeterogeneousReacting"
|
||||||
|
|
||||||
#include "reactingParcelFoam.C"
|
#include "reactingParcelFoam.C"
|
||||||
|
|
||||||
|
|||||||
@ -53,12 +53,12 @@ Description
|
|||||||
#include "cloudMacros.H"
|
#include "cloudMacros.H"
|
||||||
|
|
||||||
#ifndef CLOUD_BASE_TYPE
|
#ifndef CLOUD_BASE_TYPE
|
||||||
#define CLOUD_BASE_TYPE reactingMultiphase
|
#define CLOUD_BASE_TYPE ReactingMultiphase
|
||||||
#define CLOUD_BASE_TYPE_NAME "reacting"
|
#define CLOUD_BASE_TYPE_NAME "reacting"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include CLOUD_INCLUDE_FILE(CLOUD_BASE_TYPE)
|
#include CLOUD_INCLUDE_FILE(CLOUD_BASE_TYPE)
|
||||||
#define reactingTypeCloud CLOUD_TYPE(CLOUD_BASE_TYPE)
|
#define basicReactingTypeCloud CLOUD_TYPE(CLOUD_BASE_TYPE)
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -81,6 +81,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createDyMControls.H"
|
#include "createDyMControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createFieldRefs.H"
|
#include "createFieldRefs.H"
|
||||||
|
#include "createRegionControls.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createRhoUfIfPresent.H"
|
#include "createRhoUfIfPresent.H"
|
||||||
|
|
||||||
@ -104,7 +105,7 @@ int main(int argc, char *argv[])
|
|||||||
// so that it can be mapped and used in correctPhi
|
// so that it can be mapped and used in correctPhi
|
||||||
// to ensure the corrected phi has the same divergence
|
// to ensure the corrected phi has the same divergence
|
||||||
autoPtr<volScalarField> divrhoU;
|
autoPtr<volScalarField> divrhoU;
|
||||||
if (pimple.solveFlow() && correctPhi)
|
if (solvePrimaryRegion && correctPhi)
|
||||||
{
|
{
|
||||||
divrhoU.reset
|
divrhoU.reset
|
||||||
(
|
(
|
||||||
@ -132,7 +133,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Store momentum to set rhoUf for introduced faces.
|
// Store momentum to set rhoUf for introduced faces.
|
||||||
autoPtr<volVectorField> rhoU;
|
autoPtr<volVectorField> rhoU;
|
||||||
if (pimple.solveFlow() && rhoUf.valid())
|
if (solvePrimaryRegion && rhoUf.valid())
|
||||||
{
|
{
|
||||||
rhoU.reset(new volVectorField("rhoU", rho*U));
|
rhoU.reset(new volVectorField("rhoU", rho*U));
|
||||||
}
|
}
|
||||||
@ -143,7 +144,7 @@ int main(int argc, char *argv[])
|
|||||||
// Do any mesh changes
|
// Do any mesh changes
|
||||||
mesh.update();
|
mesh.update();
|
||||||
|
|
||||||
if (pimple.solveFlow() && mesh.changing())
|
if (solvePrimaryRegion && mesh.changing())
|
||||||
{
|
{
|
||||||
gh = (g & mesh.C()) - ghRef;
|
gh = (g & mesh.C()) - ghRef;
|
||||||
ghf = (g & mesh.Cf()) - ghRef;
|
ghf = (g & mesh.Cf()) - ghRef;
|
||||||
@ -171,7 +172,7 @@ int main(int argc, char *argv[])
|
|||||||
parcels.evolve();
|
parcels.evolve();
|
||||||
surfaceFilm.evolve();
|
surfaceFilm.evolve();
|
||||||
|
|
||||||
if (pimple.solveFlow())
|
if (solvePrimaryRegion)
|
||||||
{
|
{
|
||||||
if (pimple.nCorrPIMPLE() <= 1)
|
if (pimple.nCorrPIMPLE() <= 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -7,6 +7,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
||||||
|
-I$(LIB_SRC)/lagrangian/coalCombustion/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
Info<< "\nConstructing " << CLOUD_BASE_TYPE_NAME << " cloud" << endl;
|
Info<< "\nConstructing " << CLOUD_BASE_TYPE_NAME << " cloud" << endl;
|
||||||
reactingTypeCloud parcels
|
basicReactingTypeCloud parcels
|
||||||
(
|
(
|
||||||
word(CLOUD_BASE_TYPE_NAME) & "Cloud1",
|
word(CLOUD_BASE_TYPE_NAME) & "Cloud1",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
|
g,
|
||||||
slgThermo
|
slgThermo
|
||||||
);
|
);
|
||||||
|
|||||||
@ -45,13 +45,13 @@ Description
|
|||||||
#include "cloudMacros.H"
|
#include "cloudMacros.H"
|
||||||
|
|
||||||
#ifndef CLOUD_BASE_TYPE
|
#ifndef CLOUD_BASE_TYPE
|
||||||
#define CLOUD_BASE_TYPE reactingMultiphase
|
#define CLOUD_BASE_TYPE ReactingMultiphase
|
||||||
//#define CLOUD_BASE_TYPE_NAME "reactingMultiphase" Backwards compat
|
//#define CLOUD_BASE_TYPE_NAME "reactingMultiphase" Backwards compat
|
||||||
#define CLOUD_BASE_TYPE_NAME "reacting"
|
#define CLOUD_BASE_TYPE_NAME "reacting"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include CLOUD_INCLUDE_FILE(CLOUD_BASE_TYPE)
|
#include CLOUD_INCLUDE_FILE(CLOUD_BASE_TYPE)
|
||||||
#define reactingTypeCloud CLOUD_TYPE(CLOUD_BASE_TYPE)
|
#define basicReactingTypeCloud CLOUD_TYPE(CLOUD_BASE_TYPE)
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
volScalarField& he = thermo.he();
|
|
||||||
|
|
||||||
fvScalarMatrix EEqn
|
|
||||||
(
|
|
||||||
fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he)
|
|
||||||
+ fvc::ddt(rho, K) + fvc::div(phi, K)
|
|
||||||
+ (
|
|
||||||
he.name() == "e"
|
|
||||||
? fvc::div
|
|
||||||
(
|
|
||||||
fvc::absolute(phi/fvc::interpolate(rho), U),
|
|
||||||
p,
|
|
||||||
"div(phiv,p)"
|
|
||||||
)
|
|
||||||
: -dpdt
|
|
||||||
)
|
|
||||||
- fvm::laplacian(turbulence->alphaEff(), he)
|
|
||||||
==
|
|
||||||
rho*(U&g)
|
|
||||||
+ parcels.Sh(he)
|
|
||||||
+ surfaceFilm.Sh()
|
|
||||||
+ radiation->Sh(thermo, he)
|
|
||||||
+ Qdot
|
|
||||||
+ fvOptions(rho, he)
|
|
||||||
);
|
|
||||||
|
|
||||||
EEqn.relax();
|
|
||||||
|
|
||||||
fvOptions.constrain(EEqn);
|
|
||||||
|
|
||||||
EEqn.solve();
|
|
||||||
|
|
||||||
fvOptions.correct(he);
|
|
||||||
|
|
||||||
thermo.correct();
|
|
||||||
radiation->correct();
|
|
||||||
|
|
||||||
Info<< "T gas min/max = " << min(T).value() << ", "
|
|
||||||
<< max(T).value() << endl;
|
|
||||||
}
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
rhoParcelFoam.C
|
|
||||||
|
|
||||||
EXE = $(FOAM_USER_APPBIN)/rhoParcelFoam
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
MRF.correctBoundaryVelocity(U);
|
|
||||||
|
|
||||||
fvVectorMatrix UEqn
|
|
||||||
(
|
|
||||||
fvm::ddt(rho, U) + fvm::div(phi, U)
|
|
||||||
+ MRF.DDt(rho, U)
|
|
||||||
+ turbulence->divDevRhoReff(U)
|
|
||||||
==
|
|
||||||
parcels.SU(U)
|
|
||||||
+ fvOptions(rho, U)
|
|
||||||
);
|
|
||||||
|
|
||||||
UEqn.relax();
|
|
||||||
|
|
||||||
fvOptions.constrain(UEqn);
|
|
||||||
|
|
||||||
if (pimple.momentumPredictor())
|
|
||||||
{
|
|
||||||
solve
|
|
||||||
(
|
|
||||||
UEqn
|
|
||||||
==
|
|
||||||
fvc::reconstruct
|
|
||||||
(
|
|
||||||
(
|
|
||||||
- ghf*fvc::snGrad(rho)
|
|
||||||
- fvc::snGrad(p_rgh)
|
|
||||||
)*mesh.magSf()
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
fvOptions.correct(U);
|
|
||||||
K = 0.5*magSqr(U);
|
|
||||||
}
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
tmp<fv::convectionScheme<scalar>> mvConvection
|
|
||||||
(
|
|
||||||
fv::convectionScheme<scalar>::New
|
|
||||||
(
|
|
||||||
mesh,
|
|
||||||
fields,
|
|
||||||
phi,
|
|
||||||
mesh.divScheme("div(phi,Yi_h)")
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
combustion->correct();
|
|
||||||
Qdot = combustion->Qdot();
|
|
||||||
volScalarField Yt(0.0*Y[0]);
|
|
||||||
|
|
||||||
forAll(Y, i)
|
|
||||||
{
|
|
||||||
if (i != inertIndex && composition.active(i))
|
|
||||||
{
|
|
||||||
volScalarField& Yi = Y[i];
|
|
||||||
|
|
||||||
fvScalarMatrix YEqn
|
|
||||||
(
|
|
||||||
fvm::ddt(rho, Yi)
|
|
||||||
+ mvConvection->fvmDiv(phi, Yi)
|
|
||||||
- fvm::laplacian(turbulence->muEff(), Yi)
|
|
||||||
==
|
|
||||||
parcels.SYi(i, Yi)
|
|
||||||
+ fvOptions(rho, Yi)
|
|
||||||
+ combustion->R(Yi)
|
|
||||||
+ surfaceFilm.Srho(i)
|
|
||||||
);
|
|
||||||
|
|
||||||
YEqn.relax();
|
|
||||||
|
|
||||||
fvOptions.constrain(YEqn);
|
|
||||||
|
|
||||||
YEqn.solve(mesh.solver("Yi"));
|
|
||||||
|
|
||||||
fvOptions.correct(Yi);
|
|
||||||
|
|
||||||
Yi.max(0.0);
|
|
||||||
Yt += Yi;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Y[inertIndex] = scalar(1) - Yt;
|
|
||||||
Y[inertIndex].max(0.0);
|
|
||||||
}
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
Info<< "\nConstructing cloud" << endl;
|
|
||||||
|
|
||||||
auto parcels = parcelCloudModelList(g, rho, U, slgThermo);
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
const volScalarField& T = thermo.T();
|
|
||||||
const volScalarField& psi = thermo.psi();
|
|
||||||
const label inertIndex(composition.species().find(inertSpecie));
|
|
||||||
|
|
||||||
regionModels::surfaceFilmModel& surfaceFilm = tsurfaceFilm();
|
|
||||||
@ -1,132 +0,0 @@
|
|||||||
#include "createRDeltaT.H"
|
|
||||||
|
|
||||||
Info<< "Reading thermophysical properties\n" << endl;
|
|
||||||
autoPtr<rhoReactionThermo> pThermo(rhoReactionThermo::New(mesh));
|
|
||||||
rhoReactionThermo& thermo = pThermo();
|
|
||||||
thermo.validate(args.executable(), "h", "e");
|
|
||||||
|
|
||||||
SLGThermo slgThermo(mesh, thermo);
|
|
||||||
|
|
||||||
basicSpecieMixture& composition = thermo.composition();
|
|
||||||
PtrList<volScalarField>& Y = composition.Y();
|
|
||||||
|
|
||||||
const word inertSpecie(thermo.get<word>("inertSpecie"));
|
|
||||||
if
|
|
||||||
(
|
|
||||||
!composition.species().found(inertSpecie)
|
|
||||||
&& composition.species().size() > 0
|
|
||||||
)
|
|
||||||
{
|
|
||||||
FatalIOErrorIn(args.executable().c_str(), thermo)
|
|
||||||
<< "Inert specie " << inertSpecie << " not found in available species "
|
|
||||||
<< composition.species()
|
|
||||||
<< exit(FatalIOError);
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "Creating field rho\n" << endl;
|
|
||||||
volScalarField rho
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"rho",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
thermo.rho()
|
|
||||||
);
|
|
||||||
|
|
||||||
volScalarField& p = thermo.p();
|
|
||||||
|
|
||||||
Info<< "\nReading field U\n" << endl;
|
|
||||||
volVectorField U
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"U",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
|
||||||
(
|
|
||||||
compressible::turbulenceModel::New
|
|
||||||
(
|
|
||||||
rho,
|
|
||||||
U,
|
|
||||||
phi,
|
|
||||||
thermo
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Creating combustion model\n" << endl;
|
|
||||||
autoPtr<CombustionModel<rhoReactionThermo>> combustion
|
|
||||||
(
|
|
||||||
CombustionModel<rhoReactionThermo>::New(thermo, turbulence())
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "readGravitationalAcceleration.H"
|
|
||||||
#include "readhRef.H"
|
|
||||||
#include "gh.H"
|
|
||||||
|
|
||||||
|
|
||||||
volScalarField p_rgh
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"p_rgh",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
// Force p_rgh to be consistent with p
|
|
||||||
p_rgh = p - rho*gh;
|
|
||||||
|
|
||||||
pressureControl pressureControl(p, rho, pimple.dict(), false);
|
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
|
||||||
|
|
||||||
Info<< "Creating multi-variate interpolation scheme\n" << endl;
|
|
||||||
multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
|
|
||||||
|
|
||||||
forAll(Y, i)
|
|
||||||
{
|
|
||||||
fields.add(Y[i]);
|
|
||||||
}
|
|
||||||
fields.add(thermo.he());
|
|
||||||
|
|
||||||
volScalarField Qdot
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"Qdot",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::READ_IF_PRESENT,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh,
|
|
||||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "createDpdt.H"
|
|
||||||
|
|
||||||
#include "createK.H"
|
|
||||||
|
|
||||||
#include "createMRF.H"
|
|
||||||
#include "createRadiationModel.H"
|
|
||||||
#include "createClouds.H"
|
|
||||||
#include "createSurfaceFilmModel.H"
|
|
||||||
#include "createFvOptions.H"
|
|
||||||
@ -1,35 +0,0 @@
|
|||||||
#include "createMesh.H"
|
|
||||||
|
|
||||||
dictionary filmDict;
|
|
||||||
|
|
||||||
IOobject io
|
|
||||||
(
|
|
||||||
"surfaceFilmProperties",
|
|
||||||
mesh.time().constant(),
|
|
||||||
mesh,
|
|
||||||
IOobject::READ_IF_PRESENT,
|
|
||||||
IOobject::NO_WRITE,
|
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
if (io.typeHeaderOk<IOdictionary>())
|
|
||||||
{
|
|
||||||
IOdictionary propDict(io);
|
|
||||||
|
|
||||||
filmDict = std::move(propDict);
|
|
||||||
|
|
||||||
const word filmRegionName = filmDict.get<word>("region");
|
|
||||||
|
|
||||||
fvMesh filmMesh
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
filmRegionName,
|
|
||||||
runTime.timeName(),
|
|
||||||
runTime,
|
|
||||||
IOobject::MUST_READ
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
Info<< "\nConstructing surface film model" << endl;
|
|
||||||
|
|
||||||
autoPtr<regionModels::surfaceFilmModel> tsurfaceFilm
|
|
||||||
(
|
|
||||||
regionModels::surfaceFilmModel::New(mesh, g)
|
|
||||||
);
|
|
||||||
@ -1,96 +0,0 @@
|
|||||||
if (!pimple.SIMPLErho())
|
|
||||||
{
|
|
||||||
rho = thermo.rho();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Thermodynamic density needs to be updated by psi*d(p) after the
|
|
||||||
// pressure solution
|
|
||||||
const volScalarField psip0(psi*p);
|
|
||||||
|
|
||||||
volScalarField rAU(1.0/UEqn.A());
|
|
||||||
surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho*rAU));
|
|
||||||
volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p));
|
|
||||||
|
|
||||||
surfaceScalarField phig(-rhorAUf*ghf*fvc::snGrad(rho)*mesh.magSf());
|
|
||||||
|
|
||||||
surfaceScalarField phiHbyA
|
|
||||||
(
|
|
||||||
"phiHbyA",
|
|
||||||
(
|
|
||||||
fvc::flux(rho*HbyA)
|
|
||||||
+ MRF.zeroFilter(rhorAUf*fvc::ddtCorr(rho, U, phi))
|
|
||||||
)
|
|
||||||
+ phig
|
|
||||||
);
|
|
||||||
|
|
||||||
fvc::makeRelative(phiHbyA, rho, U);
|
|
||||||
MRF.makeRelative(fvc::interpolate(rho), phiHbyA);
|
|
||||||
|
|
||||||
// Update the pressure BCs to ensure flux consistency
|
|
||||||
constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF);
|
|
||||||
|
|
||||||
fvScalarMatrix p_rghDDtEqn
|
|
||||||
(
|
|
||||||
fvc::ddt(rho) + psi*correction(fvm::ddt(p_rgh))
|
|
||||||
+ fvc::div(phiHbyA)
|
|
||||||
==
|
|
||||||
parcels.Srho()
|
|
||||||
+ surfaceFilm.Srho()
|
|
||||||
+ fvOptions(psi, p_rgh, rho.name())
|
|
||||||
);
|
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
|
||||||
{
|
|
||||||
fvScalarMatrix p_rghEqn
|
|
||||||
(
|
|
||||||
p_rghDDtEqn
|
|
||||||
- fvm::laplacian(rhorAUf, p_rgh)
|
|
||||||
);
|
|
||||||
|
|
||||||
p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));
|
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
|
||||||
{
|
|
||||||
phi = phiHbyA + p_rghEqn.flux();
|
|
||||||
|
|
||||||
// Explicitly relax pressure for momentum corrector
|
|
||||||
p_rgh.relax();
|
|
||||||
|
|
||||||
U = HbyA + rAU*fvc::reconstruct((p_rghEqn.flux() + phig)/rhorAUf);
|
|
||||||
U.correctBoundaryConditions();
|
|
||||||
fvOptions.correct(U);
|
|
||||||
K = 0.5*magSqr(U);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
p = p_rgh + rho*gh;
|
|
||||||
|
|
||||||
// Thermodynamic density update
|
|
||||||
thermo.correctRho(psi*p - psip0);
|
|
||||||
|
|
||||||
#include "rhoEqn.H"
|
|
||||||
#include "compressibleContinuityErrs.H"
|
|
||||||
|
|
||||||
if (pressureControl.limit(p))
|
|
||||||
{
|
|
||||||
p.correctBoundaryConditions();
|
|
||||||
rho = thermo.rho();
|
|
||||||
p_rgh = p - rho*gh;
|
|
||||||
}
|
|
||||||
else if (pimple.SIMPLErho())
|
|
||||||
{
|
|
||||||
rho = thermo.rho();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Correct rhoUf if the mesh is moving
|
|
||||||
fvc::correctRhoUf(rhoUf, rho, U, phi);
|
|
||||||
|
|
||||||
if (thermo.dpdt())
|
|
||||||
{
|
|
||||||
dpdt = fvc::ddt(p);
|
|
||||||
|
|
||||||
if (mesh.moving())
|
|
||||||
{
|
|
||||||
dpdt -= fvc::div(fvc::meshPhi(rho, U), p);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | www.openfoam.com
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM 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.
|
|
||||||
|
|
||||||
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Global
|
|
||||||
rhoEqn
|
|
||||||
|
|
||||||
Description
|
|
||||||
Solve the continuity for density.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
{
|
|
||||||
fvScalarMatrix rhoEqn
|
|
||||||
(
|
|
||||||
fvm::ddt(rho)
|
|
||||||
+ fvc::div(phi)
|
|
||||||
==
|
|
||||||
parcels.Srho(rho)
|
|
||||||
+ surfaceFilm.Srho()
|
|
||||||
+ fvOptions(rho)
|
|
||||||
);
|
|
||||||
|
|
||||||
rhoEqn.solve();
|
|
||||||
|
|
||||||
fvOptions.correct(rho);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,206 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | www.openfoam.com
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Copyright (C) 2011-2020 OpenFOAM Foundation
|
|
||||||
Copyright (C) 2018-2020 OpenCFD Ltd.
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM 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.
|
|
||||||
|
|
||||||
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Application
|
|
||||||
rhoParcelFoam
|
|
||||||
|
|
||||||
Group
|
|
||||||
grpLagrangianSolvers
|
|
||||||
|
|
||||||
Description
|
|
||||||
Transient solver for compressible, turbulent flow with a reacting,
|
|
||||||
multiphase particle cloud, and surface film modelling.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "fvCFD.H"
|
|
||||||
#include "dynamicFvMesh.H"
|
|
||||||
#include "turbulentFluidThermoModel.H"
|
|
||||||
#include "surfaceFilmModel.H"
|
|
||||||
#include "rhoReactionThermo.H"
|
|
||||||
#include "CombustionModel.H"
|
|
||||||
#include "radiationModel.H"
|
|
||||||
#include "SLGThermo.H"
|
|
||||||
#include "fvOptions.H"
|
|
||||||
#include "pimpleControl.H"
|
|
||||||
#include "pressureControl.H"
|
|
||||||
#include "CorrectPhi.H"
|
|
||||||
#include "localEulerDdtScheme.H"
|
|
||||||
#include "fvcSmooth.H"
|
|
||||||
|
|
||||||
#include "parcelCloudModelList.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
argList::addNote
|
|
||||||
(
|
|
||||||
"Transient solver for compressible, turbulent flow"
|
|
||||||
" with lagrangian parcel clouds and surface film modelling."
|
|
||||||
);
|
|
||||||
|
|
||||||
#define CREATE_MESH createMeshesPostProcess.H
|
|
||||||
#include "postProcess.H"
|
|
||||||
|
|
||||||
#include "addCheckCaseOptions.H"
|
|
||||||
#include "setRootCaseLists.H"
|
|
||||||
#include "createTime.H"
|
|
||||||
#include "createDynamicFvMesh.H"
|
|
||||||
#include "createDyMControls.H"
|
|
||||||
#include "createFields.H"
|
|
||||||
#include "createFieldRefs.H"
|
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
#include "createRhoUfIfPresent.H"
|
|
||||||
|
|
||||||
turbulence->validate();
|
|
||||||
|
|
||||||
if (!LTS)
|
|
||||||
{
|
|
||||||
#include "compressibleCourantNo.H"
|
|
||||||
#include "setInitialDeltaT.H"
|
|
||||||
}
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
|
||||||
|
|
||||||
while (runTime.run())
|
|
||||||
{
|
|
||||||
#include "readDyMControls.H"
|
|
||||||
|
|
||||||
// Store divrhoU from the previous mesh
|
|
||||||
// so that it can be mapped and used in correctPhi
|
|
||||||
// to ensure the corrected phi has the same divergence
|
|
||||||
autoPtr<volScalarField> divrhoU;
|
|
||||||
if (pimple.solveFlow() && correctPhi)
|
|
||||||
{
|
|
||||||
divrhoU.reset
|
|
||||||
(
|
|
||||||
new volScalarField
|
|
||||||
(
|
|
||||||
"divrhoU",
|
|
||||||
fvc::div(fvc::absolute(phi, rho, U))
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (LTS)
|
|
||||||
{
|
|
||||||
#include "setRDeltaT.H"
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
#include "compressibleCourantNo.H"
|
|
||||||
#include "setMultiRegionDeltaT.H"
|
|
||||||
}
|
|
||||||
|
|
||||||
++runTime;
|
|
||||||
|
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
|
||||||
|
|
||||||
// Store momentum to set rhoUf for introduced faces.
|
|
||||||
autoPtr<volVectorField> rhoU;
|
|
||||||
if (pimple.solveFlow() && rhoUf.valid())
|
|
||||||
{
|
|
||||||
rhoU.reset(new volVectorField("rhoU", rho*U));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Store the particle positions
|
|
||||||
parcels.storeGlobalPositions();
|
|
||||||
|
|
||||||
// Do any mesh changes
|
|
||||||
mesh.update();
|
|
||||||
|
|
||||||
if (pimple.solveFlow() && mesh.changing())
|
|
||||||
{
|
|
||||||
gh = (g & mesh.C()) - ghRef;
|
|
||||||
ghf = (g & mesh.Cf()) - ghRef;
|
|
||||||
|
|
||||||
MRF.update();
|
|
||||||
|
|
||||||
if (correctPhi)
|
|
||||||
{
|
|
||||||
// Calculate absolute flux
|
|
||||||
// from the mapped surface velocity
|
|
||||||
phi = mesh.Sf() & rhoUf();
|
|
||||||
|
|
||||||
#include "../../compressible/rhoPimpleFoam/correctPhi.H"
|
|
||||||
|
|
||||||
// Make the fluxes relative to the mesh-motion
|
|
||||||
fvc::makeRelative(phi, rho, U);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (checkMeshCourantNo)
|
|
||||||
{
|
|
||||||
#include "meshCourantNo.H"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
parcels.evolve();
|
|
||||||
surfaceFilm.evolve();
|
|
||||||
|
|
||||||
if (pimple.solveFlow())
|
|
||||||
{
|
|
||||||
if (pimple.nCorrPIMPLE() <= 1)
|
|
||||||
{
|
|
||||||
#include "rhoEqn.H"
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- PIMPLE loop
|
|
||||||
while (pimple.loop())
|
|
||||||
{
|
|
||||||
#include "UEqn.H"
|
|
||||||
#include "YEqn.H"
|
|
||||||
#include "EEqn.H"
|
|
||||||
|
|
||||||
// --- Pressure corrector loop
|
|
||||||
while (pimple.correct())
|
|
||||||
{
|
|
||||||
#include "pEqn.H"
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pimple.turbCorr())
|
|
||||||
{
|
|
||||||
turbulence->correct();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rho = thermo.rho();
|
|
||||||
}
|
|
||||||
|
|
||||||
runTime.write();
|
|
||||||
|
|
||||||
runTime.printExecutionTime(Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "End\n" << endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | www.openfoam.com
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM 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.
|
|
||||||
|
|
||||||
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Global
|
|
||||||
setMultiRegionDeltaT
|
|
||||||
|
|
||||||
Description
|
|
||||||
Reset the timestep to maintain a constant maximum Courant numbers.
|
|
||||||
Reduction of time-step is immediate, but increase is damped to avoid
|
|
||||||
unstable oscillations.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
if (adjustTimeStep)
|
|
||||||
{
|
|
||||||
const scalar maxDeltaTFact =
|
|
||||||
min(maxCo/(CoNum + SMALL), maxCo/(surfaceFilm.CourantNumber() + SMALL));
|
|
||||||
const scalar deltaTFact =
|
|
||||||
min(min(maxDeltaTFact, 1.0 + 0.1*maxDeltaTFact), 1.2);
|
|
||||||
|
|
||||||
runTime.setDeltaT
|
|
||||||
(
|
|
||||||
min
|
|
||||||
(
|
|
||||||
deltaTFact*runTime.deltaTValue(),
|
|
||||||
maxDeltaT
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "deltaT = " << runTime.deltaTValue() << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,137 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | www.openfoam.com
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM 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.
|
|
||||||
|
|
||||||
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
{
|
|
||||||
volScalarField& rDeltaT = trDeltaT.ref();
|
|
||||||
|
|
||||||
const dictionary& pimpleDict = pimple.dict();
|
|
||||||
|
|
||||||
// Maximum flow Courant number
|
|
||||||
scalar maxCo(pimpleDict.get<scalar>("maxCo"));
|
|
||||||
|
|
||||||
// Maximum time scale
|
|
||||||
scalar maxDeltaT(pimpleDict.getOrDefault<scalar>("maxDeltaT", GREAT));
|
|
||||||
|
|
||||||
// Smoothing parameter (0-1) when smoothing iterations > 0
|
|
||||||
scalar rDeltaTSmoothingCoeff
|
|
||||||
(
|
|
||||||
pimpleDict.getOrDefault<scalar>("rDeltaTSmoothingCoeff", 0.1)
|
|
||||||
);
|
|
||||||
|
|
||||||
// Damping coefficient (1-0)
|
|
||||||
scalar rDeltaTDampingCoeff
|
|
||||||
(
|
|
||||||
pimpleDict.getOrDefault<scalar>("rDeltaTDampingCoeff", 0.2)
|
|
||||||
);
|
|
||||||
|
|
||||||
// Maximum change in cell temperature per iteration
|
|
||||||
// (relative to previous value)
|
|
||||||
scalar alphaTemp(pimpleDict.getOrDefault("alphaTemp", 0.05));
|
|
||||||
|
|
||||||
|
|
||||||
Info<< "Time scales min/max:" << endl;
|
|
||||||
|
|
||||||
// Cache old reciprocal time scale field
|
|
||||||
volScalarField rDeltaT0("rDeltaT0", rDeltaT);
|
|
||||||
|
|
||||||
// Flow time scale
|
|
||||||
{
|
|
||||||
rDeltaT.ref() =
|
|
||||||
(
|
|
||||||
fvc::surfaceSum(mag(phi))()()
|
|
||||||
/((2*maxCo)*mesh.V()*rho())
|
|
||||||
);
|
|
||||||
|
|
||||||
// Limit the largest time scale
|
|
||||||
rDeltaT.max(1/maxDeltaT);
|
|
||||||
|
|
||||||
Info<< " Flow = "
|
|
||||||
<< gMin(1/rDeltaT.primitiveField()) << ", "
|
|
||||||
<< gMax(1/rDeltaT.primitiveField()) << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reaction source time scale
|
|
||||||
{
|
|
||||||
volScalarField::Internal rDeltaTT
|
|
||||||
(
|
|
||||||
mag
|
|
||||||
(
|
|
||||||
parcels.hsTrans()/(mesh.V()*runTime.deltaT())
|
|
||||||
+ Qdot()
|
|
||||||
)
|
|
||||||
/(
|
|
||||||
alphaTemp
|
|
||||||
*rho()
|
|
||||||
*thermo.Cp()()()
|
|
||||||
*T()
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< " Temperature = "
|
|
||||||
<< gMin(1/(rDeltaTT.field() + VSMALL)) << ", "
|
|
||||||
<< gMax(1/(rDeltaTT.field() + VSMALL)) << endl;
|
|
||||||
|
|
||||||
rDeltaT.ref() = max
|
|
||||||
(
|
|
||||||
rDeltaT(),
|
|
||||||
rDeltaTT
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the boundary values of the reciprocal time-step
|
|
||||||
rDeltaT.correctBoundaryConditions();
|
|
||||||
|
|
||||||
// Spatially smooth the time scale field
|
|
||||||
if (rDeltaTSmoothingCoeff < 1.0)
|
|
||||||
{
|
|
||||||
fvc::smooth(rDeltaT, rDeltaTSmoothingCoeff);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Limit rate of change of time scale
|
|
||||||
// - reduce as much as required
|
|
||||||
// - only increase at a fraction of old time scale
|
|
||||||
if
|
|
||||||
(
|
|
||||||
rDeltaTDampingCoeff < 1.0
|
|
||||||
&& runTime.timeIndex() > runTime.startTimeIndex() + 1
|
|
||||||
)
|
|
||||||
{
|
|
||||||
rDeltaT = max
|
|
||||||
(
|
|
||||||
rDeltaT,
|
|
||||||
(scalar(1) - rDeltaTDampingCoeff)*rDeltaT0
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< " Overall = "
|
|
||||||
<< gMin(1/rDeltaT.primitiveField())
|
|
||||||
<< ", " << gMax(1/rDeltaT.primitiveField()) << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -7,6 +7,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
||||||
|
-I$(LIB_SRC)/lagrangian/coalCombustion/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||||
@ -46,6 +47,7 @@ EXE_LIBS = \
|
|||||||
-lsurfaceFilmModels \
|
-lsurfaceFilmModels \
|
||||||
-lcombustionModels \
|
-lcombustionModels \
|
||||||
-lsampling \
|
-lsampling \
|
||||||
|
-lcoalCombustion \
|
||||||
-lregionFaModels \
|
-lregionFaModels \
|
||||||
-lfiniteArea \
|
-lfiniteArea \
|
||||||
-lfaOptions
|
-lfaOptions
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
Info<< "\nConstructing coal cloud" << endl;
|
Info<< "\nConstructing coal cloud" << endl;
|
||||||
reactingMultiphaseCloud parcels
|
coalCloud parcels
|
||||||
(
|
(
|
||||||
"reactingCloud1",
|
"reactingCloud1",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
|
g,
|
||||||
slgThermo
|
slgThermo
|
||||||
);
|
);
|
||||||
|
|||||||
@ -37,7 +37,7 @@ Description
|
|||||||
|
|
||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
#include "reactingMultiphaseCloud.H"
|
#include "coalCloud.H"
|
||||||
#include "rhoReactionThermo.H"
|
#include "rhoReactionThermo.H"
|
||||||
#include "CombustionModel.H"
|
#include "CombustionModel.H"
|
||||||
#include "radiationModel.H"
|
#include "radiationModel.H"
|
||||||
|
|||||||
@ -35,6 +35,7 @@ EXE_LIBS = \
|
|||||||
-llagrangian \
|
-llagrangian \
|
||||||
-llagrangianIntermediate \
|
-llagrangianIntermediate \
|
||||||
-llagrangianTurbulence \
|
-llagrangianTurbulence \
|
||||||
|
-llagrangianSpray \
|
||||||
-lspecie \
|
-lspecie \
|
||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
-lfluidThermophysicalModels \
|
-lfluidThermophysicalModels \
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
Info<< "\nConstructing reacting cloud" << endl;
|
Info<< "\nConstructing reacting cloud" << endl;
|
||||||
sprayCloud parcels
|
basicSprayCloud parcels
|
||||||
(
|
(
|
||||||
"sprayCloud",
|
"sprayCloud",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
|
g,
|
||||||
slgThermo
|
slgThermo
|
||||||
);
|
);
|
||||||
|
|||||||
@ -39,6 +39,7 @@ EXE_LIBS = \
|
|||||||
-llagrangian \
|
-llagrangian \
|
||||||
-llagrangianIntermediate \
|
-llagrangianIntermediate \
|
||||||
-llagrangianTurbulence \
|
-llagrangianTurbulence \
|
||||||
|
-llagrangianSpray \
|
||||||
-lspecie \
|
-lspecie \
|
||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
-lfluidThermophysicalModels \
|
-lfluidThermophysicalModels \
|
||||||
|
|||||||
@ -37,7 +37,7 @@ Description
|
|||||||
#include "engineTime.H"
|
#include "engineTime.H"
|
||||||
#include "engineMesh.H"
|
#include "engineMesh.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
#include "sprayCloud.H"
|
#include "basicSprayCloud.H"
|
||||||
#include "psiReactionThermo.H"
|
#include "psiReactionThermo.H"
|
||||||
#include "CombustionModel.H"
|
#include "CombustionModel.H"
|
||||||
#include "radiationModel.H"
|
#include "radiationModel.H"
|
||||||
|
|||||||
@ -34,6 +34,7 @@ EXE_LIBS = \
|
|||||||
-lthermoTools \
|
-lthermoTools \
|
||||||
-llagrangian \
|
-llagrangian \
|
||||||
-llagrangianIntermediate \
|
-llagrangianIntermediate \
|
||||||
|
-llagrangianSpray \
|
||||||
-llagrangianTurbulence \
|
-llagrangianTurbulence \
|
||||||
-lspecie \
|
-lspecie \
|
||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
|
|||||||
@ -35,7 +35,7 @@ Description
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#define CLOUD_BASE_TYPE spray
|
#define CLOUD_BASE_TYPE Spray
|
||||||
#define CLOUD_BASE_TYPE_NAME "spray"
|
#define CLOUD_BASE_TYPE_NAME "spray"
|
||||||
|
|
||||||
#include "simpleReactingParcelFoam.C"
|
#include "simpleReactingParcelFoam.C"
|
||||||
|
|||||||
@ -40,6 +40,7 @@ EXE_LIBS = \
|
|||||||
-llagrangian \
|
-llagrangian \
|
||||||
-llagrangianIntermediate \
|
-llagrangianIntermediate \
|
||||||
-llagrangianTurbulence \
|
-llagrangianTurbulence \
|
||||||
|
-llagrangianSpray \
|
||||||
-lspecie \
|
-lspecie \
|
||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
-lfluidThermophysicalModels \
|
-lfluidThermophysicalModels \
|
||||||
|
|||||||
@ -38,7 +38,7 @@ Description
|
|||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "dynamicFvMesh.H"
|
#include "dynamicFvMesh.H"
|
||||||
#include "turbulenceModel.H"
|
#include "turbulenceModel.H"
|
||||||
#include "sprayCloud.H"
|
#include "basicSprayCloud.H"
|
||||||
#include "psiReactionThermo.H"
|
#include "psiReactionThermo.H"
|
||||||
#include "CombustionModel.H"
|
#include "CombustionModel.H"
|
||||||
#include "radiationModel.H"
|
#include "radiationModel.H"
|
||||||
|
|||||||
@ -37,7 +37,7 @@ Description
|
|||||||
|
|
||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
#include "sprayCloud.H"
|
#include "basicSprayCloud.H"
|
||||||
#include "psiReactionThermo.H"
|
#include "psiReactionThermo.H"
|
||||||
#include "CombustionModel.H"
|
#include "CombustionModel.H"
|
||||||
#include "radiationModel.H"
|
#include "radiationModel.H"
|
||||||
|
|||||||
@ -9,8 +9,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
||||||
|
|||||||
@ -55,11 +55,11 @@ const word kinematicCloudName
|
|||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
|
||||||
kinematicCloud kCloud
|
basicKinematicCloud kinematicCloud
|
||||||
(
|
(
|
||||||
kinematicCloudName,
|
kinematicCloudName,
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
thermo.mu()
|
thermo.mu(),
|
||||||
|
g
|
||||||
);
|
);
|
||||||
|
|||||||
@ -10,8 +10,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
||||||
|
|||||||
@ -37,7 +37,7 @@ Description
|
|||||||
#include "dynamicFvMesh.H"
|
#include "dynamicFvMesh.H"
|
||||||
#include "psiThermo.H"
|
#include "psiThermo.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
#include "kinematicCloud.H"
|
#include "basicKinematicCloud.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -73,14 +73,14 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
kCloud.storeGlobalPositions();
|
kinematicCloud.storeGlobalPositions();
|
||||||
|
|
||||||
mesh.update();
|
mesh.update();
|
||||||
|
|
||||||
U.correctBoundaryConditions();
|
U.correctBoundaryConditions();
|
||||||
|
|
||||||
Info<< "Evolving " << kCloud.name() << endl;
|
Info<< "Evolving " << kinematicCloud.name() << endl;
|
||||||
kCloud.evolve();
|
kinematicCloud.evolve();
|
||||||
|
|
||||||
runTime.write();
|
runTime.write();
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@ Description
|
|||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "psiThermo.H"
|
#include "psiThermo.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
#include "kinematicCloud.H"
|
#include "basicKinematicCloud.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -75,8 +75,8 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
Info<< "Evolving " << kCloud.name() << endl;
|
Info<< "Evolving " << kinematicCloud.name() << endl;
|
||||||
kCloud.evolve();
|
kinematicCloud.evolve();
|
||||||
|
|
||||||
runTime.write();
|
runTime.write();
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ Description
|
|||||||
#include "CorrectPhi.H"
|
#include "CorrectPhi.H"
|
||||||
#include "fvcSmooth.H"
|
#include "fvcSmooth.H"
|
||||||
|
|
||||||
#include "kinematicCloud.H"
|
#include "basicKinematicCloud.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -111,12 +111,12 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
Info<< "Evolving " << kCloud.name() << endl;
|
Info<< "Evolving " << kinematicCloud.name() << endl;
|
||||||
|
|
||||||
kCloud.evolve();
|
kinematicCloud.evolve();
|
||||||
|
|
||||||
// Update continuous phase volume fraction field
|
// Update continuous phase volume fraction field
|
||||||
alphac = max(1.0 - kCloud.theta(), alphacMin);
|
alphac = max(1.0 - kinematicCloud.theta(), alphacMin);
|
||||||
alphac.correctBoundaryConditions();
|
alphac.correctBoundaryConditions();
|
||||||
|
|
||||||
Info<< "Continuous phase-1 volume fraction = "
|
Info<< "Continuous phase-1 volume fraction = "
|
||||||
@ -130,7 +130,7 @@ int main(int argc, char *argv[])
|
|||||||
alphaPhic = alphacf*phi;
|
alphaPhic = alphacf*phi;
|
||||||
alphacRho = alphac*rho;
|
alphacRho = alphac*rho;
|
||||||
|
|
||||||
fvVectorMatrix cloudSU(kCloud.SU(U));
|
fvVectorMatrix cloudSU(kinematicCloud.SU(U));
|
||||||
volVectorField cloudVolSUSu
|
volVectorField cloudVolSUSu
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
|
|||||||
@ -12,14 +12,11 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels \
|
-I$(LIB_SRC)/transportModels \
|
||||||
-I$(LIB_SRC)/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \
|
-I$(LIB_SRC)/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
|
-I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
|
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/TurbulenceModels/phaseCompressible/lnInclude \
|
-I$(LIB_SRC)/TurbulenceModels/phaseCompressible/lnInclude \
|
||||||
|
|||||||
@ -147,13 +147,13 @@ volScalarField alphacRho(alphac*rho);
|
|||||||
alphacRho.oldTime();
|
alphacRho.oldTime();
|
||||||
|
|
||||||
Info<< "Constructing kinematicCloud " << endl;
|
Info<< "Constructing kinematicCloud " << endl;
|
||||||
kinematicCloud kCloud
|
basicKinematicCloud kinematicCloud
|
||||||
(
|
(
|
||||||
"kinematicCloud",
|
"kinematicCloud",
|
||||||
g,
|
|
||||||
rho,
|
rho,
|
||||||
U,
|
U,
|
||||||
mu
|
mu,
|
||||||
|
g
|
||||||
);
|
);
|
||||||
|
|
||||||
// Particle fraction upper limit
|
// Particle fraction upper limit
|
||||||
@ -161,13 +161,13 @@ scalar alphacMin
|
|||||||
(
|
(
|
||||||
1.0
|
1.0
|
||||||
- (
|
- (
|
||||||
kCloud.particleProperties().subDict("constantProperties")
|
kinematicCloud.particleProperties().subDict("constantProperties")
|
||||||
.get<scalar>("alphaMax")
|
.get<scalar>("alphaMax")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update alphac from the particle locations
|
// Update alphac from the particle locations
|
||||||
alphac = max(1.0 - kCloud.theta(), alphacMin);
|
alphac = max(1.0 - kinematicCloud.theta(), alphacMin);
|
||||||
alphac.correctBoundaryConditions();
|
alphac.correctBoundaryConditions();
|
||||||
|
|
||||||
surfaceScalarField alphacf("alphacf", fvc::interpolate(alphac));
|
surfaceScalarField alphacf("alphacf", fvc::interpolate(alphac));
|
||||||
|
|||||||
@ -30,8 +30,8 @@ Description
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef CGALTriangulation3DKernel_H
|
#ifndef Foam_CGALTriangulation3DKernel_H
|
||||||
#define CGALTriangulation3DKernel_H
|
#define Foam_CGALTriangulation3DKernel_H
|
||||||
|
|
||||||
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
|
// Silence boost bind deprecation warnings (before CGAL-5.2.1)
|
||||||
#include "CGAL/version.h"
|
#include "CGAL/version.h"
|
||||||
@ -54,9 +54,19 @@ Description
|
|||||||
// #include "CGAL/Robust_circumcenter_traits_3.h"
|
// #include "CGAL/Robust_circumcenter_traits_3.h"
|
||||||
// typedef CGAL::Robust_circumcenter_traits_3<baseK> K;
|
// typedef CGAL::Robust_circumcenter_traits_3<baseK> K;
|
||||||
|
|
||||||
|
#if defined(CGAL_VERSION_NR) && (CGAL_VERSION_NR < 1050500000)
|
||||||
|
// Prior to CGAL-5.5
|
||||||
|
|
||||||
#include "CGAL/Robust_circumcenter_filtered_traits_3.h"
|
#include "CGAL/Robust_circumcenter_filtered_traits_3.h"
|
||||||
typedef CGAL::Robust_circumcenter_filtered_traits_3<baseK> K;
|
typedef CGAL::Robust_circumcenter_filtered_traits_3<baseK> K;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#include "CGAL/Robust_weighted_circumcenter_filtered_traits_3.h"
|
||||||
|
typedef CGAL::Robust_weighted_circumcenter_filtered_traits_3<baseK> K;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// Very robust but expensive kernel
|
// Very robust but expensive kernel
|
||||||
|
|||||||
@ -4,7 +4,6 @@ EXE_INC = \
|
|||||||
-Wno-old-style-cast \
|
-Wno-old-style-cast \
|
||||||
$(COMP_FLAGS) \
|
$(COMP_FLAGS) \
|
||||||
${CGAL_INC} \
|
${CGAL_INC} \
|
||||||
-DCGAL_HEADER_ONLY \
|
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/surfMesh/lnInclude \
|
-I$(LIB_SRC)/surfMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
@ -12,7 +11,6 @@ EXE_INC = \
|
|||||||
|
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
/* ${CGAL_LIBS} */ \
|
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lsurfMesh \
|
-lsurfMesh \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
# [WM_PROJECT_VERSION] - A human-readable version name
|
# [WM_PROJECT_VERSION] - A human-readable version name
|
||||||
# A development version is often named 'com' - as in www.openfoam.com
|
# A development version is often named 'com' - as in www.openfoam.com
|
||||||
export WM_PROJECT_VERSION=com
|
export WM_PROJECT_VERSION=v2212
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Configuration environment variables.
|
# Configuration environment variables.
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
# [WM_PROJECT_VERSION] - A human-readable version name
|
# [WM_PROJECT_VERSION] - A human-readable version name
|
||||||
# A development version is often named 'com' - as in www.openfoam.com
|
# A development version is often named 'com' - as in www.openfoam.com
|
||||||
setenv WM_PROJECT_VERSION com
|
setenv WM_PROJECT_VERSION v2212
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Configuration environment variables.
|
# Configuration environment variables.
|
||||||
|
|||||||
@ -79,8 +79,8 @@ bool Foam::laminarModels::generalizedNewtonianViscosityModels::Casson::read
|
|||||||
|
|
||||||
coeffs.readEntry("m", m_);
|
coeffs.readEntry("m", m_);
|
||||||
coeffs.readEntry("tau0", tau0_);
|
coeffs.readEntry("tau0", tau0_);
|
||||||
coeffs.readEntry("nuMin_", nuMin_);
|
coeffs.readEntry("nuMin", nuMin_);
|
||||||
coeffs.readEntry("nuMax_", nuMax_);
|
coeffs.readEntry("nuMax", nuMax_);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -55,7 +55,6 @@ $(basicFaPatchFields)/transform/transformFaPatchScalarField.C
|
|||||||
constraintFaPatchFields = $(faPatchFields)/constraint
|
constraintFaPatchFields = $(faPatchFields)/constraint
|
||||||
$(constraintFaPatchFields)/empty/emptyFaPatchFields.C
|
$(constraintFaPatchFields)/empty/emptyFaPatchFields.C
|
||||||
$(constraintFaPatchFields)/processor/processorFaPatchFields.C
|
$(constraintFaPatchFields)/processor/processorFaPatchFields.C
|
||||||
$(constraintFaPatchFields)/processor/processorFaPatchScalarField.C
|
|
||||||
$(constraintFaPatchFields)/wedge/wedgeFaPatchFields.C
|
$(constraintFaPatchFields)/wedge/wedgeFaPatchFields.C
|
||||||
$(constraintFaPatchFields)/wedge/wedgeFaPatchScalarField.C
|
$(constraintFaPatchFields)/wedge/wedgeFaPatchScalarField.C
|
||||||
$(constraintFaPatchFields)/cyclic/cyclicFaPatchFields.C
|
$(constraintFaPatchFields)/cyclic/cyclicFaPatchFields.C
|
||||||
|
|||||||
@ -181,13 +181,6 @@ public:
|
|||||||
|
|
||||||
// Coupled interface functionality
|
// Coupled interface functionality
|
||||||
|
|
||||||
//- Transform given patch component field
|
|
||||||
virtual void transformCoupleField
|
|
||||||
(
|
|
||||||
solveScalarField& f,
|
|
||||||
const direction cmpt
|
|
||||||
) const = 0;
|
|
||||||
|
|
||||||
//- Update result field based on interface functionality
|
//- Update result field based on interface functionality
|
||||||
virtual void updateInterfaceMatrix
|
virtual void updateInterfaceMatrix
|
||||||
(
|
(
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016-2017 Wikki Ltd
|
Copyright (C) 2016-2017 Wikki Ltd
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -187,20 +187,7 @@ void Foam::cyclicFaPatchField<Type>::updateInterfaceMatrix
|
|||||||
transformCoupleField(pnf, cmpt);
|
transformCoupleField(pnf, cmpt);
|
||||||
|
|
||||||
// Multiply the field by coefficients and add into the result
|
// Multiply the field by coefficients and add into the result
|
||||||
if (add)
|
this->addToInternalField(result, !add, faceCells, coeffs, pnf);
|
||||||
{
|
|
||||||
forAll(faceCells, elemI)
|
|
||||||
{
|
|
||||||
result[faceCells[elemI]] += coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
forAll(faceCells, elemI)
|
|
||||||
{
|
|
||||||
result[faceCells[elemI]] -= coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -227,21 +214,11 @@ void Foam::cyclicFaPatchField<Type>::updateInterfaceMatrix
|
|||||||
pnf[facei + sizeby2] = psiInternal[faceCells[facei]];
|
pnf[facei + sizeby2] = psiInternal[faceCells[facei]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Transform according to the transformation tensors
|
||||||
|
transformCoupleField(pnf);
|
||||||
|
|
||||||
// Multiply the field by coefficients and add into the result
|
// Multiply the field by coefficients and add into the result
|
||||||
if (add)
|
this->addToInternalField(result, !add, faceCells, coeffs, pnf);
|
||||||
{
|
|
||||||
forAll(faceCells, elemI)
|
|
||||||
{
|
|
||||||
result[faceCells[elemI]] += coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
forAll(faceCells, elemI)
|
|
||||||
{
|
|
||||||
result[faceCells[elemI]] -= coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -164,16 +164,6 @@ public:
|
|||||||
|
|
||||||
// Coupled interface functionality
|
// Coupled interface functionality
|
||||||
|
|
||||||
//- Transform neighbour field
|
|
||||||
virtual void transformCoupleField
|
|
||||||
(
|
|
||||||
solveScalarField& f,
|
|
||||||
const direction cmpt
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
cyclicLduInterfaceField::transformCoupleField(f, cmpt);
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Update result field based on interface functionality
|
//- Update result field based on interface functionality
|
||||||
virtual void updateInterfaceMatrix
|
virtual void updateInterfaceMatrix
|
||||||
(
|
(
|
||||||
|
|||||||
@ -130,13 +130,6 @@ Foam::processorFaPatchField<Type>::processorFaPatchField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
Foam::processorFaPatchField<Type>::~processorFaPatchField()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -203,6 +196,8 @@ void Foam::processorFaPatchField<Type>::initInterfaceMatrixUpdate
|
|||||||
commsType,
|
commsType,
|
||||||
this->patch().patchInternalField(psiInternal)()
|
this->patch().patchInternalField(psiInternal)()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const_cast<processorFaPatchField<Type>&>(*this).updatedMatrix() = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -219,32 +214,28 @@ void Foam::processorFaPatchField<Type>::updateInterfaceMatrix
|
|||||||
const Pstream::commsTypes commsType
|
const Pstream::commsTypes commsType
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
if (this->updatedMatrix())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const labelUList& faceCells = this->patch().edgeFaces();
|
||||||
|
|
||||||
solveScalarField pnf
|
solveScalarField pnf
|
||||||
(
|
(
|
||||||
procPatch_.receive<solveScalar>(commsType, this->size())()
|
procPatch_.receive<solveScalar>(commsType, this->size())
|
||||||
);
|
);
|
||||||
|
|
||||||
// Transform according to the transformation tensor
|
if (!std::is_arithmetic<Type>::value)
|
||||||
transformCoupleField(pnf, cmpt);
|
{
|
||||||
|
// Transform non-scalar data according to the transformation tensor
|
||||||
|
transformCoupleField(pnf, cmpt);
|
||||||
|
}
|
||||||
|
|
||||||
// Multiply the field by coefficients and add into the result
|
// Multiply the field by coefficients and add into the result
|
||||||
|
this->addToInternalField(result, !add, faceCells, coeffs, pnf);
|
||||||
|
|
||||||
const labelUList& edgeFaces = this->patch().edgeFaces();
|
const_cast<processorFaPatchField<Type>&>(*this).updatedMatrix() = true;
|
||||||
|
|
||||||
if (add)
|
|
||||||
{
|
|
||||||
forAll(edgeFaces, elemI)
|
|
||||||
{
|
|
||||||
result[edgeFaces[elemI]] += coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
forAll(edgeFaces, elemI)
|
|
||||||
{
|
|
||||||
result[edgeFaces[elemI]] -= coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -265,6 +256,8 @@ void Foam::processorFaPatchField<Type>::initInterfaceMatrixUpdate
|
|||||||
commsType,
|
commsType,
|
||||||
this->patch().patchInternalField(psiInternal)()
|
this->patch().patchInternalField(psiInternal)()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const_cast<processorFaPatchField<Type>&>(*this).updatedMatrix() = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -280,29 +273,25 @@ void Foam::processorFaPatchField<Type>::updateInterfaceMatrix
|
|||||||
const Pstream::commsTypes commsType
|
const Pstream::commsTypes commsType
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
|
if (this->updatedMatrix())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const labelUList& faceCells = this->patch().edgeFaces();
|
||||||
|
|
||||||
Field<Type> pnf
|
Field<Type> pnf
|
||||||
(
|
(
|
||||||
procPatch_.receive<Type>(commsType, this->size())()
|
procPatch_.receive<Type>(commsType, this->size())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Transform according to the transformation tensor
|
||||||
|
transformCoupleField(pnf);
|
||||||
|
|
||||||
// Multiply the field by coefficients and add into the result
|
// Multiply the field by coefficients and add into the result
|
||||||
|
this->addToInternalField(result, !add, faceCells, coeffs, pnf);
|
||||||
|
|
||||||
const labelUList& edgeFaces = this->patch().edgeFaces();
|
const_cast<processorFaPatchField<Type>&>(*this).updatedMatrix() = true;
|
||||||
|
|
||||||
if (add)
|
|
||||||
{
|
|
||||||
forAll(edgeFaces, elemI)
|
|
||||||
{
|
|
||||||
result[edgeFaces[elemI]] += coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
forAll(edgeFaces, elemI)
|
|
||||||
{
|
|
||||||
result[edgeFaces[elemI]] -= coeffs[elemI]*pnf[elemI];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016-2017 Wikki Ltd
|
Copyright (C) 2016-2017 Wikki Ltd
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
Copyright (C) 2019-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -38,8 +38,8 @@ SourceFiles
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef processorFaPatchField_H
|
#ifndef Foam_processorFaPatchField_H
|
||||||
#define processorFaPatchField_H
|
#define Foam_processorFaPatchField_H
|
||||||
|
|
||||||
#include "coupledFaPatchField.H"
|
#include "coupledFaPatchField.H"
|
||||||
#include "processorLduInterfaceField.H"
|
#include "processorLduInterfaceField.H"
|
||||||
@ -139,9 +139,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
//- Destructor
|
||||||
|
~processorFaPatchField() = default;
|
||||||
~processorFaPatchField();
|
|
||||||
|
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
@ -169,17 +168,8 @@ public:
|
|||||||
//- Return patch-normal gradient
|
//- Return patch-normal gradient
|
||||||
virtual tmp<Field<Type>> snGrad() const;
|
virtual tmp<Field<Type>> snGrad() const;
|
||||||
|
|
||||||
// Coupled interface functionality
|
|
||||||
|
|
||||||
//- Transform neighbour field
|
// Coupled interface functionality
|
||||||
virtual void transformCoupleField
|
|
||||||
(
|
|
||||||
solveScalarField& f,
|
|
||||||
const direction cmpt
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
processorLduInterfaceField::transformCoupleField(f, cmpt);
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Initialise neighbour matrix update
|
//- Initialise neighbour matrix update
|
||||||
virtual void initInterfaceMatrixUpdate
|
virtual void initInterfaceMatrixUpdate
|
||||||
|
|||||||
@ -25,10 +25,10 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef processorFaPatchFields_H
|
#ifndef Foam_processorFaPatchFields_H
|
||||||
#define processorFaPatchFields_H
|
#define Foam_processorFaPatchFields_H
|
||||||
|
|
||||||
#include "processorFaPatchScalarField.H"
|
#include "processorFaPatchField.H"
|
||||||
#include "fieldTypes.H"
|
#include "fieldTypes.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -1,100 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | www.openfoam.com
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
Copyright (C) 2016-2017 Wikki Ltd
|
|
||||||
Copyright (C) 2019 OpenCFD Ltd.
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM 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.
|
|
||||||
|
|
||||||
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "processorFaPatchScalarField.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<>
|
|
||||||
void Foam::processorFaPatchField<Foam::scalar>::transformCoupleField
|
|
||||||
(
|
|
||||||
solveScalarField& f,
|
|
||||||
const direction cmpt
|
|
||||||
) const
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<>
|
|
||||||
void Foam::processorFaPatchField<Foam::scalar>::initInterfaceMatrixUpdate
|
|
||||||
(
|
|
||||||
solveScalarField& result,
|
|
||||||
const bool add,
|
|
||||||
const lduAddressing& lduAddr,
|
|
||||||
const label patchId,
|
|
||||||
const solveScalarField& psiInternal,
|
|
||||||
const scalarField& coeffs,
|
|
||||||
const direction,
|
|
||||||
const Pstream::commsTypes commsType
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
procPatch_.send
|
|
||||||
(
|
|
||||||
commsType,
|
|
||||||
patch().patchInternalField(psiInternal)()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<>
|
|
||||||
void Foam::processorFaPatchField<Foam::scalar>::updateInterfaceMatrix
|
|
||||||
(
|
|
||||||
solveScalarField& result,
|
|
||||||
const bool add,
|
|
||||||
const lduAddressing& lduAddr,
|
|
||||||
const label patchId,
|
|
||||||
const solveScalarField&,
|
|
||||||
const scalarField& coeffs,
|
|
||||||
const direction,
|
|
||||||
const Pstream::commsTypes commsType
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
solveScalarField pnf
|
|
||||||
(
|
|
||||||
procPatch_.receive<solveScalar>(commsType, this->size())()
|
|
||||||
);
|
|
||||||
|
|
||||||
const labelUList& edgeFaces = patch().edgeFaces();
|
|
||||||
|
|
||||||
if (add)
|
|
||||||
{
|
|
||||||
forAll(edgeFaces, facei)
|
|
||||||
{
|
|
||||||
result[edgeFaces[facei]] += coeffs[facei]*pnf[facei];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
forAll(edgeFaces, facei)
|
|
||||||
{
|
|
||||||
result[edgeFaces[facei]] -= coeffs[facei]*pnf[facei];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -389,7 +389,7 @@ bool Foam::functionObjects::fvExpressionField::read(const dictionary& dict)
|
|||||||
}
|
}
|
||||||
|
|
||||||
autowrite_ = dict.getOrDefault("autowrite", false);
|
autowrite_ = dict.getOrDefault("autowrite", false);
|
||||||
store_ = dict.getOrDefault("autowrite", true);
|
store_ = dict.getOrDefault("store", true);
|
||||||
|
|
||||||
// "dimensions" is optional
|
// "dimensions" is optional
|
||||||
dimensions_.clear();
|
dimensions_.clear();
|
||||||
|
|||||||
@ -12,14 +12,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
||||||
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
|
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
|
||||||
-I$(LIB_SRC)/regionFaModels/lnInclude \
|
-I$(LIB_SRC)/regionFaModels/lnInclude \
|
||||||
-I$(LIB_SRC)/faOptions/lnInclude \
|
-I$(LIB_SRC)/faOptions/lnInclude
|
||||||
\
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude
|
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
|||||||
@ -28,7 +28,7 @@ License
|
|||||||
|
|
||||||
#include "cloudInfo.H"
|
#include "cloudInfo.H"
|
||||||
#include "cloud.H"
|
#include "cloud.H"
|
||||||
#include "parcelCloudModel.H"
|
#include "kinematicCloud.H"
|
||||||
#include "dictionary.H"
|
#include "dictionary.H"
|
||||||
#include "mathematicalConstants.H"
|
#include "mathematicalConstants.H"
|
||||||
#include "PstreamReduceOps.H"
|
#include "PstreamReduceOps.H"
|
||||||
@ -147,7 +147,7 @@ bool Foam::functionObjects::cloudInfo::performAction(unsigned request)
|
|||||||
|
|
||||||
const word& cloudName = names()[cloudi];
|
const word& cloudName = names()[cloudi];
|
||||||
|
|
||||||
const auto* kinCloudPtr = obr_.cfindObject<parcelCloudModel>(cloudName);
|
const auto* kinCloudPtr = obr_.cfindObject<kinematicCloud>(cloudName);
|
||||||
|
|
||||||
if (!kinCloudPtr)
|
if (!kinCloudPtr)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -92,10 +92,10 @@ Foam::functionObjects::icoUncoupledKinematicCloud::icoUncoupledKinematicCloud
|
|||||||
kinematicCloud_
|
kinematicCloud_
|
||||||
(
|
(
|
||||||
kinematicCloudName_,
|
kinematicCloudName_,
|
||||||
g_,
|
|
||||||
rho_,
|
rho_,
|
||||||
U_,
|
U_,
|
||||||
mu_
|
mu_,
|
||||||
|
g_
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ SourceFiles
|
|||||||
#define functionObjects_icoUncoupledKinematicCloud_H
|
#define functionObjects_icoUncoupledKinematicCloud_H
|
||||||
|
|
||||||
#include "fvMeshFunctionObject.H"
|
#include "fvMeshFunctionObject.H"
|
||||||
#include "kinematicCollidingCloud.H"
|
#include "basicKinematicCollidingCloud.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "uniformDimensionedFields.H"
|
#include "uniformDimensionedFields.H"
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ class icoUncoupledKinematicCloud
|
|||||||
word kinematicCloudName_;
|
word kinematicCloudName_;
|
||||||
|
|
||||||
//- The kinematic cloud
|
//- The kinematic cloud
|
||||||
kinematicCollidingCloud kinematicCloud_;
|
basicKinematicCollidingCloud kinematicCloud_;
|
||||||
|
|
||||||
|
|
||||||
// Private member functions
|
// Private member functions
|
||||||
|
|||||||
@ -103,7 +103,7 @@ bool Foam::functionObjects::ensightWrite::readSelection(const dictionary& dict)
|
|||||||
selectFields_.uniq();
|
selectFields_.uniq();
|
||||||
|
|
||||||
blockFields_.clear();
|
blockFields_.clear();
|
||||||
dict.readIfPresent("blockFields", blockFields_);
|
dict.readIfPresent("excludeFields", blockFields_);
|
||||||
blockFields_.uniq();
|
blockFields_.uniq();
|
||||||
|
|
||||||
// Actions to define selection
|
// Actions to define selection
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016-2017 OpenFOAM Foundation
|
Copyright (C) 2016-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2018-2022 OpenCFD Ltd.
|
Copyright (C) 2018-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -71,7 +71,7 @@ Foam::fv::limitVelocity::limitVelocity
|
|||||||
:
|
:
|
||||||
fv::cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
writeFile(mesh, name, typeName, dict, false),
|
writeFile(mesh, name, typeName, dict, false),
|
||||||
UName_(word::null),
|
UName_("U"),
|
||||||
max_(0)
|
max_(0)
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
|
|||||||
@ -9,7 +9,9 @@ wmake $targetType basic
|
|||||||
wmake $targetType solidParticle
|
wmake $targetType solidParticle
|
||||||
wmake $targetType intermediate
|
wmake $targetType intermediate
|
||||||
wmake $targetType turbulence
|
wmake $targetType turbulence
|
||||||
|
wmake $targetType spray
|
||||||
wmake $targetType DSMC
|
wmake $targetType DSMC
|
||||||
|
wmake $targetType coalCombustion
|
||||||
|
|
||||||
molecularDynamics/Allwmake $targetType $*
|
molecularDynamics/Allwmake $targetType $*
|
||||||
|
|
||||||
|
|||||||
5
src/lagrangian/coalCombustion/Make/files
Normal file
5
src/lagrangian/coalCombustion/Make/files
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/* Coal parcel and sub-models */
|
||||||
|
coalParcel/makeCoalParcelSubmodels.C
|
||||||
|
coalCloudList/coalCloudList.C
|
||||||
|
|
||||||
|
LIB = $(FOAM_LIBBIN)/libcoalCombustion
|
||||||
@ -1,48 +1,49 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(FOAM_SOLVERS)/lagrangian/reactingParcelFoam \
|
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteArea/lnInclude \
|
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/sampling/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
|
||||||
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels \
|
|
||||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
|
||||||
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
|
||||||
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
|
||||||
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
|
||||||
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
|
|
||||||
-I$(LIB_SRC)/regionFaModels/lnInclude \
|
|
||||||
-I$(LIB_SRC)/faOptions/lnInclude \
|
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
|
||||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
|
||||||
|
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||||
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
||||||
|
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
|
||||||
|
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||||
|
-I$(LIB_SRC)/transportModels \
|
||||||
|
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
|
||||||
|
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
|
||||||
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
|
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
|
||||||
|
-I$(LIB_SRC)/regionFaModels/lnInclude \
|
||||||
|
-I$(LIB_SRC)/finiteArea/lnInclude \
|
||||||
|
-I$(LIB_SRC)/faOptions/lnInclude
|
||||||
|
|
||||||
|
LIB_LIBS = \
|
||||||
EXE_LIBS = \
|
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lfvOptions \
|
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-lsampling \
|
|
||||||
-lturbulenceModels \
|
|
||||||
-lincompressibleTurbulenceModels \
|
|
||||||
-lincompressibleTransportModels \
|
|
||||||
-ldynamicMesh \
|
|
||||||
-ldynamicFvMesh \
|
|
||||||
-ltopoChangerFvMesh \
|
|
||||||
-latmosphericModels \
|
|
||||||
-lregionModels \
|
|
||||||
-lsurfaceFilmModels \
|
|
||||||
-lsurfaceFilmDerivedFvPatchFields \
|
|
||||||
-llagrangian \
|
-llagrangian \
|
||||||
-llagrangianIntermediate \
|
-llagrangianIntermediate \
|
||||||
-llagrangianTurbulence \
|
-llagrangianTurbulence \
|
||||||
|
-ldistributionModels \
|
||||||
|
-lspecie \
|
||||||
|
-lcompressibleTransportModels \
|
||||||
|
-lfluidThermophysicalModels \
|
||||||
|
-lthermophysicalProperties \
|
||||||
|
-lreactionThermophysicalModels \
|
||||||
|
-lSLGThermo \
|
||||||
|
-lradiationModels \
|
||||||
|
-lturbulenceModels \
|
||||||
|
-lincompressibleTurbulenceModels \
|
||||||
|
-lcompressibleTurbulenceModels \
|
||||||
|
-lincompressibleTransportModels \
|
||||||
|
-lregionModels \
|
||||||
|
-lsurfaceFilmModels \
|
||||||
|
-ldynamicMesh \
|
||||||
|
-ldynamicFvMesh \
|
||||||
-lregionFaModels \
|
-lregionFaModels \
|
||||||
-lfiniteArea \
|
-lfiniteArea
|
||||||
-lfaOptions
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011 OpenFOAM Foundation
|
Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -24,28 +24,28 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::reactingCloud
|
Foam::coalCloud
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Cloud class to introduce reacting parcels
|
Cloud class to introduce coal parcels
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef Foam_reactingCloud_H
|
#ifndef coalCloud_H
|
||||||
#define Foam_reactingCloud_H
|
#define coalCloud_H
|
||||||
|
|
||||||
#include "BaseCloud.H"
|
#include "Cloud.H"
|
||||||
#include "KinematicCloud.H"
|
#include "KinematicCloud.H"
|
||||||
#include "ThermoCloud.H"
|
#include "ThermoCloud.H"
|
||||||
#include "ReactingCloud.H"
|
#include "ReactingCloud.H"
|
||||||
#include "ParcelCloudModel.H"
|
#include "ReactingMultiphaseCloud.H"
|
||||||
#include "reactingParcel.H"
|
#include "coalParcel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
typedef ParcelCloudModel
|
typedef ReactingMultiphaseCloud
|
||||||
<
|
<
|
||||||
ReactingCloud
|
ReactingCloud
|
||||||
<
|
<
|
||||||
@ -53,14 +53,14 @@ namespace Foam
|
|||||||
<
|
<
|
||||||
KinematicCloud
|
KinematicCloud
|
||||||
<
|
<
|
||||||
BaseCloud
|
Cloud
|
||||||
<
|
<
|
||||||
reactingParcel
|
coalParcel
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
> reactingCloud;
|
> coalCloud;
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -26,102 +26,66 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "parcelCloudModelList.H"
|
#include "coalCloudList.H"
|
||||||
|
|
||||||
template<class ... Args>
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
void Foam::parcelCloudModelList::initialise(const Args& ... args)
|
|
||||||
|
Foam::coalCloudList::coalCloudList
|
||||||
|
(
|
||||||
|
const volScalarField& rho,
|
||||||
|
const volVectorField& U,
|
||||||
|
const dimensionedVector& g,
|
||||||
|
const SLGThermo& slgThermo
|
||||||
|
)
|
||||||
|
:
|
||||||
|
PtrList<coalCloud>(),
|
||||||
|
mesh_(rho.mesh())
|
||||||
{
|
{
|
||||||
IOdictionary props
|
IOdictionary props
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"cloudProperties",
|
"coalCloudList",
|
||||||
mesh_.time().constant(),
|
mesh_.time().constant(),
|
||||||
mesh_,
|
mesh_,
|
||||||
IOobject::MUST_READ
|
IOobject::MUST_READ
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
wordHashSet cloudTypes;
|
const wordHashSet cloudNames(props.get<wordList>("clouds"));
|
||||||
if (props.readIfPresent("cloudTypes", cloudTypes))
|
|
||||||
|
setSize(cloudNames.size());
|
||||||
|
|
||||||
|
label i = 0;
|
||||||
|
for (const word& name : cloudNames)
|
||||||
{
|
{
|
||||||
setSize(cloudTypes.size());
|
Info<< "creating cloud: " << name << endl;
|
||||||
|
|
||||||
label i = 0;
|
set
|
||||||
for (const auto& name : cloudTypes)
|
(
|
||||||
{
|
i++,
|
||||||
Info<< "creating cloud: " << name << endl;
|
new coalCloud
|
||||||
|
(
|
||||||
|
name,
|
||||||
|
rho,
|
||||||
|
U,
|
||||||
|
g,
|
||||||
|
slgThermo
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
set(i++, parcelCloudModel::New(name, args ...));
|
Info<< endl;
|
||||||
|
|
||||||
Info<< endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
setSize(1);
|
|
||||||
set(0, parcelCloudModel::New("cloud", args ...));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Foam::parcelCloudModelList::parcelCloudModelList
|
|
||||||
(
|
|
||||||
const dimensionedVector& g,
|
|
||||||
const volScalarField& rho,
|
|
||||||
const volVectorField& U,
|
|
||||||
const volScalarField& mu
|
|
||||||
)
|
|
||||||
:
|
|
||||||
PtrList<parcelCloudModel>(),
|
|
||||||
mesh_(rho.mesh())
|
|
||||||
{
|
|
||||||
initialise(g, rho, U, mu);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Foam::parcelCloudModelList::parcelCloudModelList
|
|
||||||
(
|
|
||||||
const dimensionedVector& g,
|
|
||||||
const volScalarField& rho,
|
|
||||||
const volVectorField& U,
|
|
||||||
const SLGThermo& slgThermo
|
|
||||||
)
|
|
||||||
:
|
|
||||||
PtrList<parcelCloudModel>(),
|
|
||||||
mesh_(rho.mesh())
|
|
||||||
{
|
|
||||||
initialise(g, rho, U, slgThermo);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::parcelCloudModelList::info()
|
void Foam::coalCloudList::evolve()
|
||||||
{
|
{
|
||||||
for (auto& c : *this)
|
forAll(*this, i)
|
||||||
{
|
{
|
||||||
c.info();
|
operator[](i).evolve();
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Foam::parcelCloudModelList::evolve()
|
|
||||||
{
|
|
||||||
for (auto& c : *this)
|
|
||||||
{
|
|
||||||
c.evolveME();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Foam::parcelCloudModelList::storeGlobalPositions()
|
|
||||||
{
|
|
||||||
for (auto& c : *this)
|
|
||||||
{
|
|
||||||
c.storeGlobalPositionsME();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user