mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
Basics for statistical analysis of recurrence matrix.
This commit is contained in:
3
applications/solvers/rStatAnalysis/Make/files
Normal file
3
applications/solvers/rStatAnalysis/Make/files
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
rStatAnalysis.C
|
||||||
|
|
||||||
|
EXE=$(CFDEM_APP_DIR)/rStatAnalysis
|
||||||
25
applications/solvers/rStatAnalysis/Make/options
Normal file
25
applications/solvers/rStatAnalysis/Make/options
Normal 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)
|
||||||
0
applications/solvers/rStatAnalysis/createFields.H
Normal file
0
applications/solvers/rStatAnalysis/createFields.H
Normal file
70
applications/solvers/rStatAnalysis/rStatAnalysis.C
Normal file
70
applications/solvers/rStatAnalysis/rStatAnalysis.C
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -1,4 +1,5 @@
|
|||||||
rcfdemSolverHeattransfer/dir
|
rcfdemSolverHeattransfer/dir
|
||||||
|
rStatAnalysis/dir
|
||||||
rcfdemSolverBase/dir
|
rcfdemSolverBase/dir
|
||||||
rtfmSolverSpecies/dir
|
rtfmSolverSpecies/dir
|
||||||
cfdemSolverRhoPimple/dir
|
cfdemSolverRhoPimple/dir
|
||||||
|
|||||||
@ -78,6 +78,7 @@ void standardRecStatAnalysis::init()
|
|||||||
{
|
{
|
||||||
label size = base_.recM().numRecFields() - ignoreStepsInit_;
|
label size = base_.recM().numRecFields() - ignoreStepsInit_;
|
||||||
aveSimilarity_.resize(size,0.0);
|
aveSimilarity_.resize(size,0.0);
|
||||||
|
correlationSum_.resize(size,0.0);
|
||||||
mostDistinct_.resize(size,0.0);
|
mostDistinct_.resize(size,0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -81,6 +81,8 @@ private:
|
|||||||
|
|
||||||
scalarList aveSimilarity_;
|
scalarList aveSimilarity_;
|
||||||
|
|
||||||
|
scalarList correlationSum_;
|
||||||
|
|
||||||
scalarList mostDistinct_;
|
scalarList mostDistinct_;
|
||||||
|
|
||||||
void aveSimGeneral();
|
void aveSimGeneral();
|
||||||
|
|||||||
Reference in New Issue
Block a user