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

Typedefs

using IbmSolver

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

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Function Documentation

◆ sdfAt()

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

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

void configure ( IbmSolver & s,
double lam,
int oz,
int lnx,
int lny,
int lnz )
static

Definition at line 57 of file test_wall_slip_mpi.cpp.

References blockSdf(), DT, GFORCE, MU, and RHO.

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

Referenced by main().

◆ maxAbs()

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

Definition at line 116 of file test_wall_slip_mpi.cpp.

Referenced by main().

◆ analyticError()

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

int NX = 8
staticconstexpr

Definition at line 37 of file test_wall_slip_mpi.cpp.

◆ NY

int NY = 8
static

Definition at line 37 of file test_wall_slip_mpi.cpp.

◆ NZ

int NZ = 40
static

Definition at line 37 of file test_wall_slip_mpi.cpp.

◆ Z0

double Z0 = 16.25
staticconstexpr

Definition at line 38 of file test_wall_slip_mpi.cpp.

◆ Z1

double Z1 = 32.25
static

Definition at line 38 of file test_wall_slip_mpi.cpp.

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

◆ MU

double MU = 1.0
staticconstexpr

Definition at line 39 of file test_wall_slip_mpi.cpp.

◆ RHO

double RHO = 1.0
static

Definition at line 39 of file test_wall_slip_mpi.cpp.

◆ DT

double DT = 50.0
static

Definition at line 39 of file test_wall_slip_mpi.cpp.

◆ GFORCE

double GFORCE = 1e-3
static

Definition at line 39 of file test_wall_slip_mpi.cpp.

Referenced by analyticError(), and configure().

◆ STEPS

int STEPS = 200
staticconstexpr

Definition at line 40 of file test_wall_slip_mpi.cpp.

◆ GCELLS

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

Definition at line 41 of file test_wall_slip_mpi.cpp.