Basics for statistical analysis of recurrence matrix.

This commit is contained in:
Thomas Lichtenegger
2017-06-22 09:13:48 +02:00
parent 41788a1c95
commit 13987f0ba3
7 changed files with 103 additions and 1 deletions

View File

@ -0,0 +1,3 @@
rStatAnalysis.C
EXE=$(CFDEM_APP_DIR)/rStatAnalysis

View File

@ -0,0 +1,25 @@
include $(CFDEM_ADD_LIBS_DIR)/additionalLibs
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-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 \
-lturbulenceModels \
-lincompressibleTurbulenceModels \
-lincompressibleTransportModels \
-lfiniteVolume \
-lmeshTools \
-l$(CFDEM_LIB_NAME) \
$(CFDEM_ADD_LIB_PATHS) \
$(CFDEM_ADD_LIBS)

View File

@ -0,0 +1,70 @@
/*---------------------------------------------------------------------------*\
CFDEMcoupling academic - Open Source CFD-DEM coupling
Contributing authors:
Thomas Lichtenegger
Copyright (C) 2015- Johannes Kepler University, Linz
-------------------------------------------------------------------------------
License
This file is part of CFDEMcoupling academic.
CFDEMcoupling academic is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CFDEMcoupling academic is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with CFDEMcoupling academic. If not, see <http://www.gnu.org/licenses/>.
Application
rStatAnalysis
Description
Creates and analyzes a recurrence statistics
\*---------------------------------------------------------------------------*/
// #include "fvCFD.H"
// #include "singlePhaseTransportModel.H"
// #include "turbulentTransportModel.H"
// #include "fvOptions.H"
#include "recBase.H"
#include "recStatAnalysis.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
#include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "createControl.H"
recBase recurrenceBase(mesh);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info<< "\nAnalyzing recurrence statistics\n" << endl;
recurrenceBase.recStatA().init();
recurrenceBase.recStatA().statistics();
Info<< "End\n" << endl;
return 0;
}
// ************************************************************************* //

View File

@ -1,4 +1,5 @@
rcfdemSolverHeattransfer/dir
rStatAnalysis/dir
rcfdemSolverBase/dir
rtfmSolverSpecies/dir
cfdemSolverRhoPimple/dir

View File

@ -78,6 +78,7 @@ void standardRecStatAnalysis::init()
{
label size = base_.recM().numRecFields() - ignoreStepsInit_;
aveSimilarity_.resize(size,0.0);
correlationSum_.resize(size,0.0);
mostDistinct_.resize(size,0.0);
}

View File

@ -81,6 +81,8 @@ private:
scalarList aveSimilarity_;
scalarList correlationSum_;
scalarList mostDistinct_;
void aveSimGeneral();
@ -88,7 +90,7 @@ private:
void aveSimSpecial();
void mostDistinct();
};