Microflow 3D
v1.0
|
The Calculations class collects functions for post-processing calculations. More...
#include <Calculations.h>
Public Member Functions | |
Calculations ()=default | |
~Calculations ()=default | |
Static Public Member Functions | |
static double | VelocityLBVolumeSum (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Mean LB velocity for all fluid nodes type 1. More... | |
static double | VelocityLBMeanForVNodes (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Mean LB velocity for all nodes type 20. More... | |
static double | VelocityFizMeanForVNodes (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Mean Fiz velocity for all nodes type 20. More... | |
static double | VelocityLBMeanForPNodes (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Mean LB velocity for all nodes type 30. More... | |
static double | VelocityFizMeanForPNodes (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Scaled (surface weighted) fiz velocity for all nodes type 30. More... | |
static double | VelocityFizMeanForInlet (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Mean Fiz velocity for all inlet threads. More... | |
static double | VelocityFizMeanForOutlet (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Scaled (surface weighted) fiz velocity for all outlet threads. More... | |
static double | VelocityLBMeanForThread (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr, std::string &ThreadName) |
Mean LB velocity for all nodes in thread of name ThreadName excluding nodes type BB 61. More... | |
static double | DeltaMassFlowLB (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr, const std::shared_ptr< MF::Solver_CPU::CaseParameters > &CaseParameters_Ptr) |
Returns the difference in mass flow rate in LB units (inlet-outlet)/inlet*100. Surfaces are automatically detected. More... | |
static double | DeltaMassFlow_fiz (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr, const std::shared_ptr< MF::Solver_CPU::CaseParameters > &CaseParameters_Ptr) |
Returns the difference in mass flow rate (inlet-outlet)/inlet*100. Surfaces are automatically detected. More... | |
static double | DeltaMassFlowThread_LB (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr, const std::shared_ptr< MF::Solver_CPU::CaseParameters > &CaseParameters_Ptr) |
Returns the difference in mass flow rate in LB units (inlet-outlet)/inlet*100. Surfaces are defined in thread_params.cfg file. More... | |
static double | DeltaMassFlowThread_fiz (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr, const std::shared_ptr< MF::Solver_CPU::CaseParameters > &CaseParameters_Ptr) |
Returns the difference in mass flow rate (inlet-outlet)/inlet*100. Surfaces are defined in thread_params.cfg file. More... | |
static double | getULBmaks (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns the maximal value of LB velocity noticed in lattice node. More... | |
static uint64_t | getTotalNodeNumber (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns total number of computational nodes (non-solid). More... | |
static uint64_t | getFluidNodeNumber_1 (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns number of fluid nodes. More... | |
static uint64_t | getSolidNodeNumber_1 (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns number of solid nodes. More... | |
static uint64_t | getBBNodeNumber_61 (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns number of bounce-back nodes. More... | |
static uint64_t | getVelocityNodeNumber_20 (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns number of boundary velocity nodes. More... | |
static uint64_t | getPressureNodeNumber_30 (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns number of boundary pressure nodes. More... | |
static uint64_t | getVelocity0NodeNumber_40 (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns number of boundary velocity 0 nodes. More... | |
static uint64_t | getPeriodicNodeNumber_4 (const std::shared_ptr< MF::Database::ThreadArray > &ThreadArray_Ptr) |
Returns number of boundary periodic nodes. More... | |
The Calculations class collects functions for post-processing calculations.
Definition at line 23 of file Calculations.h.
|
default |
|
default |
|
static |
Returns the difference in mass flow rate (inlet-outlet)/inlet*100. Surfaces are automatically detected.
Definition at line 187 of file Calculations.cpp.
References MF::Database::Vec4< T >::rho, MF::LBPC::ParametersConversion::RhoLB_toRhoPhys(), MF::LBPC::ParametersConversion::ULB_toPhys(), MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Returns the difference in mass flow rate in LB units (inlet-outlet)/inlet*100. Surfaces are automatically detected.
Definition at line 155 of file Calculations.cpp.
References MF::Solver_CPU::Incompressible, MF::Database::Vec4< T >::rho, MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Returns the difference in mass flow rate (inlet-outlet)/inlet*100. Surfaces are defined in thread_params.cfg file.
Definition at line 253 of file Calculations.cpp.
References MF::Database::Vec4< T >::rho, MF::LBPC::ParametersConversion::RhoLB_toRhoPhys(), MF::LBPC::ParametersConversion::ULB_toPhys(), MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Returns the difference in mass flow rate in LB units (inlet-outlet)/inlet*100. Surfaces are defined in thread_params.cfg file.
Definition at line 214 of file Calculations.cpp.
References MF::Solver_CPU::Incompressible, MF::Database::Vec4< T >::rho, MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Returns number of bounce-back nodes.
Definition at line 324 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintGridStatistics().
|
static |
Returns number of fluid nodes.
Definition at line 304 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintGridStatistics().
|
static |
Returns number of boundary periodic nodes.
Definition at line 364 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintGridStatistics().
|
static |
Returns number of boundary pressure nodes.
Definition at line 344 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintGridStatistics().
|
static |
Returns number of solid nodes.
Definition at line 314 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintGridStatistics().
|
static |
Returns total number of computational nodes (non-solid).
Definition at line 374 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintComputationStatistics(), MF::Solver_CPU::ConsoleWriter::PrintGridStatistics(), and MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Returns the maximal value of LB velocity noticed in lattice node.
Definition at line 280 of file Calculations.cpp.
References MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Returns number of boundary velocity 0 nodes.
Definition at line 354 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintGridStatistics().
|
static |
Returns number of boundary velocity nodes.
Definition at line 334 of file Calculations.cpp.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintGridStatistics().
|
static |
Mean Fiz velocity for all inlet threads.
Definition at line 114 of file Calculations.cpp.
References MF::LBPC::ParametersConversion::ULB_toPhys(), MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Scaled (surface weighted) fiz velocity for all outlet threads.
Definition at line 134 of file Calculations.cpp.
References MF::LBPC::ParametersConversion::ULB_toPhys(), MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Scaled (surface weighted) fiz velocity for all nodes type 30.
Definition at line 79 of file Calculations.cpp.
References MF::LBPC::ParametersConversion::ULB_toPhys(), MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Mean Fiz velocity for all nodes type 20.
Definition at line 44 of file Calculations.cpp.
References MF::LBPC::ParametersConversion::ULB_toPhys(), MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().
|
static |
Mean LB velocity for all nodes type 30.
Definition at line 61 of file Calculations.cpp.
References MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
|
static |
Mean LB velocity for all nodes in thread of name ThreadName excluding nodes type BB 61.
Definition at line 97 of file Calculations.cpp.
References MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
|
static |
Mean LB velocity for all nodes type 20.
Definition at line 27 of file Calculations.cpp.
References MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
|
static |
Mean LB velocity for all fluid nodes type 1.
Definition at line 12 of file Calculations.cpp.
References MF::Database::Vec4< T >::x, MF::Database::Vec4< T >::y, and MF::Database::Vec4< T >::z.
Referenced by MF::Solver_CPU::ConsoleWriter::PrintTimeStepStatistics().