Microflow 3D
v1.0
|
The ConsoleWriter class collects functions that prints information on console. More...
#include <ConsoleWriter.h>
Public Member Functions | |
ConsoleWriter ()=default | |
~ConsoleWriter ()=default | |
Static Public Member Functions | |
static void | ThreadsArrayInfo (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Prints on console information about all MFThreads. More... | |
static void | ThreadsNodeInfo (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Prints on console information about all Threads node. More... | |
static void | ExtendedInfo (const std::shared_ptr< MF::Solver_CPU::ProgramParameters > &ProgramParameters_Ptr, const std::shared_ptr< MF::Solver_CPU::CaseParameters > &CaseParameters_Ptr, const std::shared_ptr< MF::Database::ConfigData > &ConfigData_Ptr) |
Prints on console case and program parameters and also uid-threads defined in thread_params.cfg. More... | |
static void | PrintComputationParameters (const std::shared_ptr< MF::Solver_CPU::CaseParameters > &CaseParameters_Ptr) |
Prints on console basic solution parameters. More... | |
static void | PrintGridStatistics (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Prints on console basic grid statistics. More... | |
static void | PrintCPUInfo (const int &CPU_ThreadsNr) |
Prints on console CPU usage info. More... | |
static void | PrintTimeStepStatistics (double &V_SimError, double &M_SimError, const unsigned int &SimStep, const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr, const std::shared_ptr< MF::Solver_CPU::CaseParameters > &CaseParameters_Ptr) |
Prints on console time step statistics. More... | |
static void | PrintComputationStatistics (std::chrono::time_point< std::chrono::high_resolution_clock > TimeStart, std::chrono::time_point< std::chrono::high_resolution_clock > TimeStop, unsigned int SimStep, const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Prints on console final computation statistics. More... | |
static int | parseFileLine (char *line) |
static int | getMemoryUsageValue () |
Static Public Attributes | |
static double | m_VSum = 1 |
static double | m_minMLUPS = 0 |
static double | m_maxMLUPS = 0 |
static unsigned int | m_SimPreviousStep = 0 |
static unsigned int | m_iter = 0 |
static std::chrono::time_point< std::chrono::high_resolution_clock > | m_TimePreviousStep |
The ConsoleWriter class collects functions that prints information on console.
Definition at line 30 of file ConsoleWriter.h.
|
default |
|
default |
|
static |
Prints on console case and program parameters and also uid-threads defined in thread_params.cfg.
Definition at line 219 of file ConsoleWriter.cpp.
References MF::Solver_CPU::BGK, MF::Solver_CPU::D3Q19, MF::RW::CSVReader::DataReadFromCSVFile(), MF::Solver_CPU::FBGK, MF::Solver_CPU::FromSTL, MF::Solver_CPU::Incompressible, MF::Solver_CPU::MRT, and MF::Solver_CPU::QuasiCompressible.
|
static |
Definition at line 31 of file ConsoleWriter.cpp.
References parseFileLine().
Referenced by PrintComputationStatistics().
|
static |
Definition at line 21 of file ConsoleWriter.cpp.
Referenced by getMemoryUsageValue().
|
static |
Prints on console basic solution parameters.
Definition at line 63 of file ConsoleWriter.cpp.
Referenced by main().
|
static |
Prints on console final computation statistics.
Definition at line 46 of file ConsoleWriter.cpp.
References getMemoryUsageValue(), MF::Solver_CPU::Calculations::getTotalNodeNumber(), m_maxMLUPS, and m_minMLUPS.
Referenced by main().
|
static |
Prints on console CPU usage info.
Definition at line 56 of file ConsoleWriter.cpp.
Referenced by main().
|
static |
Prints on console basic grid statistics.
Definition at line 76 of file ConsoleWriter.cpp.
References MF::Solver_CPU::Calculations::getBBNodeNumber_61(), MF::Solver_CPU::Calculations::getFluidNodeNumber_1(), MF::Solver_CPU::Calculations::getPeriodicNodeNumber_4(), MF::Solver_CPU::Calculations::getPressureNodeNumber_30(), MF::Solver_CPU::Calculations::getSolidNodeNumber_1(), MF::Solver_CPU::Calculations::getTotalNodeNumber(), MF::Solver_CPU::Calculations::getVelocity0NodeNumber_40(), and MF::Solver_CPU::Calculations::getVelocityNodeNumber_20().
Referenced by main().
|
static |
Prints on console time step statistics.
Definition at line 101 of file ConsoleWriter.cpp.
References MF::Solver_CPU::Calculations::DeltaMassFlow_fiz(), MF::Solver_CPU::Calculations::DeltaMassFlowLB(), MF::Solver_CPU::Calculations::DeltaMassFlowThread_fiz(), MF::Solver_CPU::Calculations::DeltaMassFlowThread_LB(), MF::Solver_CPU::Calculations::getTotalNodeNumber(), MF::Solver_CPU::Calculations::getULBmaks(), m_iter, m_maxMLUPS, m_minMLUPS, m_SimPreviousStep, m_TimePreviousStep, m_VSum, MF::Solver_CPU::Calculations::VelocityFizMeanForInlet(), MF::Solver_CPU::Calculations::VelocityFizMeanForOutlet(), MF::Solver_CPU::Calculations::VelocityFizMeanForPNodes(), MF::Solver_CPU::Calculations::VelocityFizMeanForVNodes(), and MF::Solver_CPU::Calculations::VelocityLBVolumeSum().
Referenced by main().
|
static |
Prints on console information about all MFThreads.
Definition at line 168 of file ConsoleWriter.cpp.
Referenced by main().
|
static |
Prints on console information about all Threads node.
Definition at line 191 of file ConsoleWriter.cpp.
|
static |
Definition at line 38 of file ConsoleWriter.h.
Referenced by PrintTimeStepStatistics().
|
static |
Definition at line 36 of file ConsoleWriter.h.
Referenced by PrintComputationStatistics(), and PrintTimeStepStatistics().
|
static |
Definition at line 36 of file ConsoleWriter.h.
Referenced by PrintComputationStatistics(), and PrintTimeStepStatistics().
|
static |
Definition at line 37 of file ConsoleWriter.h.
Referenced by PrintTimeStepStatistics().
|
static |
Definition at line 39 of file ConsoleWriter.h.
Referenced by main(), and PrintTimeStepStatistics().
|
static |
Definition at line 36 of file ConsoleWriter.h.
Referenced by PrintTimeStepStatistics().