flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_wall_slip_mpi.cpp File Reference
#include <mpi.h>
#include <cmath>
#include <cstdio>
#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 (int, int, int z)
 
static std::vector< double > blockSdf (int oz, int lnx, int lny, int lnz)
 
static void configure (IbmSolver &s, double lam, 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)
 
static double maxAbs (const std::vector< double > &a)
 
static double analyticError (const std::vector< double > &u, double lam)
 
int main (int argc, char **argv)
 

Variables

static constexpr int NX = 8
 
static constexpr int NY = 8
 
static constexpr int NZ = 40
 
static constexpr double Z0 = 16.25
 
static constexpr double Z1 = 32.25
 
static constexpr double MU = 1.0
 
static constexpr double RHO = 1.0
 
static constexpr double DT = 50.0
 
static constexpr double GFORCE = 1e-3
 
static constexpr int STEPS = 200
 
static constexpr std::size_t GCELLS = (std::size_t)NX * NY * NZ
 

Function Documentation

◆ sdfAt()

static double sdfAt ( int  ,
int  ,
int  z 
)
static

Definition at line 43 of file test_wall_slip_mpi.cpp.

References Z0, and Z1.

Referenced by blockSdf().

◆ blockSdf()

static std::vector< double > blockSdf ( int  oz,
int  lnx,
int  lny,
int  lnz 
)
static

Definition at line 48 of file test_wall_slip_mpi.cpp.

References sdfAt().

Referenced by configure().

◆ configure()

◆ 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 70 of file test_wall_slip_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 106 of file test_wall_slip_mpi.cpp.

Referenced by main().

◆ maxAbs()

static double maxAbs ( const std::vector< double > &  a)
static

Definition at line 116 of file test_wall_slip_mpi.cpp.

Referenced by main().

◆ analyticError()

static double analyticError ( const std::vector< double > &  u,
double  lam 
)
static

Definition at line 124 of file test_wall_slip_mpi.cpp.

References GFORCE, MU, NX, NY, NZ, Z0, and Z1.

Referenced by main().

◆ main()

Variable Documentation

◆ NX

constexpr int NX = 8
staticconstexpr

Definition at line 37 of file test_wall_slip_mpi.cpp.

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

◆ NY

constexpr int NY = 8
static

Definition at line 37 of file test_wall_slip_mpi.cpp.

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

◆ NZ

constexpr int NZ = 40
static

Definition at line 37 of file test_wall_slip_mpi.cpp.

Referenced by analyticError(), and main().

◆ Z0

constexpr double Z0 = 16.25
staticconstexpr

Definition at line 38 of file test_wall_slip_mpi.cpp.

Referenced by analyticError(), main(), and sdfAt().

◆ Z1

constexpr double Z1 = 32.25
static

Definition at line 38 of file test_wall_slip_mpi.cpp.

Referenced by analyticError(), main(), and sdfAt().

◆ MU

constexpr double MU = 1.0
staticconstexpr

Definition at line 39 of file test_wall_slip_mpi.cpp.

Referenced by analyticError(), and configure().

◆ RHO

constexpr double RHO = 1.0
static

Definition at line 39 of file test_wall_slip_mpi.cpp.

Referenced by configure().

◆ DT

constexpr double DT = 50.0
static

Definition at line 39 of file test_wall_slip_mpi.cpp.

Referenced by configure().

◆ GFORCE

constexpr double GFORCE = 1e-3
static

Definition at line 39 of file test_wall_slip_mpi.cpp.

Referenced by analyticError(), and configure().

◆ STEPS

constexpr int STEPS = 200
staticconstexpr

Definition at line 40 of file test_wall_slip_mpi.cpp.

Referenced by main().

◆ GCELLS

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

Definition at line 41 of file test_wall_slip_mpi.cpp.

Referenced by gatherGlobal().