flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_vof_blocks_ns_mpi.cpp File Reference
#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.

Typedefs

using IbmSolver

Enumerations

enum class  ClosureKind

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, 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)

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

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Enumeration Type Documentation

◆ ClosureKind

enum class peclet::flow::ClosureKind
strong

Definition at line 28 of file property_closures.hpp.

Function Documentation

◆ bubbleAt()

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

Definition at line 50 of file test_vof_blocks_ns_mpi.cpp.

References CX, CY, CZ, and RB.

Referenced by configure().

◆ 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

Definition at line 117 of file test_vof_blocks_ns_mpi.cpp.

References GCELLS, NX, and NY.

Referenced by main().

◆ maxDiff()

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

Definition at line 153 of file test_vof_blocks_ns_mpi.cpp.

Referenced by compare(), and main().

◆ countBitDiff()

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

Definition at line 159 of file test_vof_blocks_ns_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ NX

int NX = 24
staticconstexpr

Definition at line 38 of file test_vof_blocks_ns_mpi.cpp.

◆ NY

int NY = 24
static

Definition at line 38 of file test_vof_blocks_ns_mpi.cpp.

◆ NZ

int NZ = 48
static

Definition at line 38 of file test_vof_blocks_ns_mpi.cpp.

◆ GCELLS

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

Definition at line 39 of file test_vof_blocks_ns_mpi.cpp.

◆ RHO_L

double RHO_L = 10.0
staticconstexpr

Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.

◆ RHO_G

double RHO_G = 1.0
static

Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.

◆ MU_L

double MU_L = 0.5
static

Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.

Referenced by configure(), and configure().

◆ MU_G

double MU_G = 0.05
static

Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.

Referenced by configure(), and configure().

◆ SIGMA

double SIGMA = 4.0
static

Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.

◆ RB

double RB = 4.5
staticconstexpr

Definition at line 42 of file test_vof_blocks_ns_mpi.cpp.

Referenced by bubbleAt(), bubbleAt(), configure(), and configure().

◆ GRAV

double GRAV = 2.0e-3
static

Definition at line 42 of file test_vof_blocks_ns_mpi.cpp.

◆ CX

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

Definition at line 45 of file test_vof_blocks_ns_mpi.cpp.

Referenced by bubbleAt(), bubbleAt(), configure(), and configure().

◆ CY

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

Definition at line 46 of file test_vof_blocks_ns_mpi.cpp.

◆ CZ

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

Definition at line 47 of file test_vof_blocks_ns_mpi.cpp.

◆ ZSPLIT

const int ZSPLIT = 20
static

Definition at line 48 of file test_vof_blocks_ns_mpi.cpp.

Referenced by configure(), and configure().