flow 1.4.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)

Typedefs

using IbmSolver

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)

Definition at line 43 of file test_vof_phase_change_mpi.cpp.

Referenced by main().

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Function Documentation

◆ gidx()

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

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

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

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.

Referenced by main().

◆ applyP3fEnv()

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

Definition at line 112 of file test_vof_phase_change_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ NX

int NX = 64
staticconstexpr

Definition at line 40 of file test_vof_phase_change_mpi.cpp.

◆ NY

int NY = 4
static

Definition at line 40 of file test_vof_phase_change_mpi.cpp.

◆ NZ

int NZ = 4
static

Definition at line 40 of file test_vof_phase_change_mpi.cpp.

◆ failures

int failures = 0
static

Definition at line 42 of file test_vof_phase_change_mpi.cpp.