Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d03549ba88 | |||
| 3ece629585 | |||
| 18319a8bf0 | |||
| 641f6c694f | |||
| c9953c7afe | |||
| fbf9d1da77 | |||
| 227331e2d5 | |||
| 559eff1823 | |||
| fa665204ef | |||
| 66eb71e53d | |||
| dd85e9a32c | |||
| 6c17991656 | |||
| e34a598fcc | |||
| 45a7c96dbb |
@ -1,10 +1,12 @@
|
||||
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
|
||||
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
|
||||
|
||||
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
|
||||
|
||||
EXE_INC = \
|
||||
$(PFLAGS) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
$(PINC) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
-I$(LIB_SRC)/transportModels \
|
||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
@ -16,6 +18,7 @@ EXE_INC = \
|
||||
-I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \
|
||||
-I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \
|
||||
-I$(CFDEM_LIGGGHTS_SRC_DIR)
|
||||
|
||||
EXE_LIBS = \
|
||||
-L$(CFDEM_LIB_DIR)\
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_LIBS) \
|
||||
|
||||
@ -47,7 +47,6 @@ Contributions
|
||||
#else
|
||||
#include "turbulenceModel.H"
|
||||
#endif
|
||||
#include "superquadric_flag.h"
|
||||
#include "cfdemCloudIB.H"
|
||||
#if defined(SUPERQUADRIC_ACTIVE_FLAG)
|
||||
#include "cfdemCloudIBSuperquadric.H"
|
||||
@ -55,7 +54,6 @@ Contributions
|
||||
#include "implicitCouple.H"
|
||||
|
||||
#include "averagingModel.H"
|
||||
#include "regionModel.H"
|
||||
#include "voidFractionModel.H"
|
||||
|
||||
#include "dynamicFvMesh.H"
|
||||
@ -108,7 +106,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
//=== dyM ===================
|
||||
interFace = mag(mesh.lookupObject<volScalarField>("voidfractionNext"));
|
||||
mesh.update(); //dyM
|
||||
particleCloud.setMeshHasUpdatedFlag(mesh.update()); //dyM
|
||||
|
||||
#if defined(version30)
|
||||
#include "readTimeControls.H"
|
||||
|
||||
@ -1,14 +1,17 @@
|
||||
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
|
||||
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
|
||||
|
||||
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
|
||||
|
||||
EXE_INC = \
|
||||
$(PFLAGS) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
$(PINC) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
-I$(LIB_SRC)/transportModels \
|
||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/fvOptions/lnInclude \
|
||||
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
|
||||
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \
|
||||
-I$(CFDEM_LIGGGHTS_SRC_DIR)
|
||||
@ -19,6 +22,7 @@ EXE_LIBS = \
|
||||
-lincompressibleTransportModels \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools \
|
||||
-lfvOptions \
|
||||
-l$(CFDEM_LIB_NAME) \
|
||||
$(CFDEM_ADD_LIB_PATHS) \
|
||||
$(CFDEM_ADD_LIBS)
|
||||
|
||||
@ -44,13 +44,17 @@ Description
|
||||
#else
|
||||
#include "turbulenceModel.H"
|
||||
#endif
|
||||
#if defined(versionv1606plus) || defined(version40)
|
||||
#include "fvOptions.H"
|
||||
#else
|
||||
#include "fvIOoptionList.H"
|
||||
#endif
|
||||
#include "fixedFluxPressureFvPatchScalarField.H"
|
||||
#include "cfdemCloud.H"
|
||||
|
||||
#if defined(anisotropicRotation)
|
||||
#include "cfdemCloudRotation.H"
|
||||
#endif
|
||||
#include "superquadric_flag.h"
|
||||
#if defined(SUPERQUADRIC_ACTIVE_FLAG)
|
||||
#include "cfdemCloudRotationSuperquadric.H"
|
||||
#endif
|
||||
@ -72,10 +76,12 @@ int main(int argc, char *argv[])
|
||||
#include "createTimeControls.H"
|
||||
#endif
|
||||
#include "createFields.H"
|
||||
#include "createFvOptions.H"
|
||||
#include "initContinuityErrs.H"
|
||||
|
||||
// create cfdemCloud
|
||||
#include "readGravitationalAcceleration.H"
|
||||
#include "checkImCoupleM.H"
|
||||
#if defined(anisotropicRotation)
|
||||
cfdemCloudRotation particleCloud(mesh);
|
||||
#elif defined(SUPERQUADRIC_ACTIVE_FLAG)
|
||||
@ -89,8 +95,6 @@ int main(int argc, char *argv[])
|
||||
Info<< "\nStarting time loop\n" << endl;
|
||||
while (runTime.loop())
|
||||
{
|
||||
particleCloud.clockM().start(1,"Global");
|
||||
|
||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||
|
||||
#if defined(version30)
|
||||
@ -103,6 +107,7 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
// do particle stuff
|
||||
particleCloud.clockM().start(1,"Global");
|
||||
particleCloud.clockM().start(2,"Coupling");
|
||||
bool hasEvolved = particleCloud.evolve(voidfraction,Us,U);
|
||||
|
||||
@ -111,8 +116,7 @@ int main(int argc, char *argv[])
|
||||
particleCloud.smoothingM().smoothenAbsolutField(particleCloud.forceM(0).impParticleForces());
|
||||
}
|
||||
|
||||
Info << "update Ksl.internalField()" << endl;
|
||||
Ksl = particleCloud.momCoupleM(0).impMomSource();
|
||||
Ksl = particleCloud.momCoupleM(particleCloud.registryM().getProperty("implicitCouple_index")).impMomSource();
|
||||
Ksl.correctBoundaryConditions();
|
||||
|
||||
surfaceScalarField voidfractionf = fvc::interpolate(voidfraction);
|
||||
@ -139,9 +143,11 @@ int main(int argc, char *argv[])
|
||||
+ particleCloud.divVoidfractionTau(U, voidfraction)
|
||||
==
|
||||
- fvm::Sp(Ksl/rho,U)
|
||||
+ fvOptions(U)
|
||||
);
|
||||
|
||||
UEqn.relax();
|
||||
fvOptions.constrain(UEqn);
|
||||
|
||||
#if defined(version30)
|
||||
if (piso.momentumPredictor())
|
||||
@ -153,6 +159,8 @@ int main(int argc, char *argv[])
|
||||
solve(UEqn == - fvc::grad(p) + Ksl/rho*Us);
|
||||
else
|
||||
solve(UEqn == - voidfraction*fvc::grad(p) + Ksl/rho*Us);
|
||||
|
||||
fvOptions.correct(U);
|
||||
}
|
||||
|
||||
// --- PISO loop
|
||||
@ -190,7 +198,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||
(
|
||||
p.boundaryField(),
|
||||
#ifdef versionv1612plus
|
||||
p.boundaryFieldRef(),
|
||||
#else
|
||||
p.boundaryField(),
|
||||
#endif
|
||||
(
|
||||
phi.boundaryField()
|
||||
- (mesh.Sf().boundaryField() & U.boundaryField())
|
||||
@ -200,7 +212,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||
(
|
||||
p.boundaryField(),
|
||||
#ifdef versionv1612plus
|
||||
p.boundaryFieldRef(),
|
||||
#else
|
||||
p.boundaryField(),
|
||||
#endif
|
||||
(
|
||||
phi.boundaryField()
|
||||
- (mesh.Sf().boundaryField() & U.boundaryField())
|
||||
@ -258,6 +274,7 @@ int main(int argc, char *argv[])
|
||||
U -= voidfraction*rUA*fvc::grad(p) - Ksl/rho*Us*rUA;
|
||||
|
||||
U.correctBoundaryConditions();
|
||||
fvOptions.correct(U);
|
||||
|
||||
} // end piso loop
|
||||
}
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
|
||||
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
|
||||
|
||||
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
|
||||
|
||||
EXE_INC = \
|
||||
$(PFLAGS) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
$(PINC) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
-I$(LIB_SRC)/transportModels \
|
||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
@ -12,6 +14,7 @@ EXE_INC = \
|
||||
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
|
||||
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \
|
||||
-I$(CFDEM_SRC_DIR)/eulerian/scalarTransportModelsCFDEM/lnInclude \
|
||||
-I$(CFDEM_LIGGGHTS_SRC_DIR)
|
||||
|
||||
EXE_LIBS = \
|
||||
-L$(CFDEM_LIB_DIR)\
|
||||
|
||||
@ -44,7 +44,11 @@ Description
|
||||
#include "turbulenceModel.H"
|
||||
#endif
|
||||
#include "fixedFluxPressureFvPatchScalarField.H"
|
||||
#include "cfdemCloud.H"
|
||||
#ifdef MS
|
||||
#include "cfdemCloudMS.H"
|
||||
#else
|
||||
#include "cfdemCloud.H"
|
||||
#endif
|
||||
#if defined(anisotropicRotation)
|
||||
#include "cfdemCloudRotation.H"
|
||||
#endif
|
||||
@ -70,10 +74,15 @@ int main(int argc, char *argv[])
|
||||
|
||||
// create cfdemCloud
|
||||
#include "readGravitationalAcceleration.H"
|
||||
#include "checkImCoupleM.H"
|
||||
#if defined(anisotropicRotation)
|
||||
cfdemCloudRotation particleCloud(mesh);
|
||||
#else
|
||||
cfdemCloud particleCloud(mesh);
|
||||
#ifdef MS
|
||||
cfdemCloudMS particleCloud(mesh);
|
||||
#else
|
||||
cfdemCloud particleCloud(mesh);
|
||||
#endif
|
||||
#endif
|
||||
#include "checkModelType.H"
|
||||
|
||||
@ -110,7 +119,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
Info << "update Ksl.internalField()" << endl;
|
||||
Ksl = particleCloud.momCoupleM(0).impMomSource();
|
||||
Ksl = particleCloud.momCoupleM(particleCloud.registryM().getProperty("implicitCouple_index")).impMomSource();
|
||||
Ksl.correctBoundaryConditions();
|
||||
|
||||
surfaceScalarField voidfractionf = fvc::interpolate(voidfraction);
|
||||
@ -124,14 +133,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
particleCloud.clockM().start(26,"Flow");
|
||||
|
||||
// get scalar source from DEM
|
||||
particleCloud.forceM(1).manipulateScalarField(Tsource);
|
||||
Tsource.correctBoundaryConditions();
|
||||
|
||||
//Scalar transport if desired. Use "none" (noTransport) if no scalar transport is desired
|
||||
stm().update();
|
||||
|
||||
particleCloud.clockM().start(26,"Flow");
|
||||
|
||||
if(particleCloud.solveFlow())
|
||||
{
|
||||
// Pressure-velocity PISO corrector
|
||||
@ -196,7 +200,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||
(
|
||||
p.boundaryField(),
|
||||
#ifdef versionv1612plus
|
||||
p.boundaryFieldRef(),
|
||||
#else
|
||||
p.boundaryField(),
|
||||
#endif
|
||||
(
|
||||
phi.boundaryField()
|
||||
- (mesh.Sf().boundaryField() & U.boundaryField())
|
||||
@ -206,7 +214,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||
(
|
||||
p.boundaryField(),
|
||||
#ifdef versionv1612plus
|
||||
p.boundaryFieldRef(),
|
||||
#else
|
||||
p.boundaryField(),
|
||||
#endif
|
||||
(
|
||||
phi.boundaryField()
|
||||
- (mesh.Sf().boundaryField() & U.boundaryField())
|
||||
|
||||
@ -1,22 +1,27 @@
|
||||
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
|
||||
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
|
||||
|
||||
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
|
||||
|
||||
EXE_INC = \
|
||||
$(PFLAGS) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
$(PINC) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
-I$(LIB_SRC)/transportModels \
|
||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
|
||||
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \
|
||||
-I$(CFDEM_LIGGGHTS_SRC_DIR)
|
||||
|
||||
EXE_LIBS = \
|
||||
-L$(CFDEM_LIB_DIR)\
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_LIBS) \
|
||||
-lincompressibleTransportModels \
|
||||
-lfiniteVolume \
|
||||
-lradiationModels \
|
||||
-lmeshTools \
|
||||
-l$(CFDEM_LIB_NAME) \
|
||||
$(CFDEM_ADD_LIB_PATHS) \
|
||||
|
||||
@ -44,6 +44,7 @@ Description
|
||||
#else
|
||||
#include "turbulenceModel.H"
|
||||
#endif
|
||||
#include "radiationModel.H"
|
||||
#include "fixedFluxPressureFvPatchScalarField.H"
|
||||
#include "cfdemCloud.H"
|
||||
#if defined(anisotropicRotation)
|
||||
@ -66,10 +67,12 @@ int main(int argc, char *argv[])
|
||||
#include "createTimeControls.H"
|
||||
#endif
|
||||
#include "createFields.H"
|
||||
#include "createIncompressibleRadiationModel.H"
|
||||
#include "initContinuityErrs.H"
|
||||
|
||||
// create cfdemCloud
|
||||
#include "readGravitationalAcceleration.H"
|
||||
#include "checkImCoupleM.H"
|
||||
#if defined(anisotropicRotation)
|
||||
cfdemCloudRotation particleCloud(mesh);
|
||||
#else
|
||||
@ -104,7 +107,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
Info << "update Ksl.internalField()" << endl;
|
||||
Ksl = particleCloud.momCoupleM(0).impMomSource();
|
||||
Ksl = particleCloud.momCoupleM(particleCloud.registryM().getProperty("implicitCouple_index")).impMomSource();
|
||||
Ksl.correctBoundaryConditions();
|
||||
|
||||
surfaceScalarField voidfractionf = fvc::interpolate(voidfraction);
|
||||
@ -121,18 +124,26 @@ int main(int argc, char *argv[])
|
||||
// get scalar source from DEM
|
||||
particleCloud.forceM(1).manipulateScalarField(Tsource);
|
||||
Tsource.correctBoundaryConditions();
|
||||
particleCloud.forceM(1).commToDEM();
|
||||
|
||||
// solve scalar transport equation
|
||||
{
|
||||
alphat = turbulence->nut()/Prt;
|
||||
alphat.correctBoundaryConditions();
|
||||
volScalarField alphaEff("alphaEff", turbulence->nu()/Pr + alphat);
|
||||
fvScalarMatrix TEqn
|
||||
(
|
||||
fvm::ddt(voidfraction,T) - fvm::Sp(fvc::ddt(voidfraction),T)
|
||||
+ fvm::div(phi, T) - fvm::Sp(fvc::div(phi),T)
|
||||
- fvm::laplacian(DT*voidfraction, T)
|
||||
- fvm::laplacian(alphaEff*voidfraction, T)
|
||||
==
|
||||
Tsource
|
||||
+ radiation->ST(rhoCpRef, T)
|
||||
);
|
||||
TEqn.relax();
|
||||
TEqn.solve();
|
||||
radiation->correct();
|
||||
}
|
||||
|
||||
if(particleCloud.solveFlow())
|
||||
{
|
||||
@ -198,7 +209,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||
(
|
||||
p.boundaryField(),
|
||||
#ifdef versionv1612plus
|
||||
p.boundaryFieldRef(),
|
||||
#else
|
||||
p.boundaryField(),
|
||||
#endif
|
||||
(
|
||||
phi.boundaryField()
|
||||
- (mesh.Sf().boundaryField() & U.boundaryField())
|
||||
@ -208,7 +223,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||
(
|
||||
p.boundaryField(),
|
||||
#ifdef versionv1612plus
|
||||
p.boundaryFieldRef(),
|
||||
#else
|
||||
p.boundaryField(),
|
||||
#endif
|
||||
(
|
||||
phi.boundaryField()
|
||||
- (mesh.Sf().boundaryField() & U.boundaryField())
|
||||
|
||||
@ -92,7 +92,7 @@
|
||||
//========================
|
||||
// scalar field modelling
|
||||
//========================
|
||||
Info<< "\nCreating dummy density field rho = 1\n" << endl;
|
||||
Info<< "\nCreating T field\n" << endl;
|
||||
volScalarField T
|
||||
(
|
||||
IOobject
|
||||
@ -134,11 +134,27 @@
|
||||
)
|
||||
);
|
||||
|
||||
dimensionedScalar DT
|
||||
// kinematic turbulent thermal thermal conductivity m2/s
|
||||
Info<< "Reading field alphat\n" << endl;
|
||||
volScalarField alphat
|
||||
(
|
||||
transportProperties.lookup("DT")
|
||||
IOobject
|
||||
(
|
||||
"alphat",
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh
|
||||
);
|
||||
|
||||
// Laminar Prandtl number
|
||||
dimensionedScalar Pr("Pr", dimless, transportProperties);
|
||||
|
||||
// Turbulent Prandtl number
|
||||
dimensionedScalar Prt("Prt", dimless, transportProperties);
|
||||
|
||||
//========================
|
||||
|
||||
//# include "createPhi.H"
|
||||
|
||||
@ -1,15 +1,18 @@
|
||||
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
|
||||
include $(CFDEM_ADD_LIBS_DIR)/$(CFDEM_ADD_LIBS_NAME)
|
||||
|
||||
PFLAGS+= -DCFDEMWMPROJECTVERSION="$(CFDEM_WM_PROJECT_VERSION)"
|
||||
|
||||
EXE_INC = \
|
||||
$(PFLAGS) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
$(PINC) \
|
||||
$(CFDEM_ADD_INCOMPTURBMOD_PATHS) \
|
||||
-I$(LIB_SRC)/transportModels \
|
||||
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(CFDEM_LIGGGHTS_SRC_DIR)
|
||||
|
||||
|
||||
EXE_LIBS = \
|
||||
|
||||
@ -71,14 +71,14 @@ int main(int argc, char *argv[])
|
||||
int DEM_dump_Interval=1000;
|
||||
particleCloud.reAllocArrays();
|
||||
|
||||
double **positions_;
|
||||
double **velocities_;
|
||||
double **radii_;
|
||||
double **voidfractions_;
|
||||
double **particleWeights_;
|
||||
double **particleVolumes_;
|
||||
double **particleV_;
|
||||
double **cellIDs_;
|
||||
double **positions_(NULL);
|
||||
double **velocities_(NULL);
|
||||
double **radii_(NULL);
|
||||
double **voidfractions_(NULL);
|
||||
double **particleWeights_(NULL);
|
||||
double **particleVolumes_(NULL);
|
||||
double **particleV_(NULL);
|
||||
double **cellIDs_(NULL);
|
||||
|
||||
particleCloud.dataExchangeM().allocateArray(positions_,0.,3);
|
||||
particleCloud.dataExchangeM().allocateArray(velocities_,0.,3);
|
||||
@ -114,8 +114,11 @@ int main(int argc, char *argv[])
|
||||
particleCloud.setPos(positions_);
|
||||
|
||||
particleCloud.voidFractionM().setvoidFraction(NULL,voidfractions_,particleWeights_,particleVolumes_,particleV_);
|
||||
|
||||
voidfraction.internalField() = particleCloud.voidFractionM().voidFractionInterp();
|
||||
#if defined(versionv1612plus) || defined(version40)
|
||||
voidfraction = particleCloud.voidFractionM().voidFractionInterp();
|
||||
#else
|
||||
voidfraction.internalField() = particleCloud.voidFractionM().voidFractionInterp();
|
||||
#endif
|
||||
voidfraction.correctBoundaryConditions();
|
||||
|
||||
particleCloud.averagingM().setVectorAverage
|
||||
|
||||
4
doc/.gitignore
vendored
@ -1,3 +1,7 @@
|
||||
#ignore .rst build files
|
||||
*.rst
|
||||
_tmp/*
|
||||
|
||||
# C++.gitignore from github
|
||||
# Compiled Object files
|
||||
*.slo
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
"CFDEMproject WWW Site"_lws :c
|
||||
"CFDEM®project WWW Site"_lws :c
|
||||
|
||||
:line
|
||||
CFDEMcoupling Documentation :h2,c
|
||||
CFDEM®coupling Documentation :h2,c
|
||||
:line
|
||||
:c,image(Portfolio_CFDEMcoupling.png)
|
||||
:line
|
||||
@ -9,13 +9,13 @@ CFDEMcoupling Documentation :h2,c
|
||||
:link(lws,http://www.cfdem.com)
|
||||
:link(lc,CFDEMcoupling_Manual.html#comm)
|
||||
:link(of,http://www.openfoam.com)
|
||||
:link(lig,http://www.cfdem.com)
|
||||
:link(lig,https://www.cfdem.com/liggghtsr-open-source-discrete-element-method-particle-simulation-code)
|
||||
|
||||
1. Contents :h3
|
||||
|
||||
The CFDEMcoupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEMcoupling documentation can be improved.
|
||||
The CFDEM®coupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEM®coupling documentation can be improved.
|
||||
|
||||
1.1 "About CFDEMcoupling"_#1_1
|
||||
1.1 "About CFDEM®coupling"_#1_1
|
||||
1.2 "Installation"_#1_2
|
||||
1.3 "Tutorials"_#1_3
|
||||
1.4 "couplingProperties dictionary"_#1_4
|
||||
@ -24,9 +24,9 @@ The CFDEMcoupling documentation is organized into the following sections. If you
|
||||
|
||||
:line
|
||||
|
||||
1.1 About CFDEMcoupling :link(1_1),h4
|
||||
1.1 About CFDEM®coupling :link(1_1),h4
|
||||
|
||||
CFDEM coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of "LIGGGHTS"_lig DEM code and the Open Source CFD package "OpenFOAM(R)(*)"_of. The CFDEMcoupling toolbox allows to expand standard CFD solvers of "OpenFOAM(R)(*)"_of to include a coupling to the DEM code "LIGGGHTS"_lig. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
|
||||
CFDEM®coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of "LIGGGHTS®"_lig DEM code and the Open Source CFD package "OpenFOAM®(*)"_of. The CFDEM®coupling toolbox allows to expand standard CFD solvers of "OpenFOAM®(*)"_of to include a coupling to the DEM code "LIGGGHTS®"_lig. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
|
||||
|
||||
The coupled solvers run fully parallel on distributed-memory clusters. Features are:
|
||||
|
||||
@ -39,22 +39,46 @@ basic documentation is provided :l
|
||||
|
||||
The file structure:
|
||||
|
||||
{src} directory including the source files of the coupling toolbox and models :ulb,l
|
||||
{applications} directory including the solver files for coupled CFD-DEM simulations :l
|
||||
{doc} directory including the documentation of CFDEMcoupling :l
|
||||
{src} directory contains the source-code files of the CFDEM®coupling toolbox library and models :ulb,l
|
||||
{applications} directory contains the solver source files for coupled CFD-DEM simulations :l
|
||||
{doc} directory including the documentation of CFDEM®coupling :l
|
||||
{tutorials} directory including basic tutorial cases showing the functionality :l
|
||||
:ule
|
||||
|
||||
Details on installation are given on the "CFDEMproject WWW Site"_lws .
|
||||
The functionality of this CFD-DEM framework is described via "tutorial cases"_#_1_2 showing how to use different solvers and models.
|
||||
The functionality of this CFD-DEM framework is described via "tutorial cases"_#1_3 showing how to use different solvers and models.
|
||||
|
||||
CFDEMcoupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
|
||||
CFDEM®coupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
|
||||
|
||||
CFDEMcoupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
|
||||
CFDEM®coupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
|
||||
|
||||
Core development of CFDEMcoupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
|
||||
Core development of CFDEM®coupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
|
||||
|
||||
This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012
|
||||
This documentation was written by DCS Computing GmbH, 2017
|
||||
|
||||
:line
|
||||
How CFDEM®coupling works, a short description:
|
||||
|
||||
The launched applications are CFDEM®coupling solvers, e.g. cfdemSolverPiso. Its job is to solve the Navier-Stokes equations with a solid phase present.
|
||||
A general formulation with a solid phase:
|
||||
|
||||
:c,image(Eqs/NavierStokesLiquSoli.png)
|
||||
|
||||
In general "l" denotes liquid and "s" solid properties. AlphaL is the fluid (liquid) content of a calculation-cell, the voidfraction. "rhoL" is the fluid (liquid) density, uL the fluid (liquid) velocity, p the pressure, Ksl the implicit momentum exchange term between solid and liquid phase, us the solid velocity, tau the liquid-stress-tensor, g the gravity vector and t the time. "f" is a general explicit term which can be used to explicitely exchange momentum from the solid to the liquid phase.
|
||||
|
||||
All cfdemSolvers use a "cfdemCloud" object, which takes care of many things. The most important are:
|
||||
|
||||
Control and communicate with the LIGGGHTS® library object. (liggghtsCommandModel and dataExchangeModel)
|
||||
Find the cell ID of a certain position, e.g. the particle center. (locateModel)
|
||||
Calculate the voidfraction field from particle positions, particle volumes and cell volumes. (voidFractionModel)
|
||||
Calculate the forces on the CFD field and the particle forces. These may be assembled by various forceModels, e.g. buyoancy and a drag-law. (forceModel and forceSubModel)
|
||||
Calculate the implicit and if necessary explicit source terms from the force fields for the Navier-Stokes-Equations, the solver needs to solve. (momCoupleModel)
|
||||
Calculate the "Us" field from particle data, map the particle data to the CFD-field. (averagingModel) :ul
|
||||
|
||||
In the standard setting the momentum coupling model takes the calculated forces of forceModels and produces the implicit momentum source term Ksl with
|
||||
|
||||
:c,image(Eqs/Ksl.png)
|
||||
|
||||
More advanced solvers have also an explicit source term field f which is assembled from those forces which have the treatForceExplicit=true flag (see forceSubModels).
|
||||
|
||||
:line
|
||||
(*) This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.
|
||||
@ -63,16 +87,308 @@ This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012
|
||||
|
||||
1.2 Installation :link(1_2),h4
|
||||
|
||||
Please follow the installation routine provided at www.cfdem.com.
|
||||
In order to get the latest code version, please use the git repository at http://github.com ("githubAccess"_githubAccess_public.html).
|
||||
:link(github,http://github.com/)
|
||||
:link(gitHelp,http://help.github.com/linux-set-up-git)
|
||||
:link(gitCFDEM,http://github.com/CFDEMproject)
|
||||
:link(gitscm,http://git-scm.com/downloads)
|
||||
:link(compOF,https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lagrangian/cfdemParticle/cfdTools/versionInfo.H)
|
||||
:link(bashrc,https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lagrangian/cfdemParticle/etc/bashrc)
|
||||
:link(downOF,https://openfoam.org/download/source/)
|
||||
:link(vtklink,http://www.vtk.org/)
|
||||
:link(ParaViewlink,https://www.paraview.org/)
|
||||
|
||||
:line
|
||||
|
||||
This section describes how to download repositories of the CFDEM®project from "github.com"_github .
|
||||
After setting some environment variables, LIGGGHTS® and CFDEM®coupling can be compiled.
|
||||
|
||||
|
||||
[Procedure:]
|
||||
|
||||
Short summary:
|
||||
|
||||
"Install git"_#install_1
|
||||
"Download CFDEM®project software"_#install_2
|
||||
"Download the correct OpenFOAM® version"_#install_3
|
||||
"Setup prerequisites"_#install_4
|
||||
"Setup and compile OpenFOAM®"_#install_5
|
||||
"Set environment variables and paths"_#install_6
|
||||
"Compile LIGGGHTS® and CFDEM®coupling"_#install_7
|
||||
"Additional information"_additionalInstall
|
||||
"Run your own cases"_#install_8 :ul
|
||||
|
||||
:line
|
||||
[Install git:] :link(install_1)
|
||||
This step is optional, but recommended. Git allows you to update the source code very easily with the git pull command.
|
||||
On debian based systems you can run
|
||||
|
||||
sudo apt-get install git-core :pre
|
||||
|
||||
Similar packages are available on other systems too:
|
||||
|
||||
sudo zypper install git-core
|
||||
sudo yum install git :pre
|
||||
|
||||
NOTE: In this tutorial the git protocol is used to transfer files. If port 9418 is closed for internet connections, please switch to "https://" instead of "git://" for git clone commands.
|
||||
|
||||
:line
|
||||
[Download CFDEMproject software:] :link(install_2)
|
||||
With git you can clone git repositories from "github"_github . The following terminal commands will download the CFDEM®project software to your machine in the typical folder structure. The download of the post-processing tool LPP is optional and requires python-numpy.
|
||||
|
||||
cd $HOME
|
||||
mkdir CFDEM
|
||||
cd CFDEM
|
||||
git clone git://github.com/CFDEMproject/CFDEMcoupling-PUBLIC.git
|
||||
cd $HOME
|
||||
mkdir LIGGGHTS
|
||||
cd LIGGGHTS
|
||||
git clone git://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git
|
||||
git clone git://github.com/CFDEMproject/LPP.git lpp :pre
|
||||
|
||||
If you do not have git, you can use the download buttons after visiting a repository in the "CFDEMproject project page"_gitCFDEM and unzip the archives to the proper locations. Typically github tags the folders with "-master", please rename them with
|
||||
|
||||
cd $HOME/CFDEM
|
||||
mv CFDEMcoupling-PUBLIC-master CFDEMcoupling-PUBLIC
|
||||
cd $HOME/LIGGGHTS
|
||||
mv LIGGGHTS-PUBLIC-master LIGGGHTS-PUBLIC
|
||||
mv LPP-master lpp :pre
|
||||
|
||||
:line
|
||||
[Download the correct OpenFOAM® version:] :link(install_3)
|
||||
All mentions of OpenFOAM® refer to "this"_footnotes . It is strongly recommended to compile OpenFOAM® yourself with the latest compatible version.
|
||||
The latest compatible OpenFOAM®-version can be found in the in your local copy of CFDEM®coupling in src/lagrangian/cfdemParticle/cfdTools/versionInfo.H, or directly at "github"_compOF .
|
||||
Look for the git commit hashtag in the following line:
|
||||
|
||||
word OFversion="<OF-Release>-commit-<commitHashtag>";
|
||||
e.g. word OFversion="3.0.x-commit-ac3f6c67e02f0aac3777c27f9fb7558fc3536e37"; :pre
|
||||
|
||||
With git you can use the following recipe to get the correct version:
|
||||
|
||||
cd $HOME
|
||||
mkdir OpenFOAM
|
||||
cd OpenFOAM
|
||||
git clone git://github.com/OpenFOAM/OpenFOAM-<OF-Release>.git
|
||||
git clone git://github.com/OpenFOAM/ThirdParty-<OF-Release>.git
|
||||
cd OpenFOAM-<OF-Release>
|
||||
git checkout <commitHashtag> :pre
|
||||
|
||||
Without git you can visit git://github.com/OpenFOAM/OpenFOAM-<OF-Release>/tree/<commitHashtag> and use the download button.
|
||||
|
||||
Other OpenFOAM® versions can be used for compilation, but aren't officially supported. The list includes 4.x, 2.4.x, 1612+, 1606+ and extend-3.2
|
||||
|
||||
:line
|
||||
[Setup prerequisites for CFDEM®project:] :link(install_4)
|
||||
Prerequisites for OpenFOAM® can be found "here"_downOF .
|
||||
On an Ubuntu system (14.04+), you can use the following
|
||||
|
||||
sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev libscotch-dev libptscotch-dev :pre
|
||||
|
||||
CFDEM®project requires OpenFOAM® with a working MPI version.
|
||||
Optional, but strongly recommended is the use of "VTK"_vtklink . VTK is used to directly write data in vtk format, which is readable by "ParaView"_ParaViewlink . The minimum version is VTK 5.8, recommended is 6.3. On debian-based systems it is sufficient to run
|
||||
|
||||
sudo apt-get install libvtk6-dev :pre
|
||||
|
||||
For manual VTK compilation, please read the "additional installation hints"_additionalInstall .
|
||||
|
||||
The post-processing tool lpp requires the python numpy package.
|
||||
|
||||
sudo apt-get install python-numpy :pre
|
||||
|
||||
:line
|
||||
[Setup and compile OpenFOAM®] :link(install_5)
|
||||
You can follow the OpenFOAM® git compilation "instructions"_downOF , with a small number of exceptions:
|
||||
CFDEM®coupling requires the WM_LABEL_SIZE=32 , which is the standard setting.
|
||||
|
||||
On an Ubuntu system (14.04+), you can use the following steps to install OpenFOAM®:
|
||||
|
||||
gedit ~/.bashrc
|
||||
add the following two lines in the end, where <NofProcs> is the integer number of the processors you want to compile with. Save and exit gedit.
|
||||
"export WM_NCOMPPROCS=<NofProcs>"
|
||||
"source $HOME/OpenFOAM/OpenFOAM-<OF-Release>/etc/bashrc"
|
||||
now again in the terminal:
|
||||
source ~/.bashrc
|
||||
cd $WM_PROJECT_DIR
|
||||
foamSystemCheck
|
||||
./Allwmake :pre
|
||||
|
||||
Additional OpenFOAM® installation hints can be found "here"_additionalInstall .
|
||||
|
||||
:line
|
||||
[Set environment variables and paths] :link(install_6)
|
||||
Typically the CFDEM®coupling folder is tagged with the OpenFOAM® version number. To do this, perform the following steps:
|
||||
|
||||
cd $HOME/CFDEM
|
||||
mv CFDEMcoupling-PUBLIC CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION :pre
|
||||
|
||||
You need to set some environment variables in ~/.bashrc (if you use c-shell, manipulate ~/.cshrc accordingly). Open your .bashrc and the CFDEM®coupling bashrc file.
|
||||
|
||||
gedit ~/.bashrc $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc :pre
|
||||
|
||||
Add the STANDARD block to the end of your bashrc and modify entries if necessary. Make sure the statements are not comments; remove the "#". Similar to:
|
||||
|
||||
#================================================#
|
||||
#- source cfdem env vars
|
||||
export CFDEM_VERSION=PUBLIC
|
||||
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
|
||||
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
|
||||
export CFDEM_bashrc=$CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle/etc/bashrc
|
||||
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
|
||||
export CFDEM_LIGGGHTS_MAKEFILE_NAME=auto
|
||||
export CFDEM_LPP_DIR=$HOME/LIGGGHTS/lpp/src
|
||||
. $CFDEM_bashrc
|
||||
#================================================# :pre
|
||||
|
||||
You may insert the EXTENDED block above ". $CFDEM_bashrc" for further customization.
|
||||
The detailed description for allowed entries can be found "here"_additionalInstall .
|
||||
|
||||
To load and check the environment you can run now
|
||||
|
||||
source ~/.bashrc
|
||||
cfdemSysTest :pre
|
||||
|
||||
NOTE: Many useful aliases are set with sourcing of the CFDEMcoupling bashrc, e.g. cfdemEtc . Make use of them!
|
||||
|
||||
:line
|
||||
[Compile LIGGGHTS® and CFDEM®coupling] :link(install_7)
|
||||
To compile CFDEM®project open a new terminal and run
|
||||
|
||||
cfdemCompCFDEMall :pre
|
||||
|
||||
It compiles the LIGGGHTS® executable, LIGGGHTS® as a shared library, the CFDEM®coupling libraries, CFDEM®coupling solvers and CFDEM®coupling utilities. The compilation will stop, if build errors occur. Having a previous manually compiled LIGGGHTS® is not enough, it needs to be compiled as shared library with the cfdemCompLIG command.
|
||||
|
||||
As step by step compilation of only specific parts, the following commands are available:
|
||||
|
||||
cfdemCompLIG
|
||||
cfdemCompCFDEMsrc
|
||||
cfdemCompCFDEmsol
|
||||
cfdenCompCFDEMuti :pre
|
||||
|
||||
The compilation is automatically logged and the logs can be found in:
|
||||
|
||||
$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log :pre
|
||||
|
||||
In case questions concerning the installation arise, please feel free to contact our forum at "www.cfdem.com"_lws .
|
||||
|
||||
:line
|
||||
[Run your own cases] :link(install_8)
|
||||
|
||||
If you want to run your own cases, please do so in {$CFDEM_PROJECT_USER_DIR/run} which is automatically being generated. E.g. copy one of the tutorial cases there, adapt it to your needs.
|
||||
Changes in $CFDEM_TUT_DIR might be lost after every {git stash}.
|
||||
|
||||
You can run all the tutorial cases by executing the alias cfdemTestTUT.
|
||||
Alternatively you can run each tutorial using the {Allrun.sh} scripts in the tutorial directories.
|
||||
|
||||
:line
|
||||
[Backwards Compatibility:]
|
||||
|
||||
Basically CFDEM®coupling supports one OpenFOAM® version therefore all settings are prepared for that. Nevertheless we try to maintain backwards compatibility as long as it works with reasonable effort.
|
||||
|
||||
The supported OpenFOAM® and LIGGGHTS® versions are stated in:
|
||||
src/lagrangian/cfdemParticle/cfdTools/versionInfo.H
|
||||
|
||||
For using other versions you can manipulate:
|
||||
src/lagrangian/cfdemParticle/etc/OFversion/OFversion.H
|
||||
(still not all functionality might work then!)
|
||||
|
||||
:link(VTK63,http://www.vtk.org/files/release/6.3/VTK-6.3.0.zip)
|
||||
:link(VTKinst,http://www.vtk.org/Wiki/VTK/Configure_and_Build#On_Unix-like_systems)
|
||||
|
||||
:line
|
||||
[Installation, additional information] :link(additionalInstall)
|
||||
:line
|
||||
|
||||
[Procedure:]
|
||||
|
||||
"Setup prerequisites"_#ainstall_4
|
||||
"Setup and compile OpenFOAM®"_#ainstall_5
|
||||
"Set environment variables and paths"_#ainstall_6
|
||||
"Compile LIGGGHTS® and CFDEM®coupling"_#ainstall_7 :ul
|
||||
|
||||
:line
|
||||
|
||||
[Setup prerequisites for CFDEM®project:] :link(ainstall_4)
|
||||
|
||||
If you need to compile VTK on your machine yourself, we recommend version 6.3, which is available "here"_VTK63 . The installation guide is available "here"_VTKinst .
|
||||
|
||||
Please note the VTK components necessary need cmake, MPI and some X11 libraries on your machine. Compilation using ccmake is recommended. In the standard configuration MPI related packages are disabled. Enable Parallel / MPI packages during configuration. For VTK-6.3 set VTK_Group_MPI:BOOL=ON .
|
||||
|
||||
:line
|
||||
[Setup and compile OpenFOAM®] :link(ainstall_5)
|
||||
All mentions of OpenFOAM® refer to "this"_afootnotes .
|
||||
|
||||
Often problems arise configuring OpenFOAM® to work with a specific MPI installation on a cluster. However it has built-in capability to work with nearly any MPI implementation.
|
||||
Set the following variable in the OpenFOAM® bashrc:
|
||||
|
||||
export WM_MPLIB=SYSTEMMPI :pre
|
||||
|
||||
Defining the following variables in your ~/.bashrc BEFORE the sourcing of OpenFOAM® will take care of the rest. This is an example for older MVAPICH installations where there is no libmpi.so, only libmpich.so :
|
||||
|
||||
export MPI_ROOT=<path/to/mpi/installation>
|
||||
export MPI_ARCH_PATH=$MPI_ROOT
|
||||
export MPI_ARCH_FLAGS="-DMPICH_SKIP_MPICXX"
|
||||
export MPI_ARCH_INC="-I$MPI_ARCH_PATH/include"
|
||||
export MPI_ARCH_LIBS='-L$(MPI_ARCH_PATH)/lib -lmpich -lmpichcxx -lmpl -lopa -lrt' :pre
|
||||
|
||||
:line
|
||||
[Set environment variables and paths] :link(ainstall_6)
|
||||
Detailed description of the environment variables:
|
||||
|
||||
standard block:
|
||||
|
||||
CFDEM_VERSION, CFDEMcoupling branch name; e.g. PUBLIC
|
||||
CFDEM_PROJECT_DIR, path to the installation directory of CFDEM®coupling
|
||||
CFDEM_PROJECT_USER_DIR, path to the user directory; used to store users simulation cases and source-code
|
||||
CFDEM_bashrc, location of the CFDEM®coupling bashrc (or cshrc)\, which sets up the environment
|
||||
CFDEM_LIGGGHTS_SRC_DIR, path to the LIGGGHTS src directory
|
||||
CFDEM_LIGGGHTS_MAKEFILE_NAME, Name of the LIGGGHTS® Makefile which defines how to compile LIGGGHTS®; more information on which Makefile to select is within the LIGGGHTS® documentation; standard is auto
|
||||
CFDEM_LPP_DIR path, to the src directory of the local lpp installation :tb
|
||||
|
||||
extended block may be inserted above ". $CFDEM_bashrc":
|
||||
|
||||
CFDEM_SRC_DIR, can be used to use alternative src directory
|
||||
CFDEM_SOLVER_DIR, can be used to use alternative solver directory
|
||||
CFDEM_DOC_DIR, can be used to use alternative doc directory
|
||||
CFDEM_UT_DIR, can be used to use alternative utilities directory
|
||||
CFDEM_TUT_DIR, can be used to use alternative tutorials directory
|
||||
CFDEM_LIGGGHTS_MAKEFILE_POSTIFX, if you wish to compile LIGGGHTS® to CFDEM®coupling with a postfix auto Makefile; for more information on postfixes please read the LIGGGHTS® documentation
|
||||
CFDEM_VERBOSE, if set to false\, standard output of environment variables is suppressed :tb
|
||||
|
||||
:line
|
||||
additionalLibs:
|
||||
|
||||
The additionalLibs are used as a centralized system for adding libraries and paths to CFDEM®coupling compilations. There is and automated detection of your OpenFOAM® version, which should select the proper additionalLibs file.
|
||||
If the automated selection of the additionalLibs fails or if you wish to set it manually to a specific file, you may set the following environment variables above ". $CFDEM_bashrc":
|
||||
|
||||
CFDEM_ADD_LIBS_DIR, path containing the user-defined additionalLibs file
|
||||
CFDEM_ADD_LIBS_NAME, filename of the user-defined additionalLibs file :tb
|
||||
|
||||
even further customization with variables:
|
||||
|
||||
CFDEM_LAMMPS_LIB_DIR, alternative path to LIGGGHTS® lib folder containing additional LIGGGHTS® packages; e.g. ASPHERE
|
||||
CFDEM_LIGGGHTS_LIB_PATH, path to compiled LIGGGHTS® library; useful if the compiled LIGGGHTS® library has manually been moved from the LIGGGHTS® src path to an alternative location
|
||||
CFDEM_LIB_DIR, alternative target directory for CFDEM®coupling libraries
|
||||
CFDEM_USER_LIB_DIR, alternative target directory for CFDEM®coupling user-libraries
|
||||
CFDEM_APP_DIR, alternative target directory for CFDEMcoupling executables
|
||||
CFDEM_USER_APP_DIR, alternative target directory for CFDEM®coupling user-executables :tb
|
||||
|
||||
:line
|
||||
[Compile LIGGGHTS® and CFDEM®coupling] :link(ainstall_7)
|
||||
|
||||
LIGGGHTS® needs to be compiled as library with the cfdemCompLIG command. You can compile LIGGGHTS® manually as a shared library with "make -f Makefile.shlib <Makefilename>" within your LIGGGHTS® src directory.
|
||||
LIGGGHTS® is included into CFDEM®coupling by the creation of a symbolic link in $CFDEM_LIB_DIR to the LIGGGHTS shared library. This link is automatically created during the compilation of the CFDEM®coupling lagrangian library at the beginning of the make phase. This means even if you compile the lagrangian library manually with "wmake libso", the link is created.
|
||||
|
||||
|
||||
:line
|
||||
[Footnotes:] :link(footnotes)
|
||||
|
||||
OPENFOAM® is a registered trade mark of OpenCFD Limited, producer and distributor of the OpenFOAM software via wwww.openfoam.com.
|
||||
|
||||
:line
|
||||
1.3 Tutorials :link(1_3),h4
|
||||
|
||||
[General:]
|
||||
|
||||
Each solver of the CFDEMcoupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
|
||||
Each solver of the CFDEM®coupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
|
||||
|
||||
[Location:]
|
||||
|
||||
@ -86,15 +402,23 @@ Each case is structured in a directory called "CFD" covering the CFD relevant se
|
||||
|
||||
Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell script, executed by typing "./Allrun.sh". The successful run of the script might need some third party software (e.g. octave, evince, etc.).
|
||||
|
||||
A typical Allrun.sh script executes the following steps:
|
||||
|
||||
DEM: LIGGGHTS init run
|
||||
CFD: mesh generation (blockMesh)
|
||||
CFD: mesh decomposition (decomposePar)
|
||||
CFDEM: parallel CFDEM run; mpirun -np X cfdemSolverXXX -parallel
|
||||
post-processing :ul
|
||||
|
||||
[Settings:]
|
||||
|
||||
The main settings of a simulation are done via dictionaries:
|
||||
|
||||
The DEM setup of each case is defined by a "LIGGGHTS"_lig input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the "LIGGGHTS"_lig setup, please have a look at the "LIGGGHTS"_lig manual.
|
||||
The DEM setup of each case is defined by a "LIGGGHTS®"_lig input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the "LIGGGHTS®"_lig setup, please have a look at the "LIGGGHTS®"_lig manual.
|
||||
|
||||
Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). You can find more information on that in "OpenFOAM(R)(*)"_of documentations (www.openFoam.com)(*).
|
||||
Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). For settings related to the solver such as discretization schemes, solution settings for the equations and solver control (e.g. corrector or non-orthogonal corrector steps for non-orthogonal meshes) you can find more information in "OpenFOAM®(*)"_of documentations (www.openFoam.com)(*).
|
||||
|
||||
Settings of the coupling routines are defined in $caseDir/CFD/constant/"couplingProperies"_#1_3 (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/"liggghtsCommands"_#1_3 (allows to execute a LIGGGHTS command during a coupled simulation).
|
||||
Settings of the coupling routines are defined in $caseDir/CFD/constant/"couplingProperies"_#1_4 (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/"liggghtsCommands"_#1_5 (allows to execute a LIGGGHTS® command during a coupled simulation).
|
||||
|
||||
:line
|
||||
|
||||
@ -112,19 +436,20 @@ The dictionary is divided into two parts, "sub-models & settings" and "sub-model
|
||||
|
||||
In "sub-models & settings" the following routines must be specified:
|
||||
|
||||
modelType :ulb,l
|
||||
couplingInterval :l
|
||||
voidFractionModel :l
|
||||
locateModel :l
|
||||
meshMotionModel :l
|
||||
regionModel :l
|
||||
IOModel :l
|
||||
dataExchangeModel :l
|
||||
averagingModel :l
|
||||
forceModels :l
|
||||
momCoupleModels :l
|
||||
turbulenceModelType :l
|
||||
:ule
|
||||
modelType
|
||||
couplingInterval
|
||||
voidFractionModel
|
||||
locateModel
|
||||
meshMotionModel
|
||||
IOModel
|
||||
probeModel
|
||||
dataExchangeModel
|
||||
averagingModel
|
||||
clockModel
|
||||
smoothingModel
|
||||
forceModels
|
||||
momCoupleModels
|
||||
turbulenceModelType :ul
|
||||
|
||||
In "sub-model properties" sub-dictionaries might be defined to specify model specific parameters.
|
||||
|
||||
@ -134,18 +459,20 @@ Reasonable example settings for the "couplingProperties" dictionary are given in
|
||||
|
||||
modelType :pre
|
||||
|
||||
"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I.
|
||||
"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I, "A" refers to model type II and "B" refers to type III in the nomenclature used by Zhou et al.
|
||||
|
||||
couplingInterval :pre
|
||||
|
||||
The coupling interval determines the time passing between two CFD-DEM data exchanges.
|
||||
|
||||
A useful procedure would be:
|
||||
1) Set the DEM timestep in the in.xxx file according to the needs of the pure DEM problem.
|
||||
2) Set the "couplingInterval", which refers to the DEM timesteps. Depending on the problem you will need to have a close (small couplingInterval) or loose coupling.
|
||||
3) Choose the CFD timestep in the controlDict. It must be equal to or smaller than the coupling time, otherwise you will get the error: "Error - TS bigger than coupling interval!".
|
||||
|
||||
Example: DEMts=0.00001s, couplingInterval=10 exchange data (=couple) will happen every 0.0001s.
|
||||
Set the DEM timestep in the in.xxx file according to the needs of the pure DEM problem.
|
||||
Set the "couplingInterval", which refers to the DEM timesteps. Depending on the problem you will need to have a close (small couplingInterval) or loose coupling.
|
||||
Choose the CFD timestep in the controlDict. It must be equal to or smaller than the coupling time, otherwise you will get the error: "Error - TS bigger than coupling interval!".
|
||||
To ensure a synchronous run, the coupling time should be a multiple of the CFD timestep, or you'll get a warning "Warning - Coupling time (= DEM time step * coupling interval) is not a multiple of CFD time-step!" :ol
|
||||
|
||||
Example: DEMts=1.0e-5s, couplingInterval=10 exchange data (=couple) will happen every 1.0e-4s.
|
||||
|
||||
:line
|
||||
|
||||
@ -153,7 +480,9 @@ Example: DEMts=0.00001s, couplingInterval=10 exchange data (=couple) will happen
|
||||
|
||||
[General:]
|
||||
|
||||
In the "liggghtsCommands" dictionary liggghts commands being executed during a coupled CFD-DEM simulation are specified.
|
||||
In the "liggghtsCommands" dictionary LIGGGHTS® commands being executed during a coupled CFD-DEM simulation are specified.
|
||||
The most important command is the "run" command. After the start-up read of the LIGGGHTS®-input-script it is fed by CFDEM®coupling
|
||||
with commands. User-defined commands may be added.
|
||||
|
||||
[Location:] $caseDir/CFD/constant
|
||||
|
||||
@ -170,10 +499,6 @@ Reasonable example settings for the "liggghtsCommands" dictionary are given in t
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1.6 Models/Solvers :h4,link(cmd_5),link(comm)
|
||||
|
||||
This section lists all CFDEMcoupling sub-models and solvers alphabetically, with a separate
|
||||
@ -190,10 +515,14 @@ listing below of styles within certain commands.
|
||||
"averagingModel_dilute"_averagingModel_dilute.html,
|
||||
"cfdemSolverIB"_cfdemSolverIB.html,
|
||||
"cfdemSolverPiso"_cfdemSolverPiso.html,
|
||||
"cfdemSolverPisoSTM"_cfdemSolverPisoSTM.html,
|
||||
"cfdemSolverPisoScalar"_cfdemSolverPisoScalar.html,
|
||||
"clockModel"_clockModel.html,
|
||||
"clockModel_noClock"_clockModel_noClock.html,
|
||||
"clockModel_standardClock"_clockModel_standardClock.html,
|
||||
"couple/cfd"_fix_couple_cfd.html,
|
||||
"couple/cfd/force"_fix_couple_cfd_force.html,
|
||||
"couple/cfd/force/implicit"_fix_couple_cfd_force_implicit.html,
|
||||
"dataExchangeModel"_dataExchangeModel.html,
|
||||
"dataExchangeModel_noDataExchange"_dataExchangeModel_noDataExchange.html,
|
||||
"dataExchangeModel_oneWayVTK"_dataExchangeModel_oneWayVTK.html,
|
||||
@ -241,9 +570,8 @@ listing below of styles within certain commands.
|
||||
"probeModel"_probeModel.html,
|
||||
"probeModel_noProbe"_probeModel_noProbe.html,
|
||||
"probeModel_particleProbe"_probeModel_particleProbe.html,
|
||||
"regionModel"_regionModel.html,
|
||||
"regionModel_allRegion"_regionModel_allRegion.html,
|
||||
"scalarTransportModel"_scalarTransportModel.html,
|
||||
"scalarTransportModel_generalManual"_scalarTransportModel_generalManual.html,
|
||||
"smoothingModel"_smoothingModel.html,
|
||||
"smoothingModel_constDiffSmoothing"_smoothingModel_constDiffSmoothing.html,
|
||||
"smoothingModel_noSmoothing"_smoothingModel_noSmoothing.html,
|
||||
|
||||
BIN
doc/Eqs/Ksl.png
Executable file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
doc/Eqs/NavierStokesLiquSoli.png
Executable file
|
After Width: | Height: | Size: 7.0 KiB |
BIN
doc/Eqs/voidfractionModel_divided_pic1.png
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
doc/Eqs/voidfractionModel_divided_pic2.png
Executable file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
doc/Eqs/voidfractionModel_divided_pic3.png
Executable file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
doc/Eqs/voidfractionModel_divided_pic4.png
Executable file
|
After Width: | Height: | Size: 15 KiB |
BIN
doc/Eqs/voidfractionModel_divided_pic5.png
Executable file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
doc/Eqs/voidfractionModel_divided_pic6.png
Executable file
|
After Width: | Height: | Size: 1.9 KiB |
@ -19,11 +19,11 @@ model = name of IO-model to be applied :ul
|
||||
|
||||
IOModel "off";
|
||||
|
||||
Note: This examples list might not be complete - please look for other models (IOModel_XY) in this documentation.
|
||||
NOTE: This examples list might not be complete - please look for other models (IOModel_XY) in this documentation.
|
||||
|
||||
[Description:]
|
||||
|
||||
The IO-model is the base class to write data (e.g. particle properties) to files.
|
||||
The IO-model is the base class to write data (e.g. particle properties) to files within the CFD file-structure.
|
||||
|
||||
[Restrictions:]
|
||||
|
||||
@ -31,6 +31,6 @@ none.
|
||||
|
||||
[Related commands:]
|
||||
|
||||
Note: This examples list may be incomplete - please look for other models (IOModel_XY) in this documentation.
|
||||
"basicIO"_IOModel_basicIO.html, "noIO"_IOModel_noIO.html, "sophIO"_IOModel_sophIO.html, "trackIO"_IOModel_trackIO.html
|
||||
|
||||
[Default:] none.
|
||||
|
||||
BIN
doc/_build/doctrees/CFDEMcoupling_Manual.doctree
vendored
BIN
doc/_build/doctrees/IOModel.doctree
vendored
BIN
doc/_build/doctrees/IOModel_basicIO.doctree
vendored
BIN
doc/_build/doctrees/IOModel_sophIO.doctree
vendored
BIN
doc/_build/doctrees/IOModel_trackIO.doctree
vendored
BIN
doc/_build/doctrees/_tmp/sphinx_rtd_theme/README.doctree
vendored
Normal file
BIN
doc/_build/doctrees/_tmp/sphinx_rtd_theme/demo_docs/source/api.doctree
vendored
Normal file
BIN
doc/_build/doctrees/_tmp/sphinx_rtd_theme/demo_docs/source/demo.doctree
vendored
Normal file
BIN
doc/_build/doctrees/_tmp/sphinx_rtd_theme/demo_docs/source/index.doctree
vendored
Normal file
BIN
doc/_build/doctrees/_tmp/sphinx_rtd_theme/demo_docs/source/list.doctree
vendored
Normal file
BIN
doc/_build/doctrees/_tmp/sphinx_rtd_theme/demo_docs/source/long.doctree
vendored
Normal file
BIN
doc/_build/doctrees/_tmp/sphinx_rtd_theme/demo_docs/source/toc.doctree
vendored
Normal file
BIN
doc/_build/doctrees/averagingModel.doctree
vendored
BIN
doc/_build/doctrees/averagingModel_dense.doctree
vendored
BIN
doc/_build/doctrees/averagingModel_dilute.doctree
vendored
BIN
doc/_build/doctrees/cfdemSolverIB.doctree
vendored
BIN
doc/_build/doctrees/cfdemSolverPiso.doctree
vendored
BIN
doc/_build/doctrees/cfdemSolverPisoSTM.doctree
vendored
Normal file
BIN
doc/_build/doctrees/cfdemSolverPisoScalar.doctree
vendored
BIN
doc/_build/doctrees/clockModel.doctree
vendored
BIN
doc/_build/doctrees/clockModel_noClock.doctree
vendored
BIN
doc/_build/doctrees/dataExchangeModel.doctree
vendored
BIN
doc/_build/doctrees/environment.pickle
vendored
BIN
doc/_build/doctrees/fix_couple_cfd.doctree
vendored
Normal file
BIN
doc/_build/doctrees/fix_couple_cfd_force.doctree
vendored
Normal file
BIN
doc/_build/doctrees/fix_couple_cfd_force_implicit.doctree
vendored
Normal file
BIN
doc/_build/doctrees/forceModel.doctree
vendored
BIN
doc/_build/doctrees/forceModel_DiFeliceDrag.doctree
vendored
BIN
doc/_build/doctrees/forceModel_GidaspowDrag.doctree
vendored
BIN
doc/_build/doctrees/forceModel_KochHillDrag.doctree
vendored
BIN
doc/_build/doctrees/forceModel_MeiLift.doctree
vendored
BIN
doc/_build/doctrees/forceModel_noDrag.doctree
vendored
BIN
doc/_build/doctrees/forceModel_viscForce.doctree
vendored
BIN
doc/_build/doctrees/forceSubModel.doctree
vendored
BIN
doc/_build/doctrees/githubAccess_public.doctree
vendored
BIN
doc/_build/doctrees/liggghtsCommandModel.doctree
vendored
BIN
doc/_build/doctrees/locateModel.doctree
vendored
BIN
doc/_build/doctrees/meshMotionModel.doctree
vendored
BIN
doc/_build/doctrees/momCoupleModel.doctree
vendored
BIN
doc/_build/doctrees/probeModel.doctree
vendored
BIN
doc/_build/doctrees/probeModel_particleProbe.doctree
vendored
BIN
doc/_build/doctrees/regionModel.doctree
vendored
BIN
doc/_build/doctrees/regionModel_allRegion.doctree
vendored
BIN
doc/_build/doctrees/scalarTransportModel.doctree
vendored
BIN
doc/_build/doctrees/scalarTransportModel_generalManual.doctree
vendored
Normal file
BIN
doc/_build/doctrees/smoothingModel.doctree
vendored
BIN
doc/_build/doctrees/voidFractionModel.doctree
vendored
476
doc/_build/html/CFDEMcoupling_Manual.html
vendored
@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>CFDEMcoupling Documentation — CFDEMcoupling v3.X documentation</title>
|
||||
<title>CFDEM®coupling Documentation — CFDEMcoupling v3.X documentation</title>
|
||||
|
||||
|
||||
|
||||
@ -82,9 +82,9 @@
|
||||
|
||||
<!-- Local TOC -->
|
||||
<div class="local-toc"><ul>
|
||||
<li><a class="reference internal" href="#">CFDEMcoupling Documentation</a><ul>
|
||||
<li><a class="reference internal" href="#">CFDEM®coupling Documentation</a><ul>
|
||||
<li><a class="reference internal" href="#contents">Contents</a><ul>
|
||||
<li><a class="reference internal" href="#about-cfdemcoupling">About CFDEMcoupling</a></li>
|
||||
<li><a class="reference internal" href="#about-cfdemcoupling">About CFDEM®coupling</a></li>
|
||||
<li><a class="reference internal" href="#installation">Installation</a></li>
|
||||
<li><a class="reference internal" href="#tutorials">Tutorials</a></li>
|
||||
<li><a class="reference internal" href="#couplingproperties-dictionary">“couplingProperties” dictionary</a></li>
|
||||
@ -124,7 +124,7 @@
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="#">Docs</a> »</li>
|
||||
|
||||
<li>CFDEMcoupling Documentation</li>
|
||||
<li>CFDEM®coupling Documentation</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
|
||||
|
||||
@ -140,15 +140,15 @@
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="cfdemcoupling-documentation">
|
||||
<h1>CFDEMcoupling Documentation<a class="headerlink" href="#cfdemcoupling-documentation" title="Permalink to this headline">¶</a></h1>
|
||||
<h1>CFDEM®coupling Documentation<a class="headerlink" href="#cfdemcoupling-documentation" title="Permalink to this headline">¶</a></h1>
|
||||
<hr class="docutils" />
|
||||
<img alt="_images/Portfolio_CFDEMcoupling.png" class="align-center" src="_images/Portfolio_CFDEMcoupling.png" />
|
||||
<hr class="docutils" />
|
||||
<div class="section" id="contents">
|
||||
<h2>Contents<a class="headerlink" href="#contents" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The CFDEMcoupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEMcoupling documentation can be improved.</p>
|
||||
<p>The CFDEM®coupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEM®coupling documentation can be improved.</p>
|
||||
<div class="line-block">
|
||||
<div class="line">1.1 <a class="reference internal" href="#id1"><em>About CFDEMcoupling</em></a></div>
|
||||
<div class="line">1.1 <a class="reference internal" href="#id1"><em>About CFDEM®coupling</em></a></div>
|
||||
<div class="line">1.2 <a class="reference internal" href="#id2"><em>Installation</em></a></div>
|
||||
<div class="line">1.3 <a class="reference internal" href="#id3"><em>Tutorials</em></a></div>
|
||||
<div class="line">1.4 <a class="reference internal" href="#id4"><em>couplingProperties dictionary</em></a></div>
|
||||
@ -158,8 +158,8 @@
|
||||
</div>
|
||||
<hr class="docutils" />
|
||||
<div class="section" id="about-cfdemcoupling">
|
||||
<span id="id1"></span><h3>About CFDEMcoupling<a class="headerlink" href="#about-cfdemcoupling" title="Permalink to this headline">¶</a></h3>
|
||||
<p>CFDEM coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of <a class="reference external" href="http://www.cfdem.com">LIGGGHTS</a> DEM code and the Open Source CFD package <a class="reference external" href="http://www.openfoam.com">OpenFOAM(R)(*)</a>. The CFDEMcoupling toolbox allows to expand standard CFD solvers of <a class="reference external" href="http://www.openfoam.com">OpenFOAM(R)(*)</a> to include a coupling to the DEM code <a class="reference external" href="http://www.cfdem.com">LIGGGHTS</a>. In this toolbox the particle representation within the CFD solver is organized by “cloud” classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.</p>
|
||||
<span id="id1"></span><h3>About CFDEM®coupling<a class="headerlink" href="#about-cfdemcoupling" title="Permalink to this headline">¶</a></h3>
|
||||
<p>CFDEM®coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of <a class="reference external" href="https://www.cfdem.com/liggghtsr-open-source-discrete-element-method-particle-simulation-code">LIGGGHTS®</a> DEM code and the Open Source CFD package <a class="reference external" href="http://www.openfoam.com">OpenFOAM®(*)</a>. The CFDEM®coupling toolbox allows to expand standard CFD solvers of <a class="reference external" href="http://www.openfoam.com">OpenFOAM®(*)</a> to include a coupling to the DEM code <a class="reference external" href="https://www.cfdem.com/liggghtsr-open-source-discrete-element-method-particle-simulation-code">LIGGGHTS®</a>. In this toolbox the particle representation within the CFD solver is organized by “cloud” classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.</p>
|
||||
<p>The coupled solvers run fully parallel on distributed-memory clusters. Features are:</p>
|
||||
<ul class="simple">
|
||||
<li>its modular approach allows users to easily implement new models</li>
|
||||
@ -170,42 +170,404 @@
|
||||
</ul>
|
||||
<p>The file structure:</p>
|
||||
<ul class="simple">
|
||||
<li><em>src</em> directory including the source files of the coupling toolbox and models</li>
|
||||
<li><em>applications</em> directory including the solver files for coupled CFD-DEM simulations</li>
|
||||
<li><em>doc</em> directory including the documentation of CFDEMcoupling</li>
|
||||
<li><em>src</em> directory contains the source-code files of the CFDEM®coupling toolbox library and models</li>
|
||||
<li><em>applications</em> directory contains the solver source files for coupled CFD-DEM simulations</li>
|
||||
<li><em>doc</em> directory including the documentation of CFDEM®coupling</li>
|
||||
<li><em>tutorials</em> directory including basic tutorial cases showing the functionality</li>
|
||||
</ul>
|
||||
<p>Details on installation are given on the <a class="reference external" href="http://www.cfdem.com">CFDEMproject WWW Site</a> .
|
||||
The functionality of this CFD-DEM framework is described via <em class="xref std std-ref">tutorial cases</em> showing how to use different solvers and models.</p>
|
||||
<p>CFDEMcoupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.</p>
|
||||
<p>CFDEMcoupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).</p>
|
||||
<p>Core development of CFDEMcoupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012</p>
|
||||
<p>This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012</p>
|
||||
<p>The functionality of this CFD-DEM framework is described via <a class="reference internal" href="#id3"><em>tutorial cases</em></a> showing how to use different solvers and models.</p>
|
||||
<p>CFDEM®coupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.</p>
|
||||
<p>CFDEM®coupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).</p>
|
||||
<p>Core development of CFDEM®coupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012</p>
|
||||
<p>This documentation was written by DCS Computing GmbH, 2017</p>
|
||||
<hr class="docutils" />
|
||||
<p>How CFDEM®coupling works, a short description:</p>
|
||||
<p>The launched applications are CFDEM®coupling solvers, e.g. cfdemSolverPiso. Its job is to solve the Navier-Stokes equations with a solid phase present.
|
||||
A general formulation with a solid phase:</p>
|
||||
<img alt="_images/NavierStokesLiquSoli.png" class="align-center" src="_images/NavierStokesLiquSoli.png" />
|
||||
<p>In general “l” denotes liquid and “s” solid properties. AlphaL is the fluid (liquid) content of a calculation-cell, the voidfraction. “rhoL” is the fluid (liquid) density, uL the fluid (liquid) velocity, p the pressure, Ksl the implicit momentum exchange term between solid and liquid phase, us the solid velocity, tau the liquid-stress-tensor, g the gravity vector and t the time. “f” is a general explicit term which can be used to explicitely exchange momentum from the solid to the liquid phase.</p>
|
||||
<p>All cfdemSolvers use a “cfdemCloud” object, which takes care of many things. The most important are:</p>
|
||||
<ul class="simple">
|
||||
<li>Control and communicate with the LIGGGHTS® library object. (liggghtsCommandModel and dataExchangeModel)</li>
|
||||
<li>Find the cell ID of a certain position, e.g. the particle center. (locateModel)</li>
|
||||
<li>Calculate the voidfraction field from particle positions, particle volumes and cell volumes. (voidFractionModel)</li>
|
||||
<li>Calculate the forces on the CFD field and the particle forces. These may be assembled by various forceModels, e.g. buyoancy and a drag-law. (forceModel and forceSubModel)</li>
|
||||
<li>Calculate the implicit and if necessary explicit source terms from the force fields for the Navier-Stokes-Equations, the solver needs to solve. (momCoupleModel)</li>
|
||||
<li>Calculate the “Us” field from particle data, map the particle data to the CFD-field. (averagingModel)</li>
|
||||
</ul>
|
||||
<p>In the standard setting the momentum coupling model takes the calculated forces of forceModels and produces the implicit momentum source term Ksl with</p>
|
||||
<img alt="_images/Ksl.png" class="align-center" src="_images/Ksl.png" />
|
||||
<p>More advanced solvers have also an explicit source term field f which is assembled from those forces which have the treatForceExplicit=true flag (see forceSubModels).</p>
|
||||
<hr class="docutils" />
|
||||
<p>(*) This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.</p>
|
||||
<hr class="docutils" />
|
||||
</div>
|
||||
<div class="section" id="installation">
|
||||
<span id="id2"></span><h3>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h3>
|
||||
<p>Please follow the installation routine provided at www.cfdem.com.
|
||||
In order to get the latest code version, please use the git repository at <a class="reference external" href="http://github.com">http://github.com</a> (<a class="reference internal" href="githubAccess_public.html"><em>githubAccess</em></a>).</p>
|
||||
<hr class="docutils" />
|
||||
<p>This section describes how to download repositories of the CFDEM®project from <a class="reference external" href="http://github.com/">github.com</a> .
|
||||
After setting some environment variables, LIGGGHTS® and CFDEM®coupling can be compiled.</p>
|
||||
<p><strong>Procedure:</strong></p>
|
||||
<p>Short summary:</p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#install-1"><em>Install git</em></a></li>
|
||||
<li><a class="reference internal" href="#install-2"><em>Download CFDEM®project software</em></a></li>
|
||||
<li><a class="reference internal" href="#install-3"><em>Download the correct OpenFOAM® version</em></a></li>
|
||||
<li><a class="reference internal" href="#install-4"><em>Setup prerequisites</em></a></li>
|
||||
<li><a class="reference internal" href="#install-5"><em>Setup and compile OpenFOAM®</em></a></li>
|
||||
<li><a class="reference internal" href="#install-6"><em>Set environment variables and paths</em></a></li>
|
||||
<li><a class="reference internal" href="#install-7"><em>Compile LIGGGHTS® and CFDEM®coupling</em></a></li>
|
||||
<li><a class="reference internal" href="#additionalinstall"><em>Additional information</em></a></li>
|
||||
<li><a class="reference internal" href="#install-8"><em>Run your own cases</em></a></li>
|
||||
</ul>
|
||||
<hr class="docutils" />
|
||||
<p id="install-1"><strong>Install git:</strong></p>
|
||||
<p>This step is optional, but recommended. Git allows you to update the source code very easily with the git pull command.
|
||||
On debian based systems you can run</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>sudo apt-get install git-core
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Similar packages are available on other systems too:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>sudo zypper install git-core
|
||||
sudo yum install git
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="admonition note">
|
||||
<p class="first admonition-title">Note</p>
|
||||
<p class="last">In this tutorial the git protocol is used to transfer files. If port 9418 is closed for internet connections, please switch to “<a class="reference external" href="https://">https://</a>” instead of “git://” for git clone commands.</p>
|
||||
</div>
|
||||
<hr class="docutils" />
|
||||
<p id="install-2"><strong>Download CFDEMproject software:</strong></p>
|
||||
<p>With git you can clone git repositories from <a class="reference external" href="http://github.com/">github</a> . The following terminal commands will download the CFDEM®project software to your machine in the typical folder structure. The download of the post-processing tool LPP is optional and requires python-numpy.</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>cd $HOME
|
||||
mkdir CFDEM
|
||||
cd CFDEM
|
||||
git clone git://github.com/CFDEMproject/CFDEMcoupling-PUBLIC.git
|
||||
cd $HOME
|
||||
mkdir LIGGGHTS
|
||||
cd LIGGGHTS
|
||||
git clone git://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git
|
||||
git clone git://github.com/CFDEMproject/LPP.git lpp
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>If you do not have git, you can use the download buttons after visiting a repository in the <a class="reference external" href="http://github.com/CFDEMproject">CFDEMproject project page</a> and unzip the archives to the proper locations. Typically github tags the folders with “-master”, please rename them with</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>cd $HOME/CFDEM
|
||||
mv CFDEMcoupling-PUBLIC-master CFDEMcoupling-PUBLIC
|
||||
cd $HOME/LIGGGHTS
|
||||
mv LIGGGHTS-PUBLIC-master LIGGGHTS-PUBLIC
|
||||
mv LPP-master lpp
|
||||
</pre></div>
|
||||
</div>
|
||||
<hr class="docutils" />
|
||||
<p id="install-3"><strong>Download the correct OpenFOAM® version:</strong></p>
|
||||
<p>All mentions of OpenFOAM® refer to <a class="reference internal" href="#footnotes"><em>this</em></a> . It is strongly recommended to compile OpenFOAM® yourself with the latest compatible version.
|
||||
The latest compatible OpenFOAM®-version can be found in the in your local copy of CFDEM®coupling in src/lagrangian/cfdemParticle/cfdTools/versionInfo.H, or directly at <a class="reference external" href="https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lagrangian/cfdemParticle/cfdTools/versionInfo.H">github</a> .
|
||||
Look for the git commit hashtag in the following line:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>word OFversion="<OF-Release>-commit-<commitHashtag>";
|
||||
e.g. word OFversion="3.0.x-commit-ac3f6c67e02f0aac3777c27f9fb7558fc3536e37";
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>With git you can use the following recipe to get the correct version:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>cd $HOME
|
||||
mkdir OpenFOAM
|
||||
cd OpenFOAM
|
||||
git clone git://github.com/OpenFOAM/OpenFOAM-<OF-Release>.git
|
||||
git clone git://github.com/OpenFOAM/ThirdParty-<OF-Release>.git
|
||||
cd OpenFOAM-<OF-Release>
|
||||
git checkout <commitHashtag>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Without git you can visit git://github.com/OpenFOAM/OpenFOAM-<OF-Release>/tree/<commitHashtag> and use the download button.</p>
|
||||
<p>Other OpenFOAM® versions can be used for compilation, but aren’t officially supported. The list includes 4.x, 2.4.x, 1612+, 1606+ and extend-3.2</p>
|
||||
<hr class="docutils" />
|
||||
<p id="install-4"><strong>Setup prerequisites for CFDEM®project:</strong></p>
|
||||
<p>Prerequisites for OpenFOAM® can be found <a class="reference external" href="https://openfoam.org/download/source/">here</a> .
|
||||
On an Ubuntu system (14.04+), you can use the following</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev libscotch-dev libptscotch-dev
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>CFDEM®project requires OpenFOAM® with a working MPI version.
|
||||
Optional, but strongly recommended is the use of <a class="reference external" href="http://www.vtk.org/">VTK</a> . VTK is used to directly write data in vtk format, which is readable by <a class="reference external" href="https://www.paraview.org/">ParaView</a> . The minimum version is VTK 5.8, recommended is 6.3. On debian-based systems it is sufficient to run</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>sudo apt-get install libvtk6-dev
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>For manual VTK compilation, please read the <a class="reference internal" href="#additionalinstall"><em>additional installation hints</em></a> .</p>
|
||||
<p>The post-processing tool lpp requires the python numpy package.</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>sudo apt-get install python-numpy
|
||||
</pre></div>
|
||||
</div>
|
||||
<hr class="docutils" />
|
||||
<p id="install-5"><strong>Setup and compile OpenFOAM®</strong></p>
|
||||
<p>You can follow the OpenFOAM® git compilation <a class="reference external" href="https://openfoam.org/download/source/">instructions</a> , with a small number of exceptions:
|
||||
CFDEM®coupling requires the WM_LABEL_SIZE=32 , which is the standard setting.</p>
|
||||
<p>On an Ubuntu system (14.04+), you can use the following steps to install OpenFOAM®:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>gedit ~/.bashrc
|
||||
add the following two lines in the end, where <NofProcs> is the integer number of the processors you want to compile with. Save and exit gedit.
|
||||
"export WM_NCOMPPROCS=<NofProcs>"
|
||||
"source $HOME/OpenFOAM/OpenFOAM-<OF-Release>/etc/bashrc"
|
||||
now again in the terminal:
|
||||
source ~/.bashrc
|
||||
cd $WM_PROJECT_DIR
|
||||
foamSystemCheck
|
||||
./Allwmake
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Additional OpenFOAM® installation hints can be found <a class="reference internal" href="#additionalinstall"><em>here</em></a> .</p>
|
||||
<hr class="docutils" />
|
||||
<p id="install-6"><strong>Set environment variables and paths</strong></p>
|
||||
<p>Typically the CFDEM®coupling folder is tagged with the OpenFOAM® version number. To do this, perform the following steps:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>cd $HOME/CFDEM
|
||||
mv CFDEMcoupling-PUBLIC CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>You need to set some environment variables in ~/.bashrc (if you use c-shell, manipulate ~/.cshrc accordingly). Open your .bashrc and the CFDEM®coupling bashrc file.</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>gedit ~/.bashrc $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Add the STANDARD block to the end of your bashrc and modify entries if necessary. Make sure the statements are not comments; remove the “#”. Similar to:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>#================================================#
|
||||
#- source cfdem env vars
|
||||
export CFDEM_VERSION=PUBLIC
|
||||
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
|
||||
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
|
||||
export CFDEM_bashrc=$CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle/etc/bashrc
|
||||
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
|
||||
export CFDEM_LIGGGHTS_MAKEFILE_NAME=auto
|
||||
export CFDEM_LPP_DIR=$HOME/LIGGGHTS/lpp/src
|
||||
. $CFDEM_bashrc
|
||||
#================================================#
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>You may insert the EXTENDED block above ”. $CFDEM_bashrc” for further customization.
|
||||
The detailed description for allowed entries can be found <a class="reference internal" href="#additionalinstall"><em>here</em></a> .</p>
|
||||
<p>To load and check the environment you can run now</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>source ~/.bashrc
|
||||
cfdemSysTest
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="admonition note">
|
||||
<p class="first admonition-title">Note</p>
|
||||
<p class="last">Many useful aliases are set with sourcing of the CFDEMcoupling bashrc, e.g. cfdemEtc . Make use of them!</p>
|
||||
</div>
|
||||
<hr class="docutils" />
|
||||
<p id="install-7"><strong>Compile LIGGGHTS® and CFDEM®coupling</strong></p>
|
||||
<p>To compile CFDEM®project open a new terminal and run</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre><span class="n">cfdemCompCFDEMall</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>It compiles the LIGGGHTS® executable, LIGGGHTS® as a shared library, the CFDEM®coupling libraries, CFDEM®coupling solvers and CFDEM®coupling utilities. The compilation will stop, if build errors occur. Having a previous manually compiled LIGGGHTS® is not enough, it needs to be compiled as shared library with the cfdemCompLIG command.</p>
|
||||
<p>As step by step compilation of only specific parts, the following commands are available:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre><span class="n">cfdemCompLIG</span>
|
||||
<span class="n">cfdemCompCFDEMsrc</span>
|
||||
<span class="n">cfdemCompCFDEmsol</span>
|
||||
<span class="n">cfdenCompCFDEMuti</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>The compilation is automatically logged and the logs can be found in:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>In case questions concerning the installation arise, please feel free to contact our forum at <a class="reference external" href="http://www.cfdem.com">www.cfdem.com</a> .</p>
|
||||
<hr class="docutils" />
|
||||
<p id="install-8"><strong>Run your own cases</strong></p>
|
||||
<p>If you want to run your own cases, please do so in <em>$CFDEM_PROJECT_USER_DIR/run</em> which is automatically being generated. E.g. copy one of the tutorial cases there, adapt it to your needs.
|
||||
Changes in $CFDEM_TUT_DIR might be lost after every <em>git stash</em>.</p>
|
||||
<p>You can run all the tutorial cases by executing the alias cfdemTestTUT.
|
||||
Alternatively you can run each tutorial using the <em>Allrun.sh</em> scripts in the tutorial directories.</p>
|
||||
<hr class="docutils" />
|
||||
<p><strong>Backwards Compatibility:</strong></p>
|
||||
<p>Basically CFDEM®coupling supports one OpenFOAM® version therefore all settings are prepared for that. Nevertheless we try to maintain backwards compatibility as long as it works with reasonable effort.</p>
|
||||
<p>The supported OpenFOAM® and LIGGGHTS® versions are stated in:
|
||||
src/lagrangian/cfdemParticle/cfdTools/versionInfo.H</p>
|
||||
<p>For using other versions you can manipulate:
|
||||
src/lagrangian/cfdemParticle/etc/OFversion/OFversion.H
|
||||
(still not all functionality might work then!)</p>
|
||||
<hr class="docutils" />
|
||||
<p id="additionalinstall"><strong>Installation, additional information</strong></p>
|
||||
<hr class="docutils" />
|
||||
<p><strong>Procedure:</strong></p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#ainstall-4"><em>Setup prerequisites</em></a></li>
|
||||
<li><a class="reference internal" href="#ainstall-5"><em>Setup and compile OpenFOAM®</em></a></li>
|
||||
<li><a class="reference internal" href="#ainstall-6"><em>Set environment variables and paths</em></a></li>
|
||||
<li><a class="reference internal" href="#ainstall-7"><em>Compile LIGGGHTS® and CFDEM®coupling</em></a></li>
|
||||
</ul>
|
||||
<hr class="docutils" />
|
||||
<p id="ainstall-4"><strong>Setup prerequisites for CFDEM®project:</strong></p>
|
||||
<p>If you need to compile VTK on your machine yourself, we recommend version 6.3, which is available <a class="reference external" href="http://www.vtk.org/files/release/6.3/VTK-6.3.0.zip">here</a> . The installation guide is available <a class="reference external" href="http://www.vtk.org/Wiki/VTK/Configure_and_Build#On_Unix-like_systems">here</a> .</p>
|
||||
<p>Please note the VTK components necessary need cmake, MPI and some X11 libraries on your machine. Compilation using ccmake is recommended. In the standard configuration MPI related packages are disabled. Enable Parallel / MPI packages during configuration. For VTK-6.3 set VTK_Group_MPI:BOOL=ON .</p>
|
||||
<hr class="docutils" />
|
||||
<p id="ainstall-5"><strong>Setup and compile OpenFOAM®</strong></p>
|
||||
<p>All mentions of OpenFOAM® refer to <a class="reference external" href="afootnotes">this</a> .</p>
|
||||
<p>Often problems arise configuring OpenFOAM® to work with a specific MPI installation on a cluster. However it has built-in capability to work with nearly any MPI implementation.
|
||||
Set the following variable in the OpenFOAM® bashrc:</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>export WM_MPLIB=SYSTEMMPI
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Defining the following variables in your ~/.bashrc BEFORE the sourcing of OpenFOAM® will take care of the rest. This is an example for older MVAPICH installations where there is no libmpi.so, only libmpich.so :</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre>export MPI_ROOT=<path/to/mpi/installation>
|
||||
export MPI_ARCH_PATH=$MPI_ROOT
|
||||
export MPI_ARCH_FLAGS="-DMPICH_SKIP_MPICXX"
|
||||
export MPI_ARCH_INC="-I$MPI_ARCH_PATH/include"
|
||||
export MPI_ARCH_LIBS='-L$(MPI_ARCH_PATH)/lib -lmpich -lmpichcxx -lmpl -lopa -lrt'
|
||||
</pre></div>
|
||||
</div>
|
||||
<hr class="docutils" />
|
||||
<p id="ainstall-6"><strong>Set environment variables and paths</strong></p>
|
||||
<p>Detailed description of the environment variables:</p>
|
||||
<p>standard block:</p>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="13%" />
|
||||
<col width="74%" />
|
||||
<col width="13%" />
|
||||
</colgroup>
|
||||
<tbody valign="top">
|
||||
<tr class="row-odd"><td>CFDEM_VERSION</td>
|
||||
<td>CFDEMcoupling branch name; e.g. PUBLIC</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_PROJECT_DIR</td>
|
||||
<td>path to the installation directory of CFDEM®coupling</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_PROJECT_USER_DIR</td>
|
||||
<td>path to the user directory; used to store users simulation cases and source-code</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_bashrc</td>
|
||||
<td>location of the CFDEM®coupling bashrc (or cshrc)</td>
|
||||
<td>which sets up the environment</td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_LIGGGHTS_SRC_DIR</td>
|
||||
<td>path to the LIGGGHTS src directory</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_LIGGGHTS_MAKEFILE_NAME</td>
|
||||
<td>Name of the LIGGGHTS® Makefile which defines how to compile LIGGGHTS®; more information on which Makefile to select is within the LIGGGHTS® documentation; standard is auto</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_LPP_DIR path</td>
|
||||
<td>to the src directory of the local lpp installation</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>extended block may be inserted above ”. $CFDEM_bashrc”:</p>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="13%" />
|
||||
<col width="64%" />
|
||||
<col width="23%" />
|
||||
</colgroup>
|
||||
<tbody valign="top">
|
||||
<tr class="row-odd"><td>CFDEM_SRC_DIR</td>
|
||||
<td>can be used to use alternative src directory</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_SOLVER_DIR</td>
|
||||
<td>can be used to use alternative solver directory</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_DOC_DIR</td>
|
||||
<td>can be used to use alternative doc directory</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_UT_DIR</td>
|
||||
<td>can be used to use alternative utilities directory</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_TUT_DIR</td>
|
||||
<td>can be used to use alternative tutorials directory</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_LIGGGHTS_MAKEFILE_POSTIFX</td>
|
||||
<td>if you wish to compile LIGGGHTS® to CFDEM®coupling with a postfix auto Makefile; for more information on postfixes please read the LIGGGHTS® documentation</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_VERBOSE</td>
|
||||
<td>if set to false</td>
|
||||
<td>standard output of environment variables is suppressed</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr class="docutils" />
|
||||
<p>additionalLibs:</p>
|
||||
<p>The additionalLibs are used as a centralized system for adding libraries and paths to CFDEM®coupling compilations. There is and automated detection of your OpenFOAM® version, which should select the proper additionalLibs file.
|
||||
If the automated selection of the additionalLibs fails or if you wish to set it manually to a specific file, you may set the following environment variables above ”. $CFDEM_bashrc”:</p>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="28%" />
|
||||
<col width="72%" />
|
||||
</colgroup>
|
||||
<tbody valign="top">
|
||||
<tr class="row-odd"><td>CFDEM_ADD_LIBS_DIR</td>
|
||||
<td>path containing the user-defined additionalLibs file</td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_ADD_LIBS_NAME</td>
|
||||
<td>filename of the user-defined additionalLibs file</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>even further customization with variables:</p>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="14%" />
|
||||
<col width="86%" />
|
||||
</colgroup>
|
||||
<tbody valign="top">
|
||||
<tr class="row-odd"><td>CFDEM_LAMMPS_LIB_DIR</td>
|
||||
<td>alternative path to LIGGGHTS® lib folder containing additional LIGGGHTS® packages; e.g. ASPHERE</td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_LIGGGHTS_LIB_PATH</td>
|
||||
<td>path to compiled LIGGGHTS® library; useful if the compiled LIGGGHTS® library has manually been moved from the LIGGGHTS® src path to an alternative location</td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_LIB_DIR</td>
|
||||
<td>alternative target directory for CFDEM®coupling libraries</td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_USER_LIB_DIR</td>
|
||||
<td>alternative target directory for CFDEM®coupling user-libraries</td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>CFDEM_APP_DIR</td>
|
||||
<td>alternative target directory for CFDEMcoupling executables</td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>CFDEM_USER_APP_DIR</td>
|
||||
<td>alternative target directory for CFDEM®coupling user-executables</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr class="docutils" />
|
||||
<p id="ainstall-7"><strong>Compile LIGGGHTS® and CFDEM®coupling</strong></p>
|
||||
<p>LIGGGHTS® needs to be compiled as library with the cfdemCompLIG command. You can compile LIGGGHTS® manually as a shared library with “make -f Makefile.shlib <Makefilename>” within your LIGGGHTS® src directory.
|
||||
LIGGGHTS® is included into CFDEM®coupling by the creation of a symbolic link in $CFDEM_LIB_DIR to the LIGGGHTS shared library. This link is automatically created during the compilation of the CFDEM®coupling lagrangian library at the beginning of the make phase. This means even if you compile the lagrangian library manually with “wmake libso”, the link is created.</p>
|
||||
<hr class="docutils" />
|
||||
<p id="footnotes"><strong>Footnotes:</strong></p>
|
||||
<p>OPENFOAM® is a registered trade mark of OpenCFD Limited, producer and distributor of the OpenFOAM software via wwww.openfoam.com.</p>
|
||||
<hr class="docutils" />
|
||||
</div>
|
||||
<div class="section" id="tutorials">
|
||||
<span id="id3"></span><h3>Tutorials<a class="headerlink" href="#tutorials" title="Permalink to this headline">¶</a></h3>
|
||||
<p><strong>General:</strong></p>
|
||||
<p>Each solver of the CFDEMcoupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via “Allrun.sh” shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).</p>
|
||||
<p>Each solver of the CFDEM®coupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via “Allrun.sh” shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).</p>
|
||||
<p><strong>Location:</strong></p>
|
||||
<p>The tutorials can be found in the directory $CFDEM_PROJECT_DIR/tutorials, which can be reached by typing “cfdemTut”</p>
|
||||
<p><strong>Structure:</strong></p>
|
||||
<p>Each case is structured in a directory called “CFD” covering the CFD relevant settings and data, and a dirctory called “DEM” covering the DEM relevant settings and data. This allows to easily expand a pure CFD or DEM simulation case to a coupled case.</p>
|
||||
<p><strong>Usage:</strong></p>
|
||||
<p>Provided that the installation is correct, the tutorials can be run via “Allrun.sh” shell script, executed by typing ”./Allrun.sh”. The successful run of the script might need some third party software (e.g. octave, evince, etc.).</p>
|
||||
<p>A typical Allrun.sh script executes the following steps:</p>
|
||||
<ul class="simple">
|
||||
<li>DEM: LIGGGHTS init run</li>
|
||||
<li>CFD: mesh generation (blockMesh)</li>
|
||||
<li>CFD: mesh decomposition (decomposePar)</li>
|
||||
<li>CFDEM: parallel CFDEM run; mpirun -np X cfdemSolverXXX -parallel</li>
|
||||
<li>post-processing</li>
|
||||
</ul>
|
||||
<p><strong>Settings:</strong></p>
|
||||
<p>The main settings of a simulation are done via dictionaries:</p>
|
||||
<p>The DEM setup of each case is defined by a <a class="reference external" href="http://www.cfdem.com">LIGGGHTS</a> input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the <a class="reference external" href="http://www.cfdem.com">LIGGGHTS</a> setup, please have a look at the <a class="reference external" href="http://www.cfdem.com">LIGGGHTS</a> manual.</p>
|
||||
<p>Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). You can find more information on that in <a class="reference external" href="http://www.openfoam.com">OpenFOAM(R)(*)</a> documentations (www.openFoam.com)(*).</p>
|
||||
<p>Settings of the coupling routines are defined in $caseDir/CFD/constant/<a class="reference internal" href="#id3"><em>couplingProperies</em></a> (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/<a class="reference internal" href="#id3"><em>liggghtsCommands</em></a> (allows to execute a LIGGGHTS command during a coupled simulation).</p>
|
||||
<p>The DEM setup of each case is defined by a <a class="reference external" href="https://www.cfdem.com/liggghtsr-open-source-discrete-element-method-particle-simulation-code">LIGGGHTS®</a> input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the <a class="reference external" href="https://www.cfdem.com/liggghtsr-open-source-discrete-element-method-particle-simulation-code">LIGGGHTS®</a> setup, please have a look at the <a class="reference external" href="https://www.cfdem.com/liggghtsr-open-source-discrete-element-method-particle-simulation-code">LIGGGHTS®</a> manual.</p>
|
||||
<p>Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). For settings related to the solver such as discretization schemes, solution settings for the equations and solver control (e.g. corrector or non-orthogonal corrector steps for non-orthogonal meshes) you can find more information in <a class="reference external" href="http://www.openfoam.com">OpenFOAM®(*)</a> documentations (www.openFoam.com)(*).</p>
|
||||
<p>Settings of the coupling routines are defined in $caseDir/CFD/constant/<a class="reference internal" href="#id4"><em>couplingProperies</em></a> (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/<a class="reference internal" href="#id5"><em>liggghtsCommands</em></a> (allows to execute a LIGGGHTS® command during a coupled simulation).</p>
|
||||
<hr class="docutils" />
|
||||
</div>
|
||||
<div class="section" id="couplingproperties-dictionary">
|
||||
@ -222,10 +584,12 @@ In order to get the latest code version, please use the git repository at <a cla
|
||||
<li>voidFractionModel</li>
|
||||
<li>locateModel</li>
|
||||
<li>meshMotionModel</li>
|
||||
<li>regionModel</li>
|
||||
<li>IOModel</li>
|
||||
<li>probeModel</li>
|
||||
<li>dataExchangeModel</li>
|
||||
<li>averagingModel</li>
|
||||
<li>clockModel</li>
|
||||
<li>smoothingModel</li>
|
||||
<li>forceModels</li>
|
||||
<li>momCoupleModels</li>
|
||||
<li>turbulenceModelType</li>
|
||||
@ -236,22 +600,27 @@ In order to get the latest code version, please use the git repository at <a cla
|
||||
<div class="highlight-python"><div class="highlight"><pre><span class="n">modelType</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>“modelType” refers to the formulation of the equations to be solved. Choose “A”, “B” or “Bfull”, according to Zhou et al. (2010): “Discrete particle simulation of particle-fluid flow: model formulations and their applicability”, JFM. “A” requires the use of the force models gradPForce and viscForce, whereas “B” requires the force model “Archimedes”. “Bfull” refers to model type I.</p>
|
||||
<p>“modelType” refers to the formulation of the equations to be solved. Choose “A”, “B” or “Bfull”, according to Zhou et al. (2010): “Discrete particle simulation of particle-fluid flow: model formulations and their applicability”, JFM. “A” requires the use of the force models gradPForce and viscForce, whereas “B” requires the force model “Archimedes”. “Bfull” refers to model type I, “A” refers to model type II and “B” refers to type III in the nomenclature used by Zhou et al.</p>
|
||||
<div class="highlight-python"><div class="highlight"><pre><span class="n">couplingInterval</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>The coupling interval determines the time passing between two CFD-DEM data exchanges.</p>
|
||||
<p>A useful procedure would be:
|
||||
1) Set the DEM timestep in the in.xxx file according to the needs of the pure DEM problem.
|
||||
2) Set the “couplingInterval”, which refers to the DEM timesteps. Depending on the problem you will need to have a close (small couplingInterval) or loose coupling.
|
||||
3) Choose the CFD timestep in the controlDict. It must be equal to or smaller than the coupling time, otherwise you will get the error: “Error - TS bigger than coupling interval!”.</p>
|
||||
<p>Example: DEMts=0.00001s, couplingInterval=10 exchange data (=couple) will happen every 0.0001s.</p>
|
||||
<p>A useful procedure would be:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Set the DEM timestep in the in.xxx file according to the needs of the pure DEM problem.</li>
|
||||
<li>Set the “couplingInterval”, which refers to the DEM timesteps. Depending on the problem you will need to have a close (small couplingInterval) or loose coupling.</li>
|
||||
<li>Choose the CFD timestep in the controlDict. It must be equal to or smaller than the coupling time, otherwise you will get the error: “Error - TS bigger than coupling interval!”.</li>
|
||||
<li>To ensure a synchronous run, the coupling time should be a multiple of the CFD timestep, or you’ll get a warning “Warning - Coupling time (= DEM time step * coupling interval) is not a multiple of CFD time-step!”</li>
|
||||
</ol>
|
||||
<p>Example: DEMts=1.0e-5s, couplingInterval=10 exchange data (=couple) will happen every 1.0e-4s.</p>
|
||||
<hr class="docutils" />
|
||||
</div>
|
||||
<div class="section" id="liggghtscommands-dictionary">
|
||||
<span id="id5"></span><h3>“liggghtsCommands” dictionary<a class="headerlink" href="#liggghtscommands-dictionary" title="Permalink to this headline">¶</a></h3>
|
||||
<p><strong>General:</strong></p>
|
||||
<p>In the “liggghtsCommands” dictionary liggghts commands being executed during a coupled CFD-DEM simulation are specified.</p>
|
||||
<p>In the “liggghtsCommands” dictionary LIGGGHTS® commands being executed during a coupled CFD-DEM simulation are specified.
|
||||
The most important command is the “run” command. After the start-up read of the LIGGGHTS®-input-script it is fed by CFDEM®coupling
|
||||
with commands. User-defined commands may be added.</p>
|
||||
<p><strong>Location:</strong> $caseDir/CFD/constant</p>
|
||||
<p><strong>Structure:</strong></p>
|
||||
<p>The dictionary is divided into two parts, first a list of “liggghtsCommandModels” is defined, then the settings for each model must be specified.</p>
|
||||
@ -265,8 +634,8 @@ In order to get the latest code version, please use the git repository at <a cla
|
||||
listing below of styles within certain commands.</p>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="52%" />
|
||||
<col width="48%" />
|
||||
<col width="52%" />
|
||||
</colgroup>
|
||||
<tbody valign="top">
|
||||
<tr class="row-odd"><td><a class="reference internal" href="IOModel.html"><em>IOModel</em></a></td>
|
||||
@ -284,11 +653,17 @@ listing below of styles within certain commands.</p>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="cfdemSolverIB.html"><em>cfdemSolverIB</em></a></td>
|
||||
<td><a class="reference internal" href="cfdemSolverPiso.html"><em>cfdemSolverPiso</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="cfdemSolverPisoScalar.html"><em>cfdemSolverPisoScalar</em></a></td>
|
||||
<td><a class="reference internal" href="clockModel.html"><em>clockModel</em></a></td>
|
||||
<tr class="row-even"><td><a class="reference internal" href="cfdemSolverPisoSTM.html"><em>cfdemSolverPisoSTM</em></a></td>
|
||||
<td><a class="reference internal" href="cfdemSolverPisoScalar.html"><em>cfdemSolverPisoScalar</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="clockModel_noClock.html"><em>clockModel_noClock</em></a></td>
|
||||
<td><a class="reference internal" href="clockModel_standardClock.html"><em>clockModel_standardClock</em></a></td>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="clockModel.html"><em>clockModel</em></a></td>
|
||||
<td><a class="reference internal" href="clockModel_noClock.html"><em>clockModel_noClock</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="clockModel_standardClock.html"><em>clockModel_standardClock</em></a></td>
|
||||
<td><a class="reference internal" href="fix_couple_cfd.html"><em>couple/cfd</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="fix_couple_cfd_force.html"><em>couple/cfd/force</em></a></td>
|
||||
<td><a class="reference internal" href="fix_couple_cfd_force_implicit.html"><em>couple/cfd/force/implicit</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="dataExchangeModel.html"><em>dataExchangeModel</em></a></td>
|
||||
<td><a class="reference internal" href="dataExchangeModel_noDataExchange.html"><em>dataExchangeModel_noDataExchange</em></a></td>
|
||||
@ -360,28 +735,25 @@ listing below of styles within certain commands.</p>
|
||||
<td><a class="reference internal" href="probeModel_noProbe.html"><em>probeModel_noProbe</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="probeModel_particleProbe.html"><em>probeModel_particleProbe</em></a></td>
|
||||
<td><a class="reference internal" href="regionModel.html"><em>regionModel</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="regionModel_allRegion.html"><em>regionModel_allRegion</em></a></td>
|
||||
<td><a class="reference internal" href="scalarTransportModel.html"><em>scalarTransportModel</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="smoothingModel.html"><em>smoothingModel</em></a></td>
|
||||
<td><a class="reference internal" href="smoothingModel_constDiffSmoothing.html"><em>smoothingModel_constDiffSmoothing</em></a></td>
|
||||
<tr class="row-even"><td><a class="reference internal" href="scalarTransportModel_generalManual.html"><em>scalarTransportModel_generalManual</em></a></td>
|
||||
<td><a class="reference internal" href="smoothingModel.html"><em>smoothingModel</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="smoothingModel_noSmoothing.html"><em>smoothingModel_noSmoothing</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel.html"><em>voidfractionModel</em></a></td>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="smoothingModel_constDiffSmoothing.html"><em>smoothingModel_constDiffSmoothing</em></a></td>
|
||||
<td><a class="reference internal" href="smoothingModel_noSmoothing.html"><em>smoothingModel_noSmoothing</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="voidFractionModel_GaussVoidFraction.html"><em>voidfractionModel_GaussVoidFraction</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel_IBVoidFraction.html"><em>voidfractionModel_IBVoidFraction</em></a></td>
|
||||
<tr class="row-even"><td><a class="reference internal" href="voidFractionModel.html"><em>voidfractionModel</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel_GaussVoidFraction.html"><em>voidfractionModel_GaussVoidFraction</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="voidFractionModel_bigParticleVoidFraction.html"><em>voidfractionModel_bigParticleVoidFraction</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel_centreVoidFraction.html"><em>voidfractionModel_centreVoidFraction</em></a></td>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="voidFractionModel_IBVoidFraction.html"><em>voidfractionModel_IBVoidFraction</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel_bigParticleVoidFraction.html"><em>voidfractionModel_bigParticleVoidFraction</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="voidFractionModel_dividedVoidFraction.html"><em>voidfractionModel_dividedVoidFraction</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel_noVoidFraction.html"><em>voidfractionModel_noVoidFractionVoidFraction</em></a></td>
|
||||
<tr class="row-even"><td><a class="reference internal" href="voidFractionModel_centreVoidFraction.html"><em>voidfractionModel_centreVoidFraction</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel_dividedVoidFraction.html"><em>voidfractionModel_dividedVoidFraction</em></a></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="voidFractionModel_trilinearVoidFraction.html"><em>voidfractionModel_trilinearVoidFraction</em></a></td>
|
||||
<td> </td>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="voidFractionModel_noVoidFraction.html"><em>voidfractionModel_noVoidFractionVoidFraction</em></a></td>
|
||||
<td><a class="reference internal" href="voidFractionModel_trilinearVoidFraction.html"><em>voidfractionModel_trilinearVoidFraction</em></a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
9
doc/_build/html/IOModel.html
vendored
@ -150,11 +150,14 @@
|
||||
<div class="section" id="examples">
|
||||
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
||||
<p>IOModel “off”;</p>
|
||||
<p>Note: This examples list might not be complete - please look for other models (IOModel_XY) in this documentation.</p>
|
||||
<div class="admonition note">
|
||||
<p class="first admonition-title">Note</p>
|
||||
<p class="last">This examples list might not be complete - please look for other models (IOModel_XY) in this documentation.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="description">
|
||||
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The IO-model is the base class to write data (e.g. particle properties) to files.</p>
|
||||
<p>The IO-model is the base class to write data (e.g. particle properties) to files within the CFD file-structure.</p>
|
||||
</div>
|
||||
<div class="section" id="restrictions">
|
||||
<h2>Restrictions<a class="headerlink" href="#restrictions" title="Permalink to this headline">¶</a></h2>
|
||||
@ -162,7 +165,7 @@
|
||||
</div>
|
||||
<div class="section" id="related-commands">
|
||||
<h2>Related commands<a class="headerlink" href="#related-commands" title="Permalink to this headline">¶</a></h2>
|
||||
<p>Note: This examples list may be incomplete - please look for other models (IOModel_XY) in this documentation.</p>
|
||||
<p><a class="reference internal" href="IOModel_basicIO.html"><em>basicIO</em></a>, <a class="reference internal" href="IOModel_noIO.html"><em>noIO</em></a>, <a class="reference internal" href="IOModel_sophIO.html"><em>sophIO</em></a>, <a class="reference internal" href="IOModel_trackIO.html"><em>trackIO</em></a></p>
|
||||
<p><strong>Default:</strong> none.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
BIN
doc/_build/html/_downloads/yi_jing_01_chien.jpg
vendored
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
doc/_build/html/_images/Ksl.png
vendored
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
doc/_build/html/_images/NavierStokesLiquSoli.png
vendored
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
BIN
doc/_build/html/_images/Portfolio_CFDEMcoupling.png
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 14 KiB |
BIN
doc/_build/html/_images/screen_mobile.png
vendored
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
doc/_build/html/_images/voidfractionModel_divided_pic2.png
vendored
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
doc/_build/html/_images/voidfractionModel_divided_pic3.png
vendored
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
doc/_build/html/_images/voidfractionModel_divided_pic4.png
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
doc/_build/html/_images/voidfractionModel_divided_pic5.png
vendored
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
doc/_build/html/_images/voidfractionModel_divided_pic6.png
vendored
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
doc/_build/html/_images/yi_jing_01_chien.jpg
vendored
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
739
doc/_build/html/_sources/CFDEMcoupling_Manual.txt
vendored
@ -1,5 +1,5 @@
|
||||
CFDEMcoupling Documentation
|
||||
***************************
|
||||
CFDEM®coupling Documentation
|
||||
****************************
|
||||
|
||||
|
||||
----------
|
||||
@ -24,16 +24,16 @@ CFDEMcoupling Documentation
|
||||
|
||||
|
||||
|
||||
.. _lig: http://www.cfdem.com
|
||||
.. _lig: https://www.cfdem.com/liggghtsr-open-source-discrete-element-method-particle-simulation-code
|
||||
|
||||
|
||||
|
||||
Contents
|
||||
========
|
||||
|
||||
The CFDEMcoupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEMcoupling documentation can be improved.
|
||||
The CFDEM®coupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEM®coupling documentation can be improved.
|
||||
|
||||
| 1.1 :ref:`About CFDEMcoupling <1_1>`
|
||||
| 1.1 :ref:`About CFDEM®coupling <1_1>`
|
||||
| 1.2 :ref:`Installation <1_2>`
|
||||
| 1.3 :ref:`Tutorials <1_3>`
|
||||
| 1.4 :ref:`couplingProperties dictionary <1_4>`
|
||||
@ -47,10 +47,10 @@ The CFDEMcoupling documentation is organized into the following sections. If you
|
||||
|
||||
.. _1_1:
|
||||
|
||||
About CFDEMcoupling
|
||||
-------------------
|
||||
About CFDEM®coupling
|
||||
--------------------
|
||||
|
||||
CFDEM coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of `LIGGGHTS <lig_>`_ DEM code and the Open Source CFD package `OpenFOAM(R)(*) <of_>`_. The CFDEMcoupling toolbox allows to expand standard CFD solvers of `OpenFOAM(R)(*) <of_>`_ to include a coupling to the DEM code `LIGGGHTS <lig_>`_. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
|
||||
CFDEM®coupling provides an open source parallel coupled CFD-DEM framework combining the strengths of `LIGGGHTS® <lig_>`_ DEM code and the Open Source CFD package `OpenFOAM®(*) <of_>`_. The CFDEM®coupling toolbox allows to expand standard CFD solvers of `OpenFOAM®(*) <of_>`_ to include a coupling to the DEM code `LIGGGHTS® <lig_>`_. In this toolbox the particle representation within the CFD solver is organized by "cloud" classes. Key functionalities are organised in sub-models (e.g. force models, data exchange models, etc.) which can easily be selected and combined by dictionary settings.
|
||||
|
||||
The coupled solvers run fully parallel on distributed-memory clusters. Features are:
|
||||
|
||||
@ -63,22 +63,51 @@ The coupled solvers run fully parallel on distributed-memory clusters. Features
|
||||
|
||||
The file structure:
|
||||
|
||||
* *src* directory including the source files of the coupling toolbox and models
|
||||
* *applications* directory including the solver files for coupled CFD-DEM simulations
|
||||
* *doc* directory including the documentation of CFDEMcoupling
|
||||
* *src* directory contains the source-code files of the CFDEM®coupling toolbox library and models
|
||||
* *applications* directory contains the solver source files for coupled CFD-DEM simulations
|
||||
* *doc* directory including the documentation of CFDEM®coupling
|
||||
* *tutorials* directory including basic tutorial cases showing the functionality
|
||||
|
||||
|
||||
Details on installation are given on the `CFDEMproject WWW Site <lws_>`_ .
|
||||
The functionality of this CFD-DEM framework is described via :ref:`tutorial cases <_1_2>` showing how to use different solvers and models.
|
||||
The functionality of this CFD-DEM framework is described via :ref:`tutorial cases <1_3>` showing how to use different solvers and models.
|
||||
|
||||
CFDEMcoupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
|
||||
CFDEM®coupling stands for Computational Fluid Dynamics (CFD) -Discrete Element Method (DEM) coupling.
|
||||
|
||||
CFDEMcoupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
|
||||
CFDEM®coupling is an open-source code, distributed freely under the terms of the GNU Public License (GPL).
|
||||
|
||||
Core development of CFDEMcoupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
|
||||
Core development of CFDEM®coupling is done by Christoph Goniva and Christoph Kloss, both at DCS Computing GmbH, 2012
|
||||
|
||||
This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012
|
||||
This documentation was written by DCS Computing GmbH, 2017
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
How CFDEM®coupling works, a short description:
|
||||
|
||||
The launched applications are CFDEM®coupling solvers, e.g. cfdemSolverPiso. Its job is to solve the Navier-Stokes equations with a solid phase present.
|
||||
A general formulation with a solid phase:
|
||||
|
||||
.. image:: Eqs/NavierStokesLiquSoli.png
|
||||
:align: center
|
||||
|
||||
In general "l" denotes liquid and "s" solid properties. AlphaL is the fluid (liquid) content of a calculation-cell, the voidfraction. "rhoL" is the fluid (liquid) density, uL the fluid (liquid) velocity, p the pressure, Ksl the implicit momentum exchange term between solid and liquid phase, us the solid velocity, tau the liquid-stress-tensor, g the gravity vector and t the time. "f" is a general explicit term which can be used to explicitely exchange momentum from the solid to the liquid phase.
|
||||
|
||||
All cfdemSolvers use a "cfdemCloud" object, which takes care of many things. The most important are:
|
||||
|
||||
* Control and communicate with the LIGGGHTS® library object. (liggghtsCommandModel and dataExchangeModel)
|
||||
* Find the cell ID of a certain position, e.g. the particle center. (locateModel)
|
||||
* Calculate the voidfraction field from particle positions, particle volumes and cell volumes. (voidFractionModel)
|
||||
* Calculate the forces on the CFD field and the particle forces. These may be assembled by various forceModels, e.g. buyoancy and a drag-law. (forceModel and forceSubModel)
|
||||
* Calculate the implicit and if necessary explicit source terms from the force fields for the Navier-Stokes-Equations, the solver needs to solve. (momCoupleModel)
|
||||
* Calculate the "Us" field from particle data, map the particle data to the CFD-field. (averagingModel)
|
||||
|
||||
In the standard setting the momentum coupling model takes the calculated forces of forceModels and produces the implicit momentum source term Ksl with
|
||||
|
||||
.. image:: Eqs/Ksl.png
|
||||
:align: center
|
||||
|
||||
More advanced solvers have also an explicit source term field f which is assembled from those forces which have the treatForceExplicit=true flag (see forceSubModels).
|
||||
|
||||
|
||||
----------
|
||||
@ -95,8 +124,487 @@ This documentation was written by Christoph Goniva, DCS Computing GmbH, 2012
|
||||
Installation
|
||||
------------
|
||||
|
||||
Please follow the installation routine provided at www.cfdem.com.
|
||||
In order to get the latest code version, please use the git repository at http://github.com (:doc:`githubAccess <githubAccess_public>`).
|
||||
.. _github: http://github.com/
|
||||
|
||||
|
||||
|
||||
.. _gitHelp: http://help.github.com/linux-set-up-git
|
||||
|
||||
|
||||
|
||||
.. _gitCFDEM: http://github.com/CFDEMproject
|
||||
|
||||
|
||||
|
||||
.. _gitscm: http://git-scm.com/downloads
|
||||
|
||||
|
||||
|
||||
.. _compOF: https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lagrangian/cfdemParticle/cfdTools/versionInfo.H
|
||||
|
||||
|
||||
|
||||
.. _bashrc: https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lagrangian/cfdemParticle/etc/bashrc
|
||||
|
||||
|
||||
|
||||
.. _downOF: https://openfoam.org/download/source/
|
||||
|
||||
|
||||
|
||||
.. _vtklink: http://www.vtk.org/
|
||||
|
||||
|
||||
|
||||
.. _ParaViewlink: https://www.paraview.org/
|
||||
|
||||
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
This section describes how to download repositories of the CFDEM®project from `github.com <github_>`_ .
|
||||
After setting some environment variables, LIGGGHTS® and CFDEM®coupling can be compiled.
|
||||
|
||||
**Procedure:**
|
||||
|
||||
Short summary:
|
||||
|
||||
* :ref:`Install git <install_1>`
|
||||
* :ref:`Download CFDEM®project software <install_2>`
|
||||
* :ref:`Download the correct OpenFOAM® version <install_3>`
|
||||
* :ref:`Setup prerequisites <install_4>`
|
||||
* :ref:`Setup and compile OpenFOAM® <install_5>`
|
||||
* :ref:`Set environment variables and paths <install_6>`
|
||||
* :ref:`Compile LIGGGHTS® and CFDEM®coupling <install_7>`
|
||||
* :ref:`Additional information <additionalInstall>`
|
||||
* :ref:`Run your own cases <install_8>`
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_1:
|
||||
|
||||
**Install git:**
|
||||
|
||||
This step is optional, but recommended. Git allows you to update the source code very easily with the git pull command.
|
||||
On debian based systems you can run
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
sudo apt-get install git-core
|
||||
|
||||
Similar packages are available on other systems too:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
sudo zypper install git-core
|
||||
sudo yum install git
|
||||
|
||||
.. note::
|
||||
|
||||
In this tutorial the git protocol is used to transfer files. If port 9418 is closed for internet connections, please switch to "https://" instead of "git://" for git clone commands.
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_2:
|
||||
|
||||
**Download CFDEMproject software:**
|
||||
|
||||
With git you can clone git repositories from `github <github_>`_ . The following terminal commands will download the CFDEM®project software to your machine in the typical folder structure. The download of the post-processing tool LPP is optional and requires python-numpy.
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
cd $HOME
|
||||
mkdir CFDEM
|
||||
cd CFDEM
|
||||
git clone git://github.com/CFDEMproject/CFDEMcoupling-PUBLIC.git
|
||||
cd $HOME
|
||||
mkdir LIGGGHTS
|
||||
cd LIGGGHTS
|
||||
git clone git://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git
|
||||
git clone git://github.com/CFDEMproject/LPP.git lpp
|
||||
|
||||
If you do not have git, you can use the download buttons after visiting a repository in the `CFDEMproject project page <gitCFDEM_>`_ and unzip the archives to the proper locations. Typically github tags the folders with "-master", please rename them with
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
cd $HOME/CFDEM
|
||||
mv CFDEMcoupling-PUBLIC-master CFDEMcoupling-PUBLIC
|
||||
cd $HOME/LIGGGHTS
|
||||
mv LIGGGHTS-PUBLIC-master LIGGGHTS-PUBLIC
|
||||
mv LPP-master lpp
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_3:
|
||||
|
||||
**Download the correct OpenFOAM® version:**
|
||||
|
||||
All mentions of OpenFOAM® refer to :ref:`this <footnotes>` . It is strongly recommended to compile OpenFOAM® yourself with the latest compatible version.
|
||||
The latest compatible OpenFOAM®-version can be found in the in your local copy of CFDEM®coupling in src/lagrangian/cfdemParticle/cfdTools/versionInfo.H, or directly at `github <compOF_>`_ .
|
||||
Look for the git commit hashtag in the following line:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
word OFversion="<OF-Release>-commit-<commitHashtag>";
|
||||
e.g. word OFversion="3.0.x-commit-ac3f6c67e02f0aac3777c27f9fb7558fc3536e37";
|
||||
|
||||
With git you can use the following recipe to get the correct version:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
cd $HOME
|
||||
mkdir OpenFOAM
|
||||
cd OpenFOAM
|
||||
git clone git://github.com/OpenFOAM/OpenFOAM-<OF-Release>.git
|
||||
git clone git://github.com/OpenFOAM/ThirdParty-<OF-Release>.git
|
||||
cd OpenFOAM-<OF-Release>
|
||||
git checkout <commitHashtag>
|
||||
|
||||
Without git you can visit git://github.com/OpenFOAM/OpenFOAM-<OF-Release>/tree/<commitHashtag> and use the download button.
|
||||
|
||||
Other OpenFOAM® versions can be used for compilation, but aren't officially supported. The list includes 4.x, 2.4.x, 1612+, 1606+ and extend-3.2
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_4:
|
||||
|
||||
**Setup prerequisites for CFDEM®project:**
|
||||
|
||||
Prerequisites for OpenFOAM® can be found `here <downOF_>`_ .
|
||||
On an Ubuntu system (14.04+), you can use the following
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev libscotch-dev libptscotch-dev
|
||||
|
||||
CFDEM®project requires OpenFOAM® with a working MPI version.
|
||||
Optional, but strongly recommended is the use of `VTK <vtklink_>`_ . VTK is used to directly write data in vtk format, which is readable by `ParaView <ParaViewlink_>`_ . The minimum version is VTK 5.8, recommended is 6.3. On debian-based systems it is sufficient to run
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
sudo apt-get install libvtk6-dev
|
||||
|
||||
For manual VTK compilation, please read the :ref:`additional installation hints <additionalInstall>` .
|
||||
|
||||
The post-processing tool lpp requires the python numpy package.
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
sudo apt-get install python-numpy
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_5:
|
||||
|
||||
**Setup and compile OpenFOAM®**
|
||||
|
||||
You can follow the OpenFOAM® git compilation `instructions <downOF_>`_ , with a small number of exceptions:
|
||||
CFDEM®coupling requires the WM_LABEL_SIZE=32 , which is the standard setting.
|
||||
|
||||
On an Ubuntu system (14.04+), you can use the following steps to install OpenFOAM®:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
gedit ~/.bashrc
|
||||
add the following two lines in the end, where <NofProcs> is the integer number of the processors you want to compile with. Save and exit gedit.
|
||||
"export WM_NCOMPPROCS=<NofProcs>"
|
||||
"source $HOME/OpenFOAM/OpenFOAM-<OF-Release>/etc/bashrc"
|
||||
now again in the terminal:
|
||||
source ~/.bashrc
|
||||
cd $WM_PROJECT_DIR
|
||||
foamSystemCheck
|
||||
./Allwmake
|
||||
|
||||
Additional OpenFOAM® installation hints can be found :ref:`here <additionalInstall>` .
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_6:
|
||||
|
||||
**Set environment variables and paths**
|
||||
|
||||
Typically the CFDEM®coupling folder is tagged with the OpenFOAM® version number. To do this, perform the following steps:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
cd $HOME/CFDEM
|
||||
mv CFDEMcoupling-PUBLIC CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION
|
||||
|
||||
You need to set some environment variables in ~/.bashrc (if you use c-shell, manipulate ~/.cshrc accordingly). Open your .bashrc and the CFDEM®coupling bashrc file.
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
gedit ~/.bashrc $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc
|
||||
|
||||
Add the STANDARD block to the end of your bashrc and modify entries if necessary. Make sure the statements are not comments; remove the "#". Similar to:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
#================================================#
|
||||
#- source cfdem env vars
|
||||
export CFDEM_VERSION=PUBLIC
|
||||
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
|
||||
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
|
||||
export CFDEM_bashrc=$CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle/etc/bashrc
|
||||
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
|
||||
export CFDEM_LIGGGHTS_MAKEFILE_NAME=auto
|
||||
export CFDEM_LPP_DIR=$HOME/LIGGGHTS/lpp/src
|
||||
. $CFDEM_bashrc
|
||||
#================================================#
|
||||
|
||||
You may insert the EXTENDED block above ". $CFDEM_bashrc" for further customization.
|
||||
The detailed description for allowed entries can be found :ref:`here <additionalInstall>` .
|
||||
|
||||
To load and check the environment you can run now
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
source ~/.bashrc
|
||||
cfdemSysTest
|
||||
|
||||
.. note::
|
||||
|
||||
Many useful aliases are set with sourcing of the CFDEMcoupling bashrc, e.g. cfdemEtc . Make use of them!
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_7:
|
||||
|
||||
**Compile LIGGGHTS® and CFDEM®coupling**
|
||||
|
||||
To compile CFDEM®project open a new terminal and run
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
cfdemCompCFDEMall
|
||||
|
||||
It compiles the LIGGGHTS® executable, LIGGGHTS® as a shared library, the CFDEM®coupling libraries, CFDEM®coupling solvers and CFDEM®coupling utilities. The compilation will stop, if build errors occur. Having a previous manually compiled LIGGGHTS® is not enough, it needs to be compiled as shared library with the cfdemCompLIG command.
|
||||
|
||||
As step by step compilation of only specific parts, the following commands are available:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
cfdemCompLIG
|
||||
cfdemCompCFDEMsrc
|
||||
cfdemCompCFDEmsol
|
||||
cfdenCompCFDEMuti
|
||||
|
||||
The compilation is automatically logged and the logs can be found in:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log
|
||||
|
||||
In case questions concerning the installation arise, please feel free to contact our forum at `www.cfdem.com <lws_>`_ .
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _install_8:
|
||||
|
||||
**Run your own cases**
|
||||
|
||||
If you want to run your own cases, please do so in *$CFDEM_PROJECT_USER_DIR/run* which is automatically being generated. E.g. copy one of the tutorial cases there, adapt it to your needs.
|
||||
Changes in $CFDEM_TUT_DIR might be lost after every *git stash*.
|
||||
|
||||
You can run all the tutorial cases by executing the alias cfdemTestTUT.
|
||||
Alternatively you can run each tutorial using the *Allrun.sh* scripts in the tutorial directories.
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
**Backwards Compatibility:**
|
||||
|
||||
Basically CFDEM®coupling supports one OpenFOAM® version therefore all settings are prepared for that. Nevertheless we try to maintain backwards compatibility as long as it works with reasonable effort.
|
||||
|
||||
The supported OpenFOAM® and LIGGGHTS® versions are stated in:
|
||||
src/lagrangian/cfdemParticle/cfdTools/versionInfo.H
|
||||
|
||||
For using other versions you can manipulate:
|
||||
src/lagrangian/cfdemParticle/etc/OFversion/OFversion.H
|
||||
(still not all functionality might work then!)
|
||||
|
||||
.. _VTK63: http://www.vtk.org/files/release/6.3/VTK-6.3.0.zip
|
||||
|
||||
|
||||
|
||||
.. _VTKinst: http://www.vtk.org/Wiki/VTK/Configure_and_Build#On_Unix-like_systems
|
||||
|
||||
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _additionalInstall:
|
||||
|
||||
**Installation, additional information**
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
**Procedure:**
|
||||
|
||||
* :ref:`Setup prerequisites <ainstall_4>`
|
||||
* :ref:`Setup and compile OpenFOAM® <ainstall_5>`
|
||||
* :ref:`Set environment variables and paths <ainstall_6>`
|
||||
* :ref:`Compile LIGGGHTS® and CFDEM®coupling <ainstall_7>`
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _ainstall_4:
|
||||
|
||||
**Setup prerequisites for CFDEM®project:**
|
||||
|
||||
If you need to compile VTK on your machine yourself, we recommend version 6.3, which is available `here <VTK63_>`_ . The installation guide is available `here <VTKinst_>`_ .
|
||||
|
||||
Please note the VTK components necessary need cmake, MPI and some X11 libraries on your machine. Compilation using ccmake is recommended. In the standard configuration MPI related packages are disabled. Enable Parallel / MPI packages during configuration. For VTK-6.3 set VTK_Group_MPI:BOOL=ON .
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _ainstall_5:
|
||||
|
||||
**Setup and compile OpenFOAM®**
|
||||
|
||||
All mentions of OpenFOAM® refer to `this <afootnotes>`_ .
|
||||
|
||||
Often problems arise configuring OpenFOAM® to work with a specific MPI installation on a cluster. However it has built-in capability to work with nearly any MPI implementation.
|
||||
Set the following variable in the OpenFOAM® bashrc:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
export WM_MPLIB=SYSTEMMPI
|
||||
|
||||
Defining the following variables in your ~/.bashrc BEFORE the sourcing of OpenFOAM® will take care of the rest. This is an example for older MVAPICH installations where there is no libmpi.so, only libmpich.so :
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
export MPI_ROOT=<path/to/mpi/installation>
|
||||
export MPI_ARCH_PATH=$MPI_ROOT
|
||||
export MPI_ARCH_FLAGS="-DMPICH_SKIP_MPICXX"
|
||||
export MPI_ARCH_INC="-I$MPI_ARCH_PATH/include"
|
||||
export MPI_ARCH_LIBS='-L$(MPI_ARCH_PATH)/lib -lmpich -lmpichcxx -lmpl -lopa -lrt'
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _ainstall_6:
|
||||
|
||||
**Set environment variables and paths**
|
||||
|
||||
Detailed description of the environment variables:
|
||||
|
||||
standard block:
|
||||
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
| CFDEM_VERSION | CFDEMcoupling branch name; e.g. PUBLIC | |
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
| CFDEM_PROJECT_DIR | path to the installation directory of CFDEM®coupling | |
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
| CFDEM_PROJECT_USER_DIR | path to the user directory; used to store users simulation cases and source-code | |
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
| CFDEM_bashrc | location of the CFDEM®coupling bashrc (or cshrc)\ | which sets up the environment |
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
| CFDEM_LIGGGHTS_SRC_DIR | path to the LIGGGHTS src directory | |
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
| CFDEM_LIGGGHTS_MAKEFILE_NAME | Name of the LIGGGHTS® Makefile which defines how to compile LIGGGHTS®; more information on which Makefile to select is within the LIGGGHTS® documentation; standard is auto | |
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
| CFDEM_LPP_DIR path | to the src directory of the local lpp installation | |
|
||||
+------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+
|
||||
|
||||
extended block may be inserted above ". $CFDEM_bashrc":
|
||||
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
| CFDEM_SRC_DIR | can be used to use alternative src directory | |
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
| CFDEM_SOLVER_DIR | can be used to use alternative solver directory | |
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
| CFDEM_DOC_DIR | can be used to use alternative doc directory | |
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
| CFDEM_UT_DIR | can be used to use alternative utilities directory | |
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
| CFDEM_TUT_DIR | can be used to use alternative tutorials directory | |
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
| CFDEM_LIGGGHTS_MAKEFILE_POSTIFX | if you wish to compile LIGGGHTS® to CFDEM®coupling with a postfix auto Makefile; for more information on postfixes please read the LIGGGHTS® documentation | |
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
| CFDEM_VERBOSE | if set to false\ | standard output of environment variables is suppressed |
|
||||
+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------+
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
additionalLibs:
|
||||
|
||||
The additionalLibs are used as a centralized system for adding libraries and paths to CFDEM®coupling compilations. There is and automated detection of your OpenFOAM® version, which should select the proper additionalLibs file.
|
||||
If the automated selection of the additionalLibs fails or if you wish to set it manually to a specific file, you may set the following environment variables above ". $CFDEM_bashrc":
|
||||
|
||||
+---------------------+------------------------------------------------------+
|
||||
| CFDEM_ADD_LIBS_DIR | path containing the user-defined additionalLibs file |
|
||||
+---------------------+------------------------------------------------------+
|
||||
| CFDEM_ADD_LIBS_NAME | filename of the user-defined additionalLibs file |
|
||||
+---------------------+------------------------------------------------------+
|
||||
|
||||
even further customization with variables:
|
||||
|
||||
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| CFDEM_LAMMPS_LIB_DIR | alternative path to LIGGGHTS® lib folder containing additional LIGGGHTS® packages; e.g. ASPHERE |
|
||||
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| CFDEM_LIGGGHTS_LIB_PATH | path to compiled LIGGGHTS® library; useful if the compiled LIGGGHTS® library has manually been moved from the LIGGGHTS® src path to an alternative location |
|
||||
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| CFDEM_LIB_DIR | alternative target directory for CFDEM®coupling libraries |
|
||||
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| CFDEM_USER_LIB_DIR | alternative target directory for CFDEM®coupling user-libraries |
|
||||
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| CFDEM_APP_DIR | alternative target directory for CFDEMcoupling executables |
|
||||
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| CFDEM_USER_APP_DIR | alternative target directory for CFDEM®coupling user-executables |
|
||||
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _ainstall_7:
|
||||
|
||||
**Compile LIGGGHTS® and CFDEM®coupling**
|
||||
|
||||
LIGGGHTS® needs to be compiled as library with the cfdemCompLIG command. You can compile LIGGGHTS® manually as a shared library with "make -f Makefile.shlib <Makefilename>" within your LIGGGHTS® src directory.
|
||||
LIGGGHTS® is included into CFDEM®coupling by the creation of a symbolic link in $CFDEM_LIB_DIR to the LIGGGHTS shared library. This link is automatically created during the compilation of the CFDEM®coupling lagrangian library at the beginning of the make phase. This means even if you compile the lagrangian library manually with "wmake libso", the link is created.
|
||||
|
||||
|
||||
----------
|
||||
|
||||
|
||||
.. _footnotes:
|
||||
|
||||
**Footnotes:**
|
||||
|
||||
OPENFOAM® is a registered trade mark of OpenCFD Limited, producer and distributor of the OpenFOAM software via wwww.openfoam.com.
|
||||
|
||||
|
||||
----------
|
||||
@ -109,7 +617,7 @@ Tutorials
|
||||
|
||||
**General:**
|
||||
|
||||
Each solver of the CFDEMcoupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
|
||||
Each solver of the CFDEM®coupling comes with at least one tutorial example, showing its functionality and correct usage. Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell scripts. These scripts perform all necessary steps (preprocessing, run, postprocessing, visualization).
|
||||
|
||||
**Location:**
|
||||
|
||||
@ -123,15 +631,23 @@ Each case is structured in a directory called "CFD" covering the CFD relevant se
|
||||
|
||||
Provided that the installation is correct, the tutorials can be run via "Allrun.sh" shell script, executed by typing "./Allrun.sh". The successful run of the script might need some third party software (e.g. octave, evince, etc.).
|
||||
|
||||
A typical Allrun.sh script executes the following steps:
|
||||
|
||||
* DEM: LIGGGHTS init run
|
||||
* CFD: mesh generation (blockMesh)
|
||||
* CFD: mesh decomposition (decomposePar)
|
||||
* CFDEM: parallel CFDEM run; mpirun -np X cfdemSolverXXX -parallel
|
||||
* post-processing
|
||||
|
||||
**Settings:**
|
||||
|
||||
The main settings of a simulation are done via dictionaries:
|
||||
|
||||
The DEM setup of each case is defined by a `LIGGGHTS <lig_>`_ input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the `LIGGGHTS <lig_>`_ setup, please have a look at the `LIGGGHTS <lig_>`_ manual.
|
||||
The DEM setup of each case is defined by a `LIGGGHTS® <lig_>`_ input file located in $caseDir/DEM (e.g. in.liggghts_init). For details on the `LIGGGHTS® <lig_>`_ setup, please have a look at the `LIGGGHTS® <lig_>`_ manual.
|
||||
|
||||
Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). You can find more information on that in `OpenFOAM(R)(*) <of_>`_ documentations (www.openFoam.com)(*).
|
||||
Standard CFD settings are defined in $caseDir/CFD/constant (e.g. transportProperties, RASproperties, etc.) and $caseDir/CFD/system (e.g. fvSchemes, controlDict). For settings related to the solver such as discretization schemes, solution settings for the equations and solver control (e.g. corrector or non-orthogonal corrector steps for non-orthogonal meshes) you can find more information in `OpenFOAM®(*) <of_>`_ documentations (www.openFoam.com)(*).
|
||||
|
||||
Settings of the coupling routines are defined in $caseDir/CFD/constant/:ref:`couplingProperies <1_3>` (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/:ref:`liggghtsCommands <1_3>` (allows to execute a LIGGGHTS command during a coupled simulation).
|
||||
Settings of the coupling routines are defined in $caseDir/CFD/constant/:ref:`couplingProperies <1_4>` (e.g. force models, data exchange model, etc.) and $caseDir/CFD/constant/:ref:`liggghtsCommands <1_5>` (allows to execute a LIGGGHTS® command during a coupled simulation).
|
||||
|
||||
|
||||
----------
|
||||
@ -159,15 +675,16 @@ In "sub-models & settings" the following routines must be specified:
|
||||
* voidFractionModel
|
||||
* locateModel
|
||||
* meshMotionModel
|
||||
* regionModel
|
||||
* IOModel
|
||||
* probeModel
|
||||
* dataExchangeModel
|
||||
* averagingModel
|
||||
* clockModel
|
||||
* smoothingModel
|
||||
* forceModels
|
||||
* momCoupleModels
|
||||
* turbulenceModelType
|
||||
|
||||
|
||||
In "sub-model properties" sub-dictionaries might be defined to specify model specific parameters.
|
||||
|
||||
**Settings:**
|
||||
@ -178,7 +695,7 @@ Reasonable example settings for the "couplingProperties" dictionary are given in
|
||||
|
||||
modelType
|
||||
|
||||
"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I.
|
||||
"modelType" refers to the formulation of the equations to be solved. Choose "A", "B" or "Bfull", according to Zhou et al. (2010): "Discrete particle simulation of particle-fluid flow: model formulations and their applicability", JFM. "A" requires the use of the force models gradPForce and viscForce, whereas "B" requires the force model "Archimedes". "Bfull" refers to model type I, "A" refers to model type II and "B" refers to type III in the nomenclature used by Zhou et al.
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
@ -187,11 +704,13 @@ Reasonable example settings for the "couplingProperties" dictionary are given in
|
||||
The coupling interval determines the time passing between two CFD-DEM data exchanges.
|
||||
|
||||
A useful procedure would be:
|
||||
1) Set the DEM timestep in the in.xxx file according to the needs of the pure DEM problem.
|
||||
2) Set the "couplingInterval", which refers to the DEM timesteps. Depending on the problem you will need to have a close (small couplingInterval) or loose coupling.
|
||||
3) Choose the CFD timestep in the controlDict. It must be equal to or smaller than the coupling time, otherwise you will get the error: "Error - TS bigger than coupling interval!".
|
||||
|
||||
Example: DEMts=0.00001s, couplingInterval=10 exchange data (=couple) will happen every 0.0001s.
|
||||
1. Set the DEM timestep in the in.xxx file according to the needs of the pure DEM problem.
|
||||
2. Set the "couplingInterval", which refers to the DEM timesteps. Depending on the problem you will need to have a close (small couplingInterval) or loose coupling.
|
||||
3. Choose the CFD timestep in the controlDict. It must be equal to or smaller than the coupling time, otherwise you will get the error: "Error - TS bigger than coupling interval!".
|
||||
4. To ensure a synchronous run, the coupling time should be a multiple of the CFD timestep, or you'll get a warning "Warning - Coupling time (= DEM time step * coupling interval) is not a multiple of CFD time-step!"
|
||||
|
||||
Example: DEMts=1.0e-5s, couplingInterval=10 exchange data (=couple) will happen every 1.0e-4s.
|
||||
|
||||
|
||||
----------
|
||||
@ -204,7 +723,9 @@ Example: DEMts=0.00001s, couplingInterval=10 exchange data (=couple) will happen
|
||||
|
||||
**General:**
|
||||
|
||||
In the "liggghtsCommands" dictionary liggghts commands being executed during a coupled CFD-DEM simulation are specified.
|
||||
In the "liggghtsCommands" dictionary LIGGGHTS® commands being executed during a coupled CFD-DEM simulation are specified.
|
||||
The most important command is the "run" command. After the start-up read of the LIGGGHTS®-input-script it is fed by CFDEM®coupling
|
||||
with commands. User-defined commands may be added.
|
||||
|
||||
**Location:** $caseDir/CFD/constant
|
||||
|
||||
@ -230,83 +751,85 @@ Models/Solvers
|
||||
This section lists all CFDEMcoupling sub-models and solvers alphabetically, with a separate
|
||||
listing below of styles within certain commands.
|
||||
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`IOModel <IOModel>` | :doc:`IOModel_basicIO <IOModel_basicIO>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`IOModel_noIO <IOModel_noIO>` | :doc:`IOModel_sophIO <IOModel_sophIO>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`IOModel_trackIO <IOModel_trackIO>` | :doc:`averagingModel <averagingModel>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`averagingModel_dense <averagingModel_dense>` | :doc:`averagingModel_dilute <averagingModel_dilute>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`cfdemSolverIB <cfdemSolverIB>` | :doc:`cfdemSolverPiso <cfdemSolverPiso>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`cfdemSolverPisoScalar <cfdemSolverPisoScalar>` | :doc:`clockModel <clockModel>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`clockModel_noClock <clockModel_noClock>` | :doc:`clockModel_standardClock <clockModel_standardClock>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`dataExchangeModel <dataExchangeModel>` | :doc:`dataExchangeModel_noDataExchange <dataExchangeModel_noDataExchange>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`dataExchangeModel_oneWayVTK <dataExchangeModel_oneWayVTK>` | :doc:`dataExchangeModel_twoWayFiles <dataExchangeModel_twoWayFiles>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`dataExchangeModel_twoWayMPI <dataExchangeModel_twoWayMPI>` | :doc:`forceModel <forceModel>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_Archimedes <forceModel_Archimedes>` | :doc:`forceModel_ArchimedesIB <forceModel_ArchimedesIB>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_DiFeliceDrag <forceModel_DiFeliceDrag>` | :doc:`forceModel_GidaspowDrag <forceModel_GidaspowDrag>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_KochHillDrag <forceModel_KochHillDrag>` | :doc:`forceModel_LaEuScalarTemp <forceModel_LaEuScalarTemp>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_MeiLift <forceModel_MeiLift>` | :doc:`forceModel_SchillerNaumannDrag <forceModel_SchillerNaumannDrag>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_ShirgaonkarIB <forceModel_ShirgaonkarIB>` | :doc:`forceModel_checkCouplingInterval <forceModel_checkCouplingInterval>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_fieldStore <forceModel_fieldStore>` | :doc:`forceModel_fieldTimeAverage <forceModel_fieldTimeAverage>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_gradPForce <forceModel_gradPForce>` | :doc:`forceModel_noDrag <forceModel_noDrag>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_particleCellVolume <forceModel_particleCellVolume>` | :doc:`forceModel_particleVolume <forceModel_particleVolume>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_scalarGeneralExchange <forceModel_scalarGeneralExchange>` | :doc:`forceModel_virtualMassForce <forceModel_virtualMassForce>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_viscForce <forceModel_viscForce>` | :doc:`forceModel_volWeightedAverage <forceModel_volWeightedAverage>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`forceSubModel <forceSubModel>` | :doc:`forceSubModel_ImEx <forceSubModel_ImEx>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`liggghtsCommandModel <liggghtsCommandModel>` | :doc:`liggghtsCommandModel_execute <liggghtsCommandModel_execute>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`liggghtsCommandModel_readLiggghtsData <liggghtsCommandModel_readLiggghtsData>` | :doc:`liggghtsCommandModel_runLiggghts <liggghtsCommandModel_runLiggghts>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`liggghtsCommandModel_setDEMGravity <liggghtsCommandModel_setDEMGravity>` | :doc:`liggghtsCommandModel_writeLiggghts <liggghtsCommandModel_writeLiggghts>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`locateModel <locateModel>` | :doc:`locateModel_engineSearch <locateModel_engineSearch>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`locateModel_engineSearchIB <locateModel_engineSearchIB>` | :doc:`locateModel_standardSearch <locateModel_standardSearch>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`meshMotionModel <meshMotionModel>` | :doc:`meshMotionModel_noMeshMotion <meshMotionModel_noMeshMotion>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`momCoupleModel <momCoupleModel>` | :doc:`momCoupleModel_explicitCouple <momCoupleModel_explicitCouple>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`momCoupleModel_implicitCouple <momCoupleModel_implicitCouple>` | :doc:`momCoupleModel_noCouple <momCoupleModel_noCouple>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`probeModel <probeModel>` | :doc:`probeModel_noProbe <probeModel_noProbe>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`probeModel_particleProbe <probeModel_particleProbe>` | :doc:`regionModel <regionModel>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`regionModel_allRegion <regionModel_allRegion>` | :doc:`scalarTransportModel <scalarTransportModel>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`smoothingModel <smoothingModel>` | :doc:`smoothingModel_constDiffSmoothing <smoothingModel_constDiffSmoothing>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`smoothingModel_noSmoothing <smoothingModel_noSmoothing>` | :doc:`voidfractionModel <voidFractionModel>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel_GaussVoidFraction <voidFractionModel_GaussVoidFraction>` | :doc:`voidfractionModel_IBVoidFraction <voidFractionModel_IBVoidFraction>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel_bigParticleVoidFraction <voidFractionModel_bigParticleVoidFraction>` | :doc:`voidfractionModel_centreVoidFraction <voidFractionModel_centreVoidFraction>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel_dividedVoidFraction <voidFractionModel_dividedVoidFraction>` | :doc:`voidfractionModel_noVoidFractionVoidFraction <voidFractionModel_noVoidFraction>` |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel_trilinearVoidFraction <voidFractionModel_trilinearVoidFraction>` | |
|
||||
+----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------+
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`IOModel <IOModel>` | :doc:`IOModel_basicIO <IOModel_basicIO>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`IOModel_noIO <IOModel_noIO>` | :doc:`IOModel_sophIO <IOModel_sophIO>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`IOModel_trackIO <IOModel_trackIO>` | :doc:`averagingModel <averagingModel>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`averagingModel_dense <averagingModel_dense>` | :doc:`averagingModel_dilute <averagingModel_dilute>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`cfdemSolverIB <cfdemSolverIB>` | :doc:`cfdemSolverPiso <cfdemSolverPiso>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`cfdemSolverPisoSTM <cfdemSolverPisoSTM>` | :doc:`cfdemSolverPisoScalar <cfdemSolverPisoScalar>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`clockModel <clockModel>` | :doc:`clockModel_noClock <clockModel_noClock>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`clockModel_standardClock <clockModel_standardClock>` | :doc:`couple/cfd <fix_couple_cfd>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`couple/cfd/force <fix_couple_cfd_force>` | :doc:`couple/cfd/force/implicit <fix_couple_cfd_force_implicit>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`dataExchangeModel <dataExchangeModel>` | :doc:`dataExchangeModel_noDataExchange <dataExchangeModel_noDataExchange>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`dataExchangeModel_oneWayVTK <dataExchangeModel_oneWayVTK>` | :doc:`dataExchangeModel_twoWayFiles <dataExchangeModel_twoWayFiles>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`dataExchangeModel_twoWayMPI <dataExchangeModel_twoWayMPI>` | :doc:`forceModel <forceModel>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_Archimedes <forceModel_Archimedes>` | :doc:`forceModel_ArchimedesIB <forceModel_ArchimedesIB>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_DiFeliceDrag <forceModel_DiFeliceDrag>` | :doc:`forceModel_GidaspowDrag <forceModel_GidaspowDrag>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_KochHillDrag <forceModel_KochHillDrag>` | :doc:`forceModel_LaEuScalarTemp <forceModel_LaEuScalarTemp>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_MeiLift <forceModel_MeiLift>` | :doc:`forceModel_SchillerNaumannDrag <forceModel_SchillerNaumannDrag>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_ShirgaonkarIB <forceModel_ShirgaonkarIB>` | :doc:`forceModel_checkCouplingInterval <forceModel_checkCouplingInterval>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_fieldStore <forceModel_fieldStore>` | :doc:`forceModel_fieldTimeAverage <forceModel_fieldTimeAverage>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_gradPForce <forceModel_gradPForce>` | :doc:`forceModel_noDrag <forceModel_noDrag>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_particleCellVolume <forceModel_particleCellVolume>` | :doc:`forceModel_particleVolume <forceModel_particleVolume>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_scalarGeneralExchange <forceModel_scalarGeneralExchange>` | :doc:`forceModel_virtualMassForce <forceModel_virtualMassForce>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceModel_viscForce <forceModel_viscForce>` | :doc:`forceModel_volWeightedAverage <forceModel_volWeightedAverage>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`forceSubModel <forceSubModel>` | :doc:`forceSubModel_ImEx <forceSubModel_ImEx>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`liggghtsCommandModel <liggghtsCommandModel>` | :doc:`liggghtsCommandModel_execute <liggghtsCommandModel_execute>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`liggghtsCommandModel_readLiggghtsData <liggghtsCommandModel_readLiggghtsData>` | :doc:`liggghtsCommandModel_runLiggghts <liggghtsCommandModel_runLiggghts>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`liggghtsCommandModel_setDEMGravity <liggghtsCommandModel_setDEMGravity>` | :doc:`liggghtsCommandModel_writeLiggghts <liggghtsCommandModel_writeLiggghts>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`locateModel <locateModel>` | :doc:`locateModel_engineSearch <locateModel_engineSearch>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`locateModel_engineSearchIB <locateModel_engineSearchIB>` | :doc:`locateModel_standardSearch <locateModel_standardSearch>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`meshMotionModel <meshMotionModel>` | :doc:`meshMotionModel_noMeshMotion <meshMotionModel_noMeshMotion>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`momCoupleModel <momCoupleModel>` | :doc:`momCoupleModel_explicitCouple <momCoupleModel_explicitCouple>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`momCoupleModel_implicitCouple <momCoupleModel_implicitCouple>` | :doc:`momCoupleModel_noCouple <momCoupleModel_noCouple>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`probeModel <probeModel>` | :doc:`probeModel_noProbe <probeModel_noProbe>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`probeModel_particleProbe <probeModel_particleProbe>` | :doc:`scalarTransportModel <scalarTransportModel>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`scalarTransportModel_generalManual <scalarTransportModel_generalManual>` | :doc:`smoothingModel <smoothingModel>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`smoothingModel_constDiffSmoothing <smoothingModel_constDiffSmoothing>` | :doc:`smoothingModel_noSmoothing <smoothingModel_noSmoothing>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel <voidFractionModel>` | :doc:`voidfractionModel_GaussVoidFraction <voidFractionModel_GaussVoidFraction>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel_IBVoidFraction <voidFractionModel_IBVoidFraction>` | :doc:`voidfractionModel_bigParticleVoidFraction <voidFractionModel_bigParticleVoidFraction>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel_centreVoidFraction <voidFractionModel_centreVoidFraction>` | :doc:`voidfractionModel_dividedVoidFraction <voidFractionModel_dividedVoidFraction>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
| :doc:`voidfractionModel_noVoidFractionVoidFraction <voidFractionModel_noVoidFraction>` | :doc:`voidfractionModel_trilinearVoidFraction <voidFractionModel_trilinearVoidFraction>` |
|
||||
+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------+
|
||||
|
||||
|
||||
.. _liws: http://www.cfdem.com
|
||||
|
||||
8
doc/_build/html/_sources/IOModel.txt
vendored
@ -19,12 +19,14 @@ Examples
|
||||
|
||||
IOModel "off";
|
||||
|
||||
Note: This examples list might not be complete - please look for other models (IOModel_XY) in this documentation.
|
||||
.. note::
|
||||
|
||||
This examples list might not be complete - please look for other models (IOModel_XY) in this documentation.
|
||||
|
||||
Description
|
||||
"""""""""""
|
||||
|
||||
The IO-model is the base class to write data (e.g. particle properties) to files.
|
||||
The IO-model is the base class to write data (e.g. particle properties) to files within the CFD file-structure.
|
||||
|
||||
Restrictions
|
||||
""""""""""""
|
||||
@ -35,7 +37,7 @@ none.
|
||||
Related commands
|
||||
""""""""""""""""
|
||||
|
||||
Note: This examples list may be incomplete - please look for other models (IOModel_XY) in this documentation.
|
||||
:doc:`basicIO <IOModel_basicIO>`, :doc:`noIO <IOModel_noIO>`, :doc:`sophIO <IOModel_sophIO>`, :doc:`trackIO <IOModel_trackIO>`
|
||||
|
||||
**Default:** none.
|
||||
|
||||
|
||||