flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_vof_redistribute_mpi.cpp File Reference
#include <mpi.h>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#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.

Functions

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, int cfg)
 
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)
 
int main (int argc, char **argv)
 

Variables

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, 30.0 + 0.31}
 
static const int ZSPLIT = 22
 

Function Documentation

◆ bubbleAt()

static double bubbleAt ( int  b,
int  x,
int  y,
int  z 
)
static

Definition at line 63 of file test_vof_redistribute_mpi.cpp.

References CX, CY, CZ, and RB.

Referenced by configure(), and main().

◆ configure()

◆ gatherGlobal()

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

Definition at line 145 of file test_vof_redistribute_mpi.cpp.

References GCELLS, NX, and NY.

Referenced by main().

◆ maxDiff()

static double maxDiff ( const std::vector< double > &  a,
const std::vector< double > &  b 
)
static

Definition at line 183 of file test_vof_redistribute_mpi.cpp.

Referenced by main().

◆ countBitDiff()

static long countBitDiff ( const std::vector< double > &  a,
const std::vector< double > &  b 
)
static

Definition at line 192 of file test_vof_redistribute_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ NX

constexpr int NX = 24
staticconstexpr

Definition at line 54 of file test_vof_redistribute_mpi.cpp.

Referenced by gatherGlobal(), and main().

◆ NY

constexpr int NY = 24
static

Definition at line 54 of file test_vof_redistribute_mpi.cpp.

Referenced by gatherGlobal(), and main().

◆ NZ

constexpr int NZ = 48
static

Definition at line 54 of file test_vof_redistribute_mpi.cpp.

Referenced by main().

◆ GCELLS

constexpr std::size_t GCELLS = (std::size_t)NX * NY * NZ
staticconstexpr

Definition at line 55 of file test_vof_redistribute_mpi.cpp.

Referenced by gatherGlobal(), and main().

◆ RHO_L

constexpr double RHO_L = 10.0
staticconstexpr

Definition at line 56 of file test_vof_redistribute_mpi.cpp.

Referenced by configure().

◆ RHO_G

constexpr double RHO_G = 1.0
static

Definition at line 56 of file test_vof_redistribute_mpi.cpp.

Referenced by configure().

◆ MU_L

constexpr double MU_L = 0.5
static

Definition at line 56 of file test_vof_redistribute_mpi.cpp.

Referenced by configure().

◆ MU_G

constexpr double MU_G = 0.05
static

Definition at line 56 of file test_vof_redistribute_mpi.cpp.

Referenced by configure().

◆ SIGMA

constexpr double SIGMA = 4.0
static

Definition at line 56 of file test_vof_redistribute_mpi.cpp.

Referenced by configure().

◆ RB

constexpr double RB = 4.5
staticconstexpr

Definition at line 57 of file test_vof_redistribute_mpi.cpp.

Referenced by bubbleAt(), and configure().

◆ GRAV

constexpr double GRAV = 2.0e-3
static

Definition at line 57 of file test_vof_redistribute_mpi.cpp.

Referenced by configure().

◆ CX

const double CX[2] = {NX / 2.0 + 0.13, NX / 2.0 + 0.13}
static

Definition at line 58 of file test_vof_redistribute_mpi.cpp.

Referenced by bubbleAt(), and configure().

◆ CY

const double CY[2] = {NY / 2.0 - 0.21, NY / 2.0 - 0.21}
static

Definition at line 59 of file test_vof_redistribute_mpi.cpp.

Referenced by bubbleAt(), and configure().

◆ CZ

const double CZ[2] = {14.0 + 0.31, 30.0 + 0.31}
static

Definition at line 60 of file test_vof_redistribute_mpi.cpp.

Referenced by bubbleAt(), and configure().

◆ ZSPLIT

const int ZSPLIT = 22
static

Definition at line 61 of file test_vof_redistribute_mpi.cpp.

Referenced by configure().