#include <mpi.h>
#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <Kokkos_Core.hpp>
#include <vector>
#include "flow_ibm.hpp"
#include "peclet/core/common/types.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"
Go to the source code of this file.
|
| static double | bubbleAt (int b, int x, int y, int z) |
| static void | configure (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz, bool csf) |
| static std::vector< double > | gatherGlobal (const std::vector< double > &local, int ox, int oy, int oz, int lnx, int lny, int lnz, int rank, int size) |
| static double | maxDiff (const std::vector< double > &a, const std::vector< double > &b) |
| static long | countBitDiff (const std::vector< double > &a, const std::vector< double > &b, double &mx) |
| int | main (int argc, char **argv) |
|
| static constexpr int | NX = 24 |
| static constexpr int | NY = 24 |
| static constexpr int | NZ = 48 |
| static constexpr std::size_t | GCELLS = (std::size_t)NX * NY * NZ |
| static constexpr double | RHO_L = 10.0 |
| static constexpr double | RHO_G = 1.0 |
| static constexpr double | MU_L = 0.5 |
| static constexpr double | MU_G = 0.05 |
| static constexpr double | SIGMA = 4.0 |
| static constexpr double | RB = 4.5 |
| static constexpr double | GRAV = 2.0e-3 |
| static const double | CX [2] = {NX / 2.0 + 0.13, NX / 2.0 + 0.13} |
| static const double | CY [2] = {NY / 2.0 - 0.21, NY / 2.0 - 0.21} |
| static const double | CZ [2] = {14.0 + 0.31, 24.0 + 0.31} |
| static const int | ZSPLIT = 20 |
◆ IbmSolver
◆ ClosureKind
◆ bubbleAt()
| double bubbleAt |
( |
int | b, |
|
|
int | x, |
|
|
int | y, |
|
|
int | z ) |
|
static |
◆ configure()
| void configure |
( |
IbmSolver & | s, |
|
|
int | ox, |
|
|
int | oy, |
|
|
int | oz, |
|
|
int | lnx, |
|
|
int | lny, |
|
|
int | lnz, |
|
|
bool | csf ) |
|
static |
Definition at line 67 of file test_vof_blocks_ns_mpi.cpp.
References bubbleAt(), CX, CY, CZ, GRAV, MU_G, MU_L, RB, RHO_G, RHO_L, SIGMA, and ZSPLIT.
Referenced by main().
◆ gatherGlobal()
| std::vector< double > gatherGlobal |
( |
const std::vector< double > & | local, |
|
|
int | ox, |
|
|
int | oy, |
|
|
int | oz, |
|
|
int | lnx, |
|
|
int | lny, |
|
|
int | lnz, |
|
|
int | rank, |
|
|
int | size ) |
|
static |
◆ maxDiff()
| double maxDiff |
( |
const std::vector< double > & | a, |
|
|
const std::vector< double > & | b ) |
|
static |
◆ countBitDiff()
| long countBitDiff |
( |
const std::vector< double > & | a, |
|
|
const std::vector< double > & | b, |
|
|
double & | mx ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 170 of file test_vof_blocks_ns_mpi.cpp.
References peclet::flow::vof::VofCurvature::Stats::clipped, configure(), countBitDiff(), gatherGlobal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), peclet::flow::Solver< Grid >::getVof(), peclet::flow::Solver< Grid >::getVofBlockForce(), maxDiff(), NX, NY, NZ, peclet::flow::Solver< Grid >::setPressureBottomSolver(), peclet::flow::Solver< Grid >::step(), STEPS, peclet::flow::Solver< Grid >::vofBlockCurvatureStats(), peclet::flow::Solver< Grid >::vofBlockOverlapCensus(), and peclet::flow::Solver< Grid >::vofBlockStats().
◆ NX
◆ NY
◆ NZ
◆ GCELLS
| std::size_t GCELLS = (std::size_t)NX * NY * NZ |
|
staticconstexpr |
◆ RHO_L
◆ RHO_G
◆ MU_L
◆ MU_G
◆ SIGMA
◆ RB
◆ GRAV
◆ CX
| const double CX[2] = {NX / 2.0 + 0.13, NX / 2.0 + 0.13} |
|
static |
◆ CY
| const double CY[2] = {NY / 2.0 - 0.21, NY / 2.0 - 0.21} |
|
static |
◆ CZ
| const double CZ[2] = {14.0 + 0.31, 24.0 + 0.31} |
|
static |
◆ ZSPLIT