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

Typedefs

using IbmSolver

Functions

static double sdfAt (double x, double, double)
static double colourAt (int, int, 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 = 8
static constexpr int NZ = 32
static constexpr double XW = 4.25
static constexpr double THETA_E = 60.0
static constexpr double SLIP = 0.1
static constexpr double MU = 1.0
static constexpr double SIGMA = 1.0
static constexpr double UVEL = 0.02
static constexpr double ZL = 8.5
static constexpr double ZR = 24.5
static constexpr std::size_t GCELLS = (std::size_t)NX * NY * NZ

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Function Documentation

◆ sdfAt()

double sdfAt ( double x,
double ,
double  )
static

Definition at line 45 of file test_vof_wetting_dynamic_mpi.cpp.

References XW.

Referenced by main().

◆ colourAt()

double colourAt ( int ,
int ,
int iz )
static

Definition at line 48 of file test_vof_wetting_dynamic_mpi.cpp.

References ZL, and ZR.

◆ 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 54 of file test_vof_wetting_dynamic_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 63 of file test_vof_wetting_dynamic_mpi.cpp.

References blockOf(), NX, and NY.

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 71 of file test_vof_wetting_dynamic_mpi.cpp.

References GCELLS, NX, and NY.

Referenced by main().

◆ maxAbsDiff()

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

Definition at line 107 of file test_vof_wetting_dynamic_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ NX

int NX = 16
staticconstexpr

Definition at line 40 of file test_vof_wetting_dynamic_mpi.cpp.

◆ NY

int NY = 8
static

Definition at line 40 of file test_vof_wetting_dynamic_mpi.cpp.

◆ NZ

int NZ = 32
static

Definition at line 40 of file test_vof_wetting_dynamic_mpi.cpp.

◆ XW

double XW = 4.25
staticconstexpr

Definition at line 41 of file test_vof_wetting_dynamic_mpi.cpp.

Referenced by colourAt(), sdfAt(), and sdfAt().

◆ THETA_E

double THETA_E = 60.0
static

Definition at line 41 of file test_vof_wetting_dynamic_mpi.cpp.

Referenced by main().

◆ SLIP

double SLIP = 0.1
static

Definition at line 41 of file test_vof_wetting_dynamic_mpi.cpp.

Referenced by main().

◆ MU

double MU = 1.0
static

Definition at line 41 of file test_vof_wetting_dynamic_mpi.cpp.

◆ SIGMA

double SIGMA = 1.0
static

Definition at line 41 of file test_vof_wetting_dynamic_mpi.cpp.

◆ UVEL

double UVEL = 0.02
static

Definition at line 41 of file test_vof_wetting_dynamic_mpi.cpp.

Referenced by main().

◆ ZL

double ZL = 8.5
staticconstexpr

Definition at line 42 of file test_vof_wetting_dynamic_mpi.cpp.

Referenced by colourAt().

◆ ZR

double ZR = 24.5
static

Definition at line 42 of file test_vof_wetting_dynamic_mpi.cpp.

Referenced by colourAt().

◆ GCELLS

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

Definition at line 43 of file test_vof_wetting_dynamic_mpi.cpp.