flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_vof_wetting_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 sdfAt (double x, double, double)
 
static double colourAt (int ix, int iy, int iz)
 
template<class Fn >
static std::vector< double > blockOf (Fn f, int ox, int oy, int oz, int lnx, int lny, int lnz)
 
static std::vector< double > sliceOf (const std::vector< double > &g, int ox, int oy, int oz, int lnx, int lny, int lnz)
 
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 maxAbsDiff (const std::vector< double > &a, const std::vector< double > &b)
 
int main (int argc, char **argv)
 

Variables

static constexpr int NX = 16
 
static constexpr int NY = 16
 
static constexpr int NZ = 32
 
static constexpr double XW = 5.25
 
static constexpr double RD = 6.0
 
static constexpr double THETA = 60.0
 
static constexpr std::size_t GCELLS = (std::size_t)NX * NY * NZ
 

Function Documentation

◆ sdfAt()

static double sdfAt ( double  x,
double  ,
double   
)
static

Definition at line 50 of file test_vof_wetting_mpi.cpp.

References XW.

Referenced by main().

◆ colourAt()

static double colourAt ( int  ix,
int  iy,
int  iz 
)
static

Definition at line 55 of file test_vof_wetting_mpi.cpp.

References RD, and XW.

Referenced by main().

◆ blockOf()

template<class Fn >
static std::vector< double > blockOf ( Fn  f,
int  ox,
int  oy,
int  oz,
int  lnx,
int  lny,
int  lnz 
)
static

Definition at line 73 of file test_vof_wetting_mpi.cpp.

Referenced by main(), and sliceOf().

◆ sliceOf()

static std::vector< double > sliceOf ( const std::vector< double > &  g,
int  ox,
int  oy,
int  oz,
int  lnx,
int  lny,
int  lnz 
)
static

Definition at line 82 of file test_vof_wetting_mpi.cpp.

References blockOf(), NX, and NY.

Referenced by main().

◆ 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 90 of file test_vof_wetting_mpi.cpp.

References GCELLS, NX, and NY.

Referenced by main().

◆ maxAbsDiff()

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

Definition at line 125 of file test_vof_wetting_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ NX

constexpr int NX = 16
staticconstexpr

Definition at line 46 of file test_vof_wetting_mpi.cpp.

Referenced by gatherGlobal(), main(), and sliceOf().

◆ NY

constexpr int NY = 16
static

Definition at line 46 of file test_vof_wetting_mpi.cpp.

Referenced by gatherGlobal(), main(), and sliceOf().

◆ NZ

constexpr int NZ = 32
static

Definition at line 46 of file test_vof_wetting_mpi.cpp.

Referenced by main().

◆ XW

constexpr double XW = 5.25
staticconstexpr

Definition at line 47 of file test_vof_wetting_mpi.cpp.

Referenced by colourAt(), and sdfAt().

◆ RD

constexpr double RD = 6.0
static

Definition at line 47 of file test_vof_wetting_mpi.cpp.

Referenced by colourAt().

◆ THETA

constexpr double THETA = 60.0
static

Definition at line 47 of file test_vof_wetting_mpi.cpp.

Referenced by main().

◆ GCELLS

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

Definition at line 48 of file test_vof_wetting_mpi.cpp.

Referenced by gatherGlobal().