flow 0.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_ghost_projection_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 Stag = peclet::flow::IbmSolver
 
using Colo = peclet::flow::Solver< peclet::flow::Colocated >
 

Functions

static std::vector< double > packingSdf (double rfrac)
 
template<class S >
static void configure (S &s, const std::vector< double > &lsdf, int matrixOrder, int rhsOrder)
 
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 relErr (const std::vector< double > &a, const std::vector< double > &b)
 
template<class S >
static int runCase (const char *name, double rfrac, int mo, int ro, int rank, int size)
 
int main (int argc, char **argv)
 

Variables

static constexpr int N = 32
 
static constexpr int STEPS = 15
 
static constexpr double RHO = 1.0
 
static constexpr double MU = 0.1
 
static constexpr double F = 1e-3
 
static constexpr double DT = 20.0
 

Typedef Documentation

◆ Stag

Definition at line 37 of file test_ghost_projection_mpi.cpp.

◆ Colo

Function Documentation

◆ packingSdf()

static std::vector< double > packingSdf ( double  rfrac)
static

Definition at line 44 of file test_ghost_projection_mpi.cpp.

References N.

Referenced by runCase().

◆ configure()

template<class S >
static void configure ( S &  s,
const std::vector< double > &  lsdf,
int  matrixOrder,
int  rhsOrder 
)
static

Definition at line 65 of file test_ghost_projection_mpi.cpp.

References DT, F, MU, and RHO.

Referenced by runCase().

◆ 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 79 of file test_ghost_projection_mpi.cpp.

References N.

Referenced by runCase().

◆ relErr()

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

Definition at line 115 of file test_ghost_projection_mpi.cpp.

References N.

Referenced by runCase().

◆ runCase()

template<class S >
static int runCase ( const char *  name,
double  rfrac,
int  mo,
int  ro,
int  rank,
int  size 
)
static

Definition at line 133 of file test_ghost_projection_mpi.cpp.

References configure(), gatherGlobal(), N, packingSdf(), relErr(), and STEPS.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 176 of file test_ghost_projection_mpi.cpp.

Variable Documentation

◆ N

◆ STEPS

constexpr int STEPS = 15
static

Definition at line 40 of file test_ghost_projection_mpi.cpp.

Referenced by runCase().

◆ RHO

constexpr double RHO = 1.0
staticconstexpr

Definition at line 41 of file test_ghost_projection_mpi.cpp.

Referenced by configure().

◆ MU

constexpr double MU = 0.1
static

Definition at line 41 of file test_ghost_projection_mpi.cpp.

Referenced by configure().

◆ F

◆ DT

constexpr double DT = 20.0
static

Definition at line 41 of file test_ghost_projection_mpi.cpp.

Referenced by configure().