Some cleaning up.

This commit is contained in:
Thomas Lichtenegger
2016-07-22 08:08:50 +02:00
parent 907054872b
commit 561f7fa865
6 changed files with 17 additions and 9 deletions

View File

@ -39,10 +39,11 @@ Rules
#include "singlePhaseTransportModel.H"
#include "turbulenceModel.H"
#include "cfdemCloudRec.H"
#include "cfdemCloud.H"
#include "recBase.H"
#include "recModel.H"
#include "clockModel.H"
#include "cfdemCloud.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])

View File

@ -10,9 +10,12 @@ EXE_INC = \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \
-I$(CFDEM_SRC_DIR)/recurrence/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/derived/cfdemCloudRec
EXE_LIBS = \
-L$(CFDEM_LIB_DIR)\
-lrecurrence \
-lincompressibleRASModels \
-lincompressibleLESModels \
-lincompressibleTransportModels \

View File

@ -1,5 +1,5 @@
alpha1Rec=*(particleCloud.recM().voidfraction());
alpha1Rec=*(recurrenceBase.recM().voidfraction());
alpha2Rec=1-alpha1Rec;
U1Rec=*(particleCloud.recM().U());
U2Rec=*(particleCloud.recM().Us());
phi2Rec=*(particleCloud.recM().phiS());
U1Rec=*(recurrenceBase.recM().U());
U2Rec=*(recurrenceBase.recM().Us());
phi2Rec=*(recurrenceBase.recM().phiS());

View File

@ -40,6 +40,9 @@ Rules
#include "singlePhaseTransportModel.H"
#include "turbulenceModel.H"
#include "cfdemCloudRec.H"
#include "cfdemCloud.H"
#include "recBase.H"
#include "recModel.H"
#include "clockModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -50,14 +53,15 @@ int main(int argc, char *argv[])
#include "createMesh.H"
#include "createFields.H"
#include "createFvOptions.H"
cfdemCloudRec particleCloud(mesh);
cfdemCloudRec<cfdemCloud> particleCloud(mesh);
recBase recurrenceBase(mesh);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info<< "\nCalculating particle trajectories based on recurrence statistics\n" << endl;
label recTimeIndex(0);
scalar recTimeStep_=particleCloud.recM().recTimeStep();
scalar recTimeStep_=recurrenceBase.recM().recTimeStep();
while (runTime.run())
{
@ -77,7 +81,7 @@ int main(int argc, char *argv[])
{
Info << "Updating fields at run time " << runTime.timeOutputValue()
<< " corresponding to recurrence time " << (recTimeIndex+1)*recTimeStep_ << ".\n" << endl;
particleCloud.updateRecFields();
recurrenceBase.updateRecFields();
#include "readFields.H"
recTimeIndex++;
}

View File

@ -96,7 +96,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "cfdemCloudRec.TPP"
#include "cfdemCloudRecI.H"
#endif