MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
PostProcessingLbLPT< nDim > Class Template Reference

#include <postprocessinglblpt.h>

Inheritance diagram for PostProcessingLbLPT< nDim >:
[legend]
Collaboration diagram for PostProcessingLbLPT< nDim >:
[legend]

Public Types

using lpt = LPT< nDim >
 
using lb = LbSolver< nDim >
 
using BaseLb = PostProcessing< nDim, PostProcessingLb< nDim > >
 
using BaseLpt = PostProcessing< nDim, PostProcessingLPT< nDim > >
 
using ppLb = PostProcessingLb< nDim >
 
using ppLpt = PostProcessingLPT< nDim >
 
- Public Types inherited from PostProcessingLPT< nDim >
using SolverType = LPT< nDim >
 
using Base = PostProcessing< nDim, PostProcessingLPT< nDim > >
 
- Public Types inherited from PostProcessing< nDim, PostProcessingLPT< nDim > >
using PPGrid = CartesianGrid< nDim >
 
using Cell = typename PPGrid::Cell
 
using GridProxy = typename maia::grid::Proxy< nDim >
 
using Data = PostData< nDim >
 

Public Member Functions

 PostProcessingLbLPT (MInt postprocessingId_, PostData< nDim > *data, lb *ppLbSolver_, lpt *ppLptSolver_)
 
virtual ~PostProcessingLbLPT ()
 
SolvermSolver () const override
 
void initPostProcessing () override
 
void postprocessPreSolve () override
 
void postprocessPostSolve () override
 
void postprocessInSolve (const MBool finalTimeStep) override
 
void postprocessSolution () override
 
- Public Member Functions inherited from PostProcessingLPT< nDim >
 PostProcessingLPT (MInt postprocessingId_, PostData< nDim > *data, SolverType *ppSolver_)
 
virtual ~PostProcessingLPT ()
 
SolverTypesolver () const
 
void initSprayData () override
 init arrays More...
 
- Public Member Functions inherited from PostProcessing< nDim, PostProcessingLPT< nDim > >
 PostProcessing (MInt postprocessingId_, PostData< nDim > *data)
 
 ~PostProcessing ()
 Destructor for the massive paralle postprocessing solver. More...
 
void initPostProcessing () override
 Reads all required properties in and prepares for postprocessing. More...
 
void postprocessPreSolve () override
 
void postprocessPostSolve () override
 
void postprocessInSolve (MBool finalTimeStep) override
 
void postprocessSolution () override
 
SolvermSolver () const override
 
DatapostData () const
 
- Public Member Functions inherited from PostProcessingInterface
 PostProcessingInterface (const MInt postprocessingId_)
 
virtual ~PostProcessingInterface ()=default
 
 PostProcessingInterface (const PostProcessingInterface &)=delete
 
PostProcessingInterfaceoperator= (const PostProcessingInterface &)=delete
 
virtual void initPostProcessing ()=0
 
virtual void postprocessPreSolve ()=0
 
virtual void postprocessPostSolve ()=0
 
virtual void postprocessInSolve (MBool finalTimeStep)=0
 
virtual void postprocessSolution ()=0
 
virtual SolvermSolver () const =0
 
MInt a_postprocessingId () const
 

Protected Member Functions

void initLPTSolutionFile () override
 
void writeLPTSolutionFile () override
 
void initParticleStatistics () override
 
void computeParticleStatistics () override
 
void initPLIsoTurbulenceStatistics () override
 init function for particle-laden isotropic turbulence More...
 
void computePLIsoTurbulenceStatistics () override
 compute average quantites of particle-laden isotropic turbulence average particle response time tau_p average Stokes number in respect of the Kolmogorov length More...
 
- Protected Member Functions inherited from PostProcessingLPT< nDim >
void initLPTSolutionFile () override
 init function for LPT particle solution file More...
 
void writeLPTSolutionFile () override
 base function which is called every time-Step in postprocessInSolve More...
 
void initParticleStatistics () override
 init function for LPT particle statistics file More...
 
void computeParticleStatistics () override
 compute average quantites of particle phase average particle Reynolds number ReP the root mean square particle velocity vrms the total kinetic energy of the particles More...
 
void initParticleLog ()
 initialize particle.log More...
 
void writeParticleLog ()
 write particle Log file, containing particle position and velocity at timestep t More...
 
void particleMass ()
 computes conervation variables (mass/momentum/energy!) More...
 
void parcelStatistics ()
 computes parcel statistics More...
 
void particlePenetration ()
 calculate vertical and horizontal penetration from given coordinate More...
 
MInt getInjectionData ()
 
void advanceDataStep ()
 
void resetDataStep ()
 
- Protected Member Functions inherited from PostProcessing< nDim, PostProcessingLPT< nDim > >
MBool isActive () const
 
void transferSensorWeights ()
 
void initReduceToLevelAvg ()
 Initializes properties for grid level reduction. More...
 
void initTimeStepProperties ()
 Initializes timestep properties for postprocessing. More...
 
void initTimeStepPropertiesSlice ()
 
void initTimeStepPropertiesLine ()
 
virtual void initAveragingProperties ()
 Initialize properties relevant for temporal averaging. More...
 
void initProbePoint ()
 Initializes properties for point probing. More...
 
void initProbeLine ()
 Initializes properties and memory for line probing. More...
 
void initProbeSlice ()
 Initializes properties and memory for slice probing. More...
 
void initSpatialAveraging ()
 
void initProbeArbitraryLine ()
 initializes properties and data for arbitrary line probing More...
 
void initProbeArbitrarySlice ()
 initializes properties and data for arbitrary slice probing More...
 
void initProbeLinePeriodic ()
 
virtual void probeLinePeriodic ()
 
virtual void probeLinePeriodicPost ()
 
virtual void initSprayData ()
 
virtual void computeSprayData ()
 
virtual void writeSprayData ()
 
virtual void initLPTSolutionFile ()
 
virtual void writeLPTSolutionFile ()
 
virtual void initParticleStatistics ()
 
virtual void computeParticleStatistics ()
 
virtual void initPLIsoTurbulenceStatistics ()
 
virtual void computePLIsoTurbulenceStatistics ()
 
virtual void initAverageVariables ()
 allocates memory for averageSolutions() and averageSolutionsInSolve() More...
 
void pp_saveCoarseSolution ()
 
void averageSolutions ()
 Averages solutions. More...
 
virtual void averageSolutionsInSolve ()
 
void computeAndSaveDivergence ()
 
void computeAndSaveMean ()
 
void initAverageSolutionsSlice ()
 Initializes properties for slice averaging. More...
 
void averageSolutionsSlice ()
 
void probeLocation ()
 
void findClosestProbePointsGridCells ()
 
virtual void initPointSamplingData ()
 
virtual void savePointSamplingData ()
 
virtual void initSurfaceSamplingData ()
 
virtual void saveSurfaceSamplingData ()
 
virtual void initVolumeSamplingData ()
 
virtual void saveVolumeSamplingData ()
 
virtual void initIsoTurbulenceStatistics ()
 
virtual void computeIsoTurbulenceStatistics ()
 
void initWritePointData ()
 
void writePointData ()
 
void spatialAveraging ()
 
void spatialAveragingPost ()
 
void createCellToMap1D (std::map< MFloat, MInt, coord_comp_1d_ > &coordinates, std::map< MFloat, MFloat, coord_comp_1d_ > &cell_to_map)
 
void createCellToMap2D (std::map< std::pair< MFloat, MFloat >, MInt, coord_comp_2d_ > &coordinates, std::map< std::pair< MFloat, MFloat >, std::pair< MFloat, MFloat >, coord_comp_2d_ > &cell_to_map)
 
void probeLine ()
 
void probeLinePre ()
 
void probeLinePost ()
 
void probeSlice ()
 
void probeSliceIn ()
 
void probeSlicePre ()
 
void probeSlicePost ()
 
void collectMinLvlCells ()
 
void findContainingCell (const MFloat *coord, MInt &cellId)
 
void probeArbitraryLine ()
 
void probeArbitraryLinePost ()
 
void probeArbitrarySlice ()
 
void probeArbitrarySlicePost ()
 
virtual void initMovingAverage ()
 Initializes properties and allocates memory for moving averaging. More...
 
void movingAverage ()
 
void movingAveragePost ()
 
void initCorrelation ()
 
void initPeriodicSliceAverage ()
 Initializes the periodic averaging on a slice. More...
 
void periodicSliceAverage ()
 
MInt findNearestGridCell (const MFloat *coord)
 
void movePointsToGrid (MFloat *in_points, MInt in_noPoints, MInt in_moveType)
 
void getSampleVariables (MInt cellId, const MFloat *&vars, MBool mode)
 
void getSampleVariables (MInt const cellId, std::vector< MFloat > &vars)
 
void calcSamplingVar (const MInt cellId, const MInt sampleVarId, MFloat *const vars)
 
void saveSliceAiaFileFormat (const MInt step, const MInt noVars, MFloatScratchSpace &vars, const MInt sliceId)
 
MFloat calcDivergence (const MInt cellIdSolver)
 
virtual void calcVorticity (const MFloatTensor &deriv, MFloat vorticity[nDim *2 - 3])
 
virtual void getVorticity (MFloat *const vorticity)
 
virtual void getVorticityT (MFloat *const vorticity)
 
virtual void getPrimitiveVariables (MInt, MFloat *, MFloat *, MInt)
 
virtual void computeAcousticSourceTermQe (MFloatScratchSpace &, MFloatScratchSpace &, MFloatScratchSpace &, MFloatScratchSpace &)
 
void getSampleVarsDerivatives (const MInt cellId, const MFloat *&vars)
 
MBool getSampleVarsDerivatives (const MInt, std::vector< MFloat > &)
 
virtual MFloatvorticityAtCell (const MInt cellId, const MInt dir)
 
virtual MFloat getBoundaryHeatFlux (const MInt cellId) const
 
virtual void getPrimitiveVarNames (MString *names) const
 
void neededMeanVarsForSourceTerm (const MInt sourceTerm, std::vector< MInt > &meanVars) const
 
MBool isMeanFile ()
 

Private Member Functions

lptlptSolver () const
 
lblbSolver () const
 
void getConversionFactors ()
 
- Private Member Functions inherited from PostProcessingLb< nDim >
 PostProcessingLb (MInt postprocessingId_, PostData< nDim > *data, SolverType *ppSolver_)
 
virtual ~PostProcessingLb ()
 
SolverTypesolver () const
 
void initPointSamplingData () override
 
void savePointSamplingData () override
 
void initSurfaceSamplingData () override
 
void saveSurfaceSamplingData () override
 
void initVolumeSamplingData () override
 
void saveVolumeSamplingData () override
 
void initIsoTurbulenceStatistics () override
 init function for Isotropic Turbulence Statistics More...
 
void computeIsoTurbulenceStatistics () override
 write data for isotropic Turbulence (single phase and particle-laden) More...
 
MBool getSampleVarsDerivatives (const MInt cellId, std::vector< MFloat > &vars)
 
- Private Member Functions inherited from PostProcessing< nDim, PostProcessingLb< nDim > >
 PostProcessing (MInt postprocessingId_, PostData< nDim > *data)
 
 ~PostProcessing ()
 Destructor for the massive paralle postprocessing solver. More...
 
void initPostProcessing () override
 Reads all required properties in and prepares for postprocessing. More...
 
void postprocessPreSolve () override
 
void postprocessPostSolve () override
 
void postprocessInSolve (MBool finalTimeStep) override
 
void postprocessSolution () override
 
SolvermSolver () const override
 
DatapostData () const
 
MBool isActive () const
 
void transferSensorWeights ()
 
void initReduceToLevelAvg ()
 Initializes properties for grid level reduction. More...
 
void initTimeStepProperties ()
 Initializes timestep properties for postprocessing. More...
 
void initTimeStepPropertiesSlice ()
 
void initTimeStepPropertiesLine ()
 
virtual void initAveragingProperties ()
 Initialize properties relevant for temporal averaging. More...
 
void initProbePoint ()
 Initializes properties for point probing. More...
 
void initProbeLine ()
 Initializes properties and memory for line probing. More...
 
void initProbeSlice ()
 Initializes properties and memory for slice probing. More...
 
void initSpatialAveraging ()
 
void initProbeArbitraryLine ()
 initializes properties and data for arbitrary line probing More...
 
void initProbeArbitrarySlice ()
 initializes properties and data for arbitrary slice probing More...
 
void initProbeLinePeriodic ()
 
virtual void probeLinePeriodic ()
 
virtual void probeLinePeriodicPost ()
 
virtual void initSprayData ()
 
virtual void computeSprayData ()
 
virtual void writeSprayData ()
 
virtual void initLPTSolutionFile ()
 
virtual void writeLPTSolutionFile ()
 
virtual void initParticleStatistics ()
 
virtual void computeParticleStatistics ()
 
virtual void initPLIsoTurbulenceStatistics ()
 
virtual void computePLIsoTurbulenceStatistics ()
 
virtual void initAverageVariables ()
 allocates memory for averageSolutions() and averageSolutionsInSolve() More...
 
void pp_saveCoarseSolution ()
 
void averageSolutions ()
 Averages solutions. More...
 
virtual void averageSolutionsInSolve ()
 
void computeAndSaveDivergence ()
 
void computeAndSaveMean ()
 
void initAverageSolutionsSlice ()
 Initializes properties for slice averaging. More...
 
void averageSolutionsSlice ()
 
void probeLocation ()
 
void findClosestProbePointsGridCells ()
 
virtual void initPointSamplingData ()
 
virtual void savePointSamplingData ()
 
virtual void initSurfaceSamplingData ()
 
virtual void saveSurfaceSamplingData ()
 
virtual void initVolumeSamplingData ()
 
virtual void saveVolumeSamplingData ()
 
virtual void initIsoTurbulenceStatistics ()
 
virtual void computeIsoTurbulenceStatistics ()
 
void initWritePointData ()
 
void writePointData ()
 
void spatialAveraging ()
 
void spatialAveragingPost ()
 
void createCellToMap1D (std::map< MFloat, MInt, coord_comp_1d_ > &coordinates, std::map< MFloat, MFloat, coord_comp_1d_ > &cell_to_map)
 
void createCellToMap2D (std::map< std::pair< MFloat, MFloat >, MInt, coord_comp_2d_ > &coordinates, std::map< std::pair< MFloat, MFloat >, std::pair< MFloat, MFloat >, coord_comp_2d_ > &cell_to_map)
 
void probeLine ()
 
void probeLinePre ()
 
void probeLinePost ()
 
void probeSlice ()
 
void probeSliceIn ()
 
void probeSlicePre ()
 
void probeSlicePost ()
 
void collectMinLvlCells ()
 
void findContainingCell (const MFloat *coord, MInt &cellId)
 
void probeArbitraryLine ()
 
void probeArbitraryLinePost ()
 
void probeArbitrarySlice ()
 
void probeArbitrarySlicePost ()
 
virtual void initMovingAverage ()
 Initializes properties and allocates memory for moving averaging. More...
 
void movingAverage ()
 
void movingAveragePost ()
 
void initCorrelation ()
 
void initPeriodicSliceAverage ()
 Initializes the periodic averaging on a slice. More...
 
void periodicSliceAverage ()
 
MInt findNearestGridCell (const MFloat *coord)
 
void movePointsToGrid (MFloat *in_points, MInt in_noPoints, MInt in_moveType)
 
void getSampleVariables (MInt cellId, const MFloat *&vars, MBool mode)
 
void getSampleVariables (MInt const cellId, std::vector< MFloat > &vars)
 
void calcSamplingVar (const MInt cellId, const MInt sampleVarId, MFloat *const vars)
 
void saveSliceAiaFileFormat (const MInt step, const MInt noVars, MFloatScratchSpace &vars, const MInt sliceId)
 
MFloat calcDivergence (const MInt cellIdSolver)
 
virtual void calcVorticity (const MFloatTensor &deriv, MFloat vorticity[nDim *2 - 3])
 
virtual void getVorticity (MFloat *const vorticity)
 
virtual void getVorticityT (MFloat *const vorticity)
 
virtual void getPrimitiveVariables (MInt, MFloat *, MFloat *, MInt)
 
virtual void computeAcousticSourceTermQe (MFloatScratchSpace &, MFloatScratchSpace &, MFloatScratchSpace &, MFloatScratchSpace &)
 
void getSampleVarsDerivatives (const MInt cellId, const MFloat *&vars)
 
MBool getSampleVarsDerivatives (const MInt, std::vector< MFloat > &)
 
virtual MFloatvorticityAtCell (const MInt cellId, const MInt dir)
 
virtual MFloat getBoundaryHeatFlux (const MInt cellId) const
 
virtual void getPrimitiveVarNames (MString *names) const
 
void neededMeanVarsForSourceTerm (const MInt sourceTerm, std::vector< MInt > &meanVars) const
 
MBool isMeanFile ()
 
- Private Member Functions inherited from PostProcessingInterface
 PostProcessingInterface (const MInt postprocessingId_)
 
virtual ~PostProcessingInterface ()=default
 
 PostProcessingInterface (const PostProcessingInterface &)=delete
 
PostProcessingInterfaceoperator= (const PostProcessingInterface &)=delete
 
virtual void initPostProcessing ()=0
 
virtual void postprocessPreSolve ()=0
 
virtual void postprocessPostSolve ()=0
 
virtual void postprocessInSolve (MBool finalTimeStep)=0
 
virtual void postprocessSolution ()=0
 
virtual SolvermSolver () const =0
 
MInt a_postprocessingId () const
 

Private Attributes

lptm_ppSolverLpt
 
lbm_ppSolverLb
 
MFloat m_conversionLbLptLength
 
MFloat m_conversionLptLbLength
 
MFloat m_tau_eta
 
- Private Attributes inherited from PostProcessingLb< nDim >
std::unique_ptr< PointData< nDim, SolverType > > m_pointData
 
std::unique_ptr< SurfaceData< nDim, SolverType > > m_surfaceData
 
std::unique_ptr< VolumeData< nDim, SolverType > > m_volumeData
 
MFloat m_tau_eta
 
- Private Attributes inherited from PostProcessing< nDim, PostProcessingLb< nDim > >
MInt m_noLocalVars
 
MInt m_restartTimeStep
 
MBool m_statisticCombustionAnalysis
 
MBool m_acousticAnalysis
 
MInt m_noPostprocessingOps
 
MStringm_postprocessingOps
 
tvecpost m_postprocessingSolution
 
std::vector< tvecpostm_postprocessingMethods
 
std::vector< std::vector< MString > > m_postprocessingMethodsDesc
 
Datam_postData
 
MInt m_noVariables
 
MBool m_square
 
MBool m_skewness
 
MBool m_kurtosis
 
MBool m_computeAndSaveMean
 
MBool m_twoPass
 
MBool m_useKahan
 
MBool m_correlation
 
std::vector< MInt > * m_cell2globalIndex
 
MIntm_noPeriodicSliceCells
 
MFloat ** m_sliceAverage
 
MInt m_globalnoSlicePositions
 
std::multimap< MFloat, MFloatm_sliceGlobalPositions
 
MBool m_averageVorticity
 
MBool m_averageSpeedOfSound
 
MFloat m_gamma
 
MInt m_movingAverageStartTimestep
 
MInt m_movingAverageStopTimestep
 
MInt m_movingAverageInterval
 
MInt m_movingAverageDataPoints
 
MInt m_movingAverageCounter
 
MFloat ** m_movAvgVariables
 
MInt m_movAvgNoVariables
 
MStringm_movAvgVarNames
 
MInt m_spatialDirection1
 
MInt m_spatialDirection2
 
MFloat m_spatialWeightSinglePoint
 
MFloat m_spatialLvlWeight [20]
 
MIntm_spatialDispls
 
MIntm_spatialVarsDispls
 
MIntm_spatialRecvcnts
 
MIntm_spatialVarsRecvcnts
 
MInt m_spatialCoordSum
 
std::map< MFloat, MInt, coord_comp_1d_m_spatialLineCoordinates
 
std::map< MFloat, MFloat, coord_comp_1d_m_spatialLineCellToMap
 
std::map< MFloat, MInt, coord_comp_1d_m_spatialGlobalLineCoordinates
 
std::map< MFloat, MFloat, coord_comp_1d_m_spatialGlobalLineCellToMap
 
MInt m_spatialLineNoCells
 
MFloatm_spatialLineAllVars
 
MFloatm_spatialLineAllCoord
 
std::map< std::pair< MFloat, MFloat >, MInt, coord_comp_2d_m_spatialPlaneCoordinates
 
std::map< std::pair< MFloat, MFloat >, std::pair< MFloat, MFloat >, coord_comp_2d_m_spatialPlaneCellToMap
 
std::map< std::pair< MFloat, MFloat >, MInt, coord_comp_2d_m_spatialGlobalPlaneCoordinates
 
std::map< std::pair< MFloat, MFloat >, std::pair< MFloat, MFloat >, coord_comp_2d_m_spatialGlobalPlaneCellToMap
 
MInt m_spatialPlaneNoCells
 
MFloatm_spatialPlaneAllVars
 
MFloatm_spatialPlaneAllCoord
 
MInt m_noProbeLines
 
MIntm_probeLineDirection
 
MIntm_probeLinePeriodic
 
MFloat ** m_probeLineCoordinates
 
MInt ** m_probeLineIds
 
MIntm_noProbeLineIds
 
MFloat ** m_probeLinePositions
 
MIntm_globalNoProbeLineIds
 
MIntm_probeLineOffsets
 
MInt ** m_noGlobalProbeLineIds
 
MInt m_probeLineInterval
 
MInt m_probeLineStartTimestep
 
MInt m_probeLineStopTimestep
 
MIntm_correlationDirection
 
MIntm_correlationVariableIndex
 
MFloat ** m_correlationCoordinates
 
MInt m_noCorrelationLines
 
MIntm_noCorrelationIds
 
MInt ** m_correlationIds
 
MInt ** m_globalCorrelationIds
 
MFloat ** m_globalCorrelationPositions
 
MIntm_globalNoCorrelationIds
 
MFloat ** m_correlationPositions
 
MInt ** m_correlationIndexMapping
 
MFloat ** m_correlationExchangeVar
 
MFloat ** m_correlationExchangeVarMean
 
MFloat ** m_correlationExchangeVarRMS
 
MFloat ** m_globalCorrelationExchangeVar
 
MFloat ** m_globalCorrelationExchangeVarMean
 
MFloat ** m_globalCorrelationExchangeVarRMS
 
MIntm_probeLineAverageDirection
 
MFloat ** m_probeLineAverageCoordinates
 
MInt ** m_probeLineAverageCoordinatesSign
 
MInt ** m_noProbeLineAverageIds
 
MFloat *** m_globalProbeLineAverageVars
 
MInt m_noProbeLineAverageSteps
 
MInt ** m_globalNoProbeLineAverageIds
 
MInt *** m_probeLineAverageIds
 
MFloat *** m_probeLineAveragePositions
 
MInt m_noProbeSlices
 
MIntm_probeSliceDir
 
MFloatm_probeSliceCoordinate
 
MInt ** m_probeSliceIds
 
MIntm_noProbeSliceIds
 
MFloat ** m_probeSlicePositions
 
MIntm_globalNoProbeSliceIds
 
MIntm_probeSliceOffsets
 
MInt ** m_noGlobalProbeSliceIds
 
MStringm_probeSliceGridNames
 
MStringm_sliceAxis
 
MFloatm_sliceIntercept
 
MBool m_sliceAiaFileFormat
 
MBool m_optimizedSliceIo
 
MIntm_noProbeSliceNoHilbertIds
 
MIntm_noProbeSliceMaxNoHilbertIds
 
MInt ** m_noProbeSliceHilbertInfo
 
MIntm_noProbeSliceNoContHilbertIds
 
MIntm_noProbeSliceMaxNoContHilbertIds
 
MInt ** m_noProbeSliceContHilbertInfo
 
MInt m_probeSliceInterval
 
MInt m_probeSliceStartTimestep
 
MInt m_probeSliceStopTimestep
 
std::vector< MIntm_sliceVarIds
 List of slice variables. More...
 
std::vector< MIntm_noSliceVars
 Number of variables for each slice variable. More...
 
std::vector< std::vector< MString > > m_sliceVarNames
 List of variable names for each slice variable. More...
 
MInt m_noMinLvlIds
 
MIntm_minLvlIds
 
MInt m_movePointsToGrid
 
MBool m_spatialAveraging
 
MFloatm_arbLinePoints
 
MInt m_noArbLines
 
MIntm_noArbLineIds
 
MFloatm_arbLinePointsDistribution
 
MIntm_arbLineHasNewDistribution
 
MIntm_arbLineFull
 
MIntm_moveLinePointsToGrid
 
MIntm_globalNoArbLineIds
 
MInt ** m_arbLineIds
 
MIntm_arbLineOffsets
 
MFloat ** m_arbLineCoordinates
 
MFloatm_arbSlicePoints
 
MInt m_noArbSlices
 
MIntm_noArbSlicePoints
 
MFloatm_arbSlicePointsDistribution
 
MIntm_globalNoArbSlicePoints
 
MInt ** m_arbSliceIds
 
MIntm_arbSliceOffsets
 
MFloat ** m_arbSliceCoordinates
 
MString m_postprocessFileName
 
MFloat ** m_localVars
 
MBool m_averageRestart
 
MInt m_averageInterval
 
MInt m_averageStartTimestep
 
MInt m_averageStopTimestep
 
MInt m_noAveragedVorticities
 
MInt m_noSpeedOfSoundVars
 
MInt m_noSourceVars
 
MBool m_needVorticity
 
MString m_ReStressesAverageFileName
 
MFloat ** m_probeCoordinates
 
MString m_probePath
 
MIntm_probeCellIds
 
std::ofstream * m_probeFileStreams
 
MInt m_noProbePoints
 
MInt m_probeInterval
 
MInt m_probeWriteInterval
 
MString m_pdFileName
 
MInt m_pdStartTimestep
 
MInt m_pdStopTimestep
 
MInt m_pdRestartInterval
 
std::vector< MFloatm_pdPoints
 
std::vector< MIntm_pdCells
 
std::vector< MFloatm_pdVars
 
MInt m_pdNoPoints
 
MInt m_sprayComputeInterval
 
MInt m_sprayWriteInterval
 
MInt m_sprayDataSize
 
MInt m_sprayDataStep
 
MFloat ** m_particleCV
 
MFloat ** m_particlePen
 
MFloat ** m_sprayStat
 
MFloat ** m_sprayTimes
 
MFloat ** m_injectionData
 
MFloat ** m_vapourCV
 
MFloat ** m_vapourPen
 
MInt m_LPTSolutionInterval
 
MBool m_forceOutput
 
std::vector< MIntm_activeSourceTerms
 
std::array< MString, ST::totalNoSourceTermss_sourceTermNames
 
std::set< MIntm_activeMeanVars
 
- Private Attributes inherited from PostProcessingInterface
MBool m_finalTimeStep = false
 
MInt m_postprocessingId
 

Friends

template<MInt nDim_, class ppType >
class PostProcessing
 
template<MInt nDim_>
class LPT
 

Additional Inherited Members

- Public Attributes inherited from PostProcessing< nDim, PostProcessingLPT< nDim > >
MInt m_noLocalVars
 
MInt m_restartTimeStep
 
MBool m_statisticCombustionAnalysis
 
MBool m_acousticAnalysis
 
- Public Attributes inherited from PostProcessingInterface
MBool m_finalTimeStep = false
 
- Protected Types inherited from PostProcessing< nDim, PostProcessingLPT< nDim > >
typedef void(PostProcessing::* tpost) ()
 
typedef std::vector< tposttvecpost
 
- Protected Attributes inherited from PostProcessingLPT< nDim >
SolverTypem_ppSolver
 
MFloat ** m_cInjData = nullptr
 
MFloat m_AvgRe_p = F0
 
MFloat m_VpRMS = F0
 
MFloat m_EkinP = F0
 
MBool m_writeParLog = false
 
MInt m_parLogInterval = 50
 
MBool m_parLogApp = false
 
- Protected Attributes inherited from PostProcessing< nDim, PostProcessingLPT< nDim > >
MInt m_noPostprocessingOps
 
MStringm_postprocessingOps
 
tvecpost m_postprocessingSolution
 
std::vector< tvecpostm_postprocessingMethods
 
std::vector< std::vector< MString > > m_postprocessingMethodsDesc
 
Datam_postData
 
MInt m_noVariables
 
MBool m_square
 
MBool m_skewness
 
MBool m_kurtosis
 
MBool m_computeAndSaveMean
 
MBool m_twoPass
 
MBool m_useKahan
 
MBool m_correlation
 
std::vector< MInt > * m_cell2globalIndex
 
MIntm_noPeriodicSliceCells
 
MFloat ** m_sliceAverage
 
MInt m_globalnoSlicePositions
 
std::multimap< MFloat, MFloatm_sliceGlobalPositions
 
MBool m_averageVorticity
 
MBool m_averageSpeedOfSound
 
MFloat m_gamma
 
MInt m_movingAverageStartTimestep
 
MInt m_movingAverageStopTimestep
 
MInt m_movingAverageInterval
 
MInt m_movingAverageDataPoints
 
MInt m_movingAverageCounter
 
MFloat ** m_movAvgVariables
 
MInt m_movAvgNoVariables
 
MStringm_movAvgVarNames
 
MInt m_spatialDirection1
 
MInt m_spatialDirection2
 
MFloat m_spatialWeightSinglePoint
 
MFloat m_spatialLvlWeight [20]
 
MIntm_spatialDispls
 
MIntm_spatialVarsDispls
 
MIntm_spatialRecvcnts
 
MIntm_spatialVarsRecvcnts
 
MInt m_spatialCoordSum
 
std::map< MFloat, MInt, coord_comp_1d_m_spatialLineCoordinates
 
std::map< MFloat, MFloat, coord_comp_1d_m_spatialLineCellToMap
 
std::map< MFloat, MInt, coord_comp_1d_m_spatialGlobalLineCoordinates
 
std::map< MFloat, MFloat, coord_comp_1d_m_spatialGlobalLineCellToMap
 
MInt m_spatialLineNoCells
 
MFloatm_spatialLineAllVars
 
MFloatm_spatialLineAllCoord
 
std::map< std::pair< MFloat, MFloat >, MInt, coord_comp_2d_m_spatialPlaneCoordinates
 
std::map< std::pair< MFloat, MFloat >, std::pair< MFloat, MFloat >, coord_comp_2d_m_spatialPlaneCellToMap
 
std::map< std::pair< MFloat, MFloat >, MInt, coord_comp_2d_m_spatialGlobalPlaneCoordinates
 
std::map< std::pair< MFloat, MFloat >, std::pair< MFloat, MFloat >, coord_comp_2d_m_spatialGlobalPlaneCellToMap
 
MInt m_spatialPlaneNoCells
 
MFloatm_spatialPlaneAllVars
 
MFloatm_spatialPlaneAllCoord
 
MInt m_noProbeLines
 
MIntm_probeLineDirection
 
MIntm_probeLinePeriodic
 
MFloat ** m_probeLineCoordinates
 
MInt ** m_probeLineIds
 
MIntm_noProbeLineIds
 
MFloat ** m_probeLinePositions
 
MIntm_globalNoProbeLineIds
 
MIntm_probeLineOffsets
 
MInt ** m_noGlobalProbeLineIds
 
MInt m_probeLineInterval
 
MInt m_probeLineStartTimestep
 
MInt m_probeLineStopTimestep
 
MIntm_correlationDirection
 
MIntm_correlationVariableIndex
 
MFloat ** m_correlationCoordinates
 
MInt m_noCorrelationLines
 
MIntm_noCorrelationIds
 
MInt ** m_correlationIds
 
MInt ** m_globalCorrelationIds
 
MFloat ** m_globalCorrelationPositions
 
MIntm_globalNoCorrelationIds
 
MFloat ** m_correlationPositions
 
MInt ** m_correlationIndexMapping
 
MFloat ** m_correlationExchangeVar
 
MFloat ** m_correlationExchangeVarMean
 
MFloat ** m_correlationExchangeVarRMS
 
MFloat ** m_globalCorrelationExchangeVar
 
MFloat ** m_globalCorrelationExchangeVarMean
 
MFloat ** m_globalCorrelationExchangeVarRMS
 
MIntm_probeLineAverageDirection
 
MFloat ** m_probeLineAverageCoordinates
 
MInt ** m_probeLineAverageCoordinatesSign
 
MInt ** m_noProbeLineAverageIds
 
MFloat *** m_globalProbeLineAverageVars
 
MInt m_noProbeLineAverageSteps
 
MInt ** m_globalNoProbeLineAverageIds
 
MInt *** m_probeLineAverageIds
 
MFloat *** m_probeLineAveragePositions
 
MInt m_noProbeSlices
 
MIntm_probeSliceDir
 
MFloatm_probeSliceCoordinate
 
MInt ** m_probeSliceIds
 
MIntm_noProbeSliceIds
 
MFloat ** m_probeSlicePositions
 
MIntm_globalNoProbeSliceIds
 
MIntm_probeSliceOffsets
 
MInt ** m_noGlobalProbeSliceIds
 
MStringm_probeSliceGridNames
 
MStringm_sliceAxis
 
MFloatm_sliceIntercept
 
MBool m_sliceAiaFileFormat
 
MBool m_optimizedSliceIo
 
MIntm_noProbeSliceNoHilbertIds
 
MIntm_noProbeSliceMaxNoHilbertIds
 
MInt ** m_noProbeSliceHilbertInfo
 
MIntm_noProbeSliceNoContHilbertIds
 
MIntm_noProbeSliceMaxNoContHilbertIds
 
MInt ** m_noProbeSliceContHilbertInfo
 
MInt m_probeSliceInterval
 
MInt m_probeSliceStartTimestep
 
MInt m_probeSliceStopTimestep
 
std::vector< MIntm_sliceVarIds
 List of slice variables. More...
 
std::vector< MIntm_noSliceVars
 Number of variables for each slice variable. More...
 
std::vector< std::vector< MString > > m_sliceVarNames
 List of variable names for each slice variable. More...
 
MInt m_noMinLvlIds
 
MIntm_minLvlIds
 
MInt m_movePointsToGrid
 
MBool m_spatialAveraging
 
MFloatm_arbLinePoints
 
MInt m_noArbLines
 
MIntm_noArbLineIds
 
MFloatm_arbLinePointsDistribution
 
MIntm_arbLineHasNewDistribution
 
MIntm_arbLineFull
 
MIntm_moveLinePointsToGrid
 
MIntm_globalNoArbLineIds
 
MInt ** m_arbLineIds
 
MIntm_arbLineOffsets
 
MFloat ** m_arbLineCoordinates
 
MFloatm_arbSlicePoints
 
MInt m_noArbSlices
 
MIntm_noArbSlicePoints
 
MFloatm_arbSlicePointsDistribution
 
MIntm_globalNoArbSlicePoints
 
MInt ** m_arbSliceIds
 
MIntm_arbSliceOffsets
 
MFloat ** m_arbSliceCoordinates
 
MString m_postprocessFileName
 
MFloat ** m_localVars
 
MBool m_averageRestart
 
MInt m_averageInterval
 
MInt m_averageStartTimestep
 
MInt m_averageStopTimestep
 
MInt m_noAveragedVorticities
 
MInt m_noSpeedOfSoundVars
 
MInt m_noSourceVars
 
MBool m_needVorticity
 
MString m_ReStressesAverageFileName
 
MFloat ** m_probeCoordinates
 
MString m_probePath
 
MIntm_probeCellIds
 
std::ofstream * m_probeFileStreams
 
MInt m_noProbePoints
 
MInt m_probeInterval
 
MInt m_probeWriteInterval
 
MString m_pdFileName
 
MInt m_pdStartTimestep
 
MInt m_pdStopTimestep
 
MInt m_pdRestartInterval
 
std::vector< MFloatm_pdPoints
 
std::vector< MIntm_pdCells
 
std::vector< MFloatm_pdVars
 
MInt m_pdNoPoints
 
MInt m_sprayComputeInterval
 
MInt m_sprayWriteInterval
 
MInt m_sprayDataSize
 
MInt m_sprayDataStep
 
MFloat ** m_particleCV
 
MFloat ** m_particlePen
 
MFloat ** m_sprayStat
 
MFloat ** m_sprayTimes
 
MFloat ** m_injectionData
 
MFloat ** m_vapourCV
 
MFloat ** m_vapourPen
 
MInt m_LPTSolutionInterval
 
MBool m_forceOutput
 
std::vector< MIntm_activeSourceTerms
 
std::array< MString, ST::totalNoSourceTermss_sourceTermNames
 
std::set< MIntm_activeMeanVars
 
- Protected Attributes inherited from PostProcessingInterface
MInt m_postprocessingId
 
- Private Types inherited from PostProcessingLb< nDim >
using SolverType = LbSolver< nDim >
 
using Base = PostProcessing< nDim, PostProcessingLb< nDim > >
 
- Private Types inherited from PostProcessing< nDim, PostProcessingLb< nDim > >
using PPGrid = CartesianGrid< nDim >
 
using Cell = typename PPGrid::Cell
 
using GridProxy = typename maia::grid::Proxy< nDim >
 
using Data = PostData< nDim >
 
typedef void(PostProcessing::* tpost) ()
 
typedef std::vector< tposttvecpost
 

Detailed Description

template<MInt nDim>
class PostProcessingLbLPT< nDim >

Definition at line 17 of file postprocessinglblpt.h.

Member Typedef Documentation

◆ BaseLb

template<MInt nDim>
using PostProcessingLbLPT< nDim >::BaseLb = PostProcessing<nDim, PostProcessingLb<nDim> >

Definition at line 27 of file postprocessinglblpt.h.

◆ BaseLpt

template<MInt nDim>
using PostProcessingLbLPT< nDim >::BaseLpt = PostProcessing<nDim, PostProcessingLPT<nDim> >

Definition at line 28 of file postprocessinglblpt.h.

◆ lb

template<MInt nDim>
using PostProcessingLbLPT< nDim >::lb = LbSolver<nDim>

Definition at line 26 of file postprocessinglblpt.h.

◆ lpt

template<MInt nDim>
using PostProcessingLbLPT< nDim >::lpt = LPT<nDim>

Definition at line 25 of file postprocessinglblpt.h.

◆ ppLb

template<MInt nDim>
using PostProcessingLbLPT< nDim >::ppLb = PostProcessingLb<nDim>

Definition at line 29 of file postprocessinglblpt.h.

◆ ppLpt

template<MInt nDim>
using PostProcessingLbLPT< nDim >::ppLpt = PostProcessingLPT<nDim>

Definition at line 30 of file postprocessinglblpt.h.

Constructor & Destructor Documentation

◆ PostProcessingLbLPT()

template<MInt nDim>
PostProcessingLbLPT< nDim >::PostProcessingLbLPT ( MInt  postprocessingId_,
PostData< nDim > *  data,
lb ppLbSolver_,
lpt ppLptSolver_ 
)

Definition at line 13 of file postprocessinglblpt.cpp.

17 : PostProcessingInterface(postprocessingId_),
18 PostProcessingLPT<nDim>(postprocessingId_, data, ppLptSolver_),
19 PostProcessingLb<nDim>(postprocessingId_, data, ppLbSolver_) {
20 m_ppSolverLpt = ppLptSolver_;
21 m_ppSolverLb = ppLbSolver_;
22}
lpt * m_ppSolverLpt
lb * m_ppSolverLb

◆ ~PostProcessingLbLPT()

template<MInt nDim>
virtual PostProcessingLbLPT< nDim >::~PostProcessingLbLPT ( )
inlinevirtual

Definition at line 35 of file postprocessinglblpt.h.

35{};

Member Function Documentation

◆ computeParticleStatistics()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::computeParticleStatistics ( )
inlineoverrideprotectedvirtual

Reimplemented from PostProcessing< nDim, PostProcessingLPT< nDim > >.

Definition at line 50 of file postprocessinglblpt.h.

void computeParticleStatistics() override
compute average quantites of particle phase average particle Reynolds number ReP the root mean square...

◆ computePLIsoTurbulenceStatistics()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::computePLIsoTurbulenceStatistics
overrideprotectedvirtual
Author
Johannes Grafen
Date
Jul 2022

Reimplemented from PostProcessing< nDim, PostProcessingLPT< nDim > >.

Definition at line 73 of file postprocessinglblpt.cpp.

73 {
74 TRACE();
75
76 if((lbSolver().a_FFTInterval() > 0 && globalTimeStep % lbSolver().a_FFTInterval() == 0) || m_finalTimeStep) {
77 const MInt globalNoPart = lptSolver().globalNoParticles();
78 MFloat tau_P = F0;
79 MFloat St_eta = F0;
80
81 for(const auto& part : lptSolver().m_partList) {
82 tau_P += 1.0 / 18.0 * part.m_densityRatio * POW2(part.m_diameter * m_conversionLptLbLength) / lbSolver().a_Nu();
83 St_eta += tau_P / m_tau_eta; // Stokes number
84 }
85
86 MPI_Allreduce(MPI_IN_PLACE, &tau_P, 1, MPI_DOUBLE, MPI_SUM, lbSolver().mpiComm(), AT_, "INPLACE", "tau_P");
87
88 MPI_Allreduce(MPI_IN_PLACE, &St_eta, 1, MPI_DOUBLE, MPI_SUM, lbSolver().mpiComm(), AT_, "INPLACE", "St_eta");
89
90 MFloat tau_P_Avg = tau_P / globalNoPart;
91 MFloat St_eta_Avg = St_eta / globalNoPart;
92
93 if(lbSolver().domainId() == 0) {
94 std::ofstream PLlog;
95 PLlog.open("PLIsoTurbStatistics.log", ios::app);
96 PLlog << std::setw(5) << globalTimeStep << "\t" << std::setw(10) << tau_P_Avg << "\t" << std::setw(10)
97 << St_eta_Avg << std::endl;
98 PLlog.close();
99 }
100 }
101}
MInt globalNoParticles()
Definition: lpt.h:494
MBool m_finalTimeStep
MFloat m_tau_eta
MFloat m_conversionLptLbLength
lpt & lptSolver() const
lb & lbSolver() const
constexpr Real POW2(const Real x)
Definition: functions.h:119
MInt globalTimeStep
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52
int MPI_Allreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, const MString &name, const MString &sndvarname, const MString &rcvvarname)
same as MPI_Allreduce

◆ getConversionFactors()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::getConversionFactors ( )
private

◆ initLPTSolutionFile()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::initLPTSolutionFile ( )
inlineoverrideprotectedvirtual

Reimplemented from PostProcessing< nDim, PostProcessingLPT< nDim > >.

Definition at line 46 of file postprocessinglblpt.h.

void initLPTSolutionFile() override
init function for LPT particle solution file

◆ initParticleStatistics()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::initParticleStatistics ( )
inlineoverrideprotectedvirtual

Reimplemented from PostProcessing< nDim, PostProcessingLPT< nDim > >.

Definition at line 49 of file postprocessinglblpt.h.

void initParticleStatistics() override
init function for LPT particle statistics file

◆ initPLIsoTurbulenceStatistics()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::initPLIsoTurbulenceStatistics
overrideprotectedvirtual
Author
Johannes Grafen
Date
Jul 2022

Reimplemented from PostProcessing< nDim, PostProcessingLPT< nDim > >.

Definition at line 50 of file postprocessinglblpt.cpp.

50 {
51 TRACE();
52
54 if(lbSolver().domainId() == 0) {
55 std::ofstream PLlog;
56 PLlog.open("PLIsoTurbStatistics.log", ios::app);
57 PLlog << std::setw(5) << "t"
58 << "\t" << std::setw(10) << "tau_p"
59 << "\t" << std::setw(10) << "St_eta" << std::endl;
60 PLlog.close();
61 }
62}
void getConversionFactors()

◆ initPostProcessing()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::initPostProcessing ( )
inlineoverridevirtual

Implements PostProcessingInterface.

Definition at line 39 of file postprocessinglblpt.h.

void initPostProcessing() override
Reads all required properties in and prepares for postprocessing.

◆ lbSolver()

template<MInt nDim>
lb & PostProcessingLbLPT< nDim >::lbSolver ( ) const
inlineprivate

Definition at line 63 of file postprocessinglblpt.h.

63{ return *m_ppSolverLb; }

◆ lptSolver()

template<MInt nDim>
lpt & PostProcessingLbLPT< nDim >::lptSolver ( ) const
inlineprivate

Definition at line 62 of file postprocessinglblpt.h.

62{ return *m_ppSolverLpt; }

◆ mSolver()

template<MInt nDim>
Solver * PostProcessingLbLPT< nDim >::mSolver ( ) const
inlineoverridevirtual

Implements PostProcessingInterface.

Definition at line 37 of file postprocessinglblpt.h.

37{ return static_cast<Solver*>(m_ppSolverLb); };
Parent class of all solvers This class is the base for all solvers. I.e. all solver class (e....
Definition: solver.h:29

◆ postprocessInSolve()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::postprocessInSolve ( const MBool  finalTimeStep)
inlineoverridevirtual

Implements PostProcessingInterface.

Definition at line 42 of file postprocessinglblpt.h.

42{ BaseLb::postprocessInSolve(finalTimeStep); };
void postprocessInSolve(MBool finalTimeStep) override

◆ postprocessPostSolve()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::postprocessPostSolve ( )
inlineoverridevirtual

◆ postprocessPreSolve()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::postprocessPreSolve ( )
inlineoverridevirtual

◆ postprocessSolution()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::postprocessSolution ( )
inlineoverridevirtual

◆ writeLPTSolutionFile()

template<MInt nDim>
void PostProcessingLbLPT< nDim >::writeLPTSolutionFile ( )
inlineoverrideprotectedvirtual

Reimplemented from PostProcessing< nDim, PostProcessingLPT< nDim > >.

Definition at line 47 of file postprocessinglblpt.h.

void writeLPTSolutionFile() override
base function which is called every time-Step in postprocessInSolve

Friends And Related Function Documentation

◆ LPT

template<MInt nDim>
template<MInt nDim_>
friend class LPT
friend

Definition at line 22 of file postprocessinglblpt.h.

◆ PostProcessing

template<MInt nDim>
template<MInt nDim_, class ppType >
friend class PostProcessing
friend

Definition at line 20 of file postprocessinglblpt.h.

Member Data Documentation

◆ m_conversionLbLptLength

template<MInt nDim>
MFloat PostProcessingLbLPT< nDim >::m_conversionLbLptLength
private

Definition at line 59 of file postprocessinglblpt.h.

◆ m_conversionLptLbLength

template<MInt nDim>
MFloat PostProcessingLbLPT< nDim >::m_conversionLptLbLength
private

Definition at line 60 of file postprocessinglblpt.h.

◆ m_ppSolverLb

template<MInt nDim>
lb* PostProcessingLbLPT< nDim >::m_ppSolverLb
private

Definition at line 57 of file postprocessinglblpt.h.

◆ m_ppSolverLpt

template<MInt nDim>
lpt* PostProcessingLbLPT< nDim >::m_ppSolverLpt
private

Definition at line 56 of file postprocessinglblpt.h.

◆ m_tau_eta

template<MInt nDim>
MFloat PostProcessingLb< nDim >::m_tau_eta
private

Definition at line 76 of file postprocessinglb.h.


The documentation for this class was generated from the following files: