flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_vof_phase_change_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.

Macros

#define CHECK(cond)
 

Functions

static std::size_t gidx (int x, int y, int z)
 
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 double blockDiff (const std::vector< double > &local, const std::vector< double > &global, int ox, int oy, int oz, int lnx, int lny, int lnz)
 
static double stefanLambda (double St)
 
template<class S >
void applyAreaModeEnv (S &s)
 
template<class S >
void applyP3fEnv (S &s)
 
int main (int argc, char **argv)
 

Variables

static constexpr int NX = 64
 
static constexpr int NY = 4
 
static constexpr int NZ = 4
 
static int failures = 0
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   cond)
Value:
do { \
if (!(cond)) { \
std::fprintf(stderr, "CHECK failed: %s\n at %s:%d\n", #cond, __FILE__, __LINE__); \
++failures; \
} \
} while (0)
static int failures

Definition at line 43 of file test_vof_phase_change_mpi.cpp.

Function Documentation

◆ gidx()

static std::size_t gidx ( int  x,
int  y,
int  z 
)
static

Definition at line 51 of file test_vof_phase_change_mpi.cpp.

References NX, and NY.

Referenced by blockDiff(), and sliceOf().

◆ 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 56 of file test_vof_phase_change_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 65 of file test_vof_phase_change_mpi.cpp.

References blockOf(), and gidx().

◆ blockDiff()

static double blockDiff ( const std::vector< double > &  local,
const std::vector< double > &  global,
int  ox,
int  oy,
int  oz,
int  lnx,
int  lny,
int  lnz 
)
static

Definition at line 71 of file test_vof_phase_change_mpi.cpp.

References gidx().

Referenced by main().

◆ stefanLambda()

static double stefanLambda ( double  St)
static

Definition at line 85 of file test_vof_phase_change_mpi.cpp.

Referenced by main().

◆ applyAreaModeEnv()

template<class S >
void applyAreaModeEnv ( S &  s)

Definition at line 99 of file test_vof_phase_change_mpi.cpp.

References peclet::flow::Solver< Grid >::setPhaseChangeArea().

Referenced by main().

◆ applyP3fEnv()

◆ main()

Variable Documentation

◆ NX

constexpr int NX = 64
staticconstexpr

Definition at line 40 of file test_vof_phase_change_mpi.cpp.

Referenced by gidx(), and main().

◆ NY

constexpr int NY = 4
static

Definition at line 40 of file test_vof_phase_change_mpi.cpp.

Referenced by gidx(), and main().

◆ NZ

constexpr int NZ = 4
static

Definition at line 40 of file test_vof_phase_change_mpi.cpp.

Referenced by main().

◆ failures

int failures = 0
static

Definition at line 42 of file test_vof_phase_change_mpi.cpp.

Referenced by main().