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

Classes

struct  Config
 

Functions

static void configure (IbmSolver &s, const Config &c, int lnx, int lny, int lnz)
 
static double analyticVelocity ()
 
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 int worstPlane (const std::vector< double > &u, int axis)
 
int main (int argc, char **argv)
 

Variables

static constexpr int NX = 16
 
static constexpr int NY = 16
 
static constexpr int NZ = 32
 
static constexpr int STEPS = 4
 
static constexpr double RHO0 = 1.0
 
static constexpr double DT = 1.0
 
static constexpr double FORCE = 1.0
 
static constexpr double BETA = 3.0
 
static constexpr std::size_t GCELLS = (std::size_t)NX * NY * NZ
 

Function Documentation

◆ configure()

◆ analyticVelocity()

static double analyticVelocity ( )
static

Definition at line 122 of file test_dragbeta_ghost_mpi.cpp.

References BETA, DT, FORCE, RHO0, and STEPS.

Referenced by main().

◆ 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 131 of file test_dragbeta_ghost_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 167 of file test_dragbeta_ghost_mpi.cpp.

Referenced by main().

◆ maxAbs()

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

Definition at line 180 of file test_dragbeta_ghost_mpi.cpp.

Referenced by main().

◆ worstPlane()

static int worstPlane ( const std::vector< double > &  u,
int  axis 
)
static

Definition at line 190 of file test_dragbeta_ghost_mpi.cpp.

References mean(), NX, NY, and NZ.

Referenced by main(), and pressureGradientError().

◆ main()

Variable Documentation

◆ NX

constexpr int NX = 16
staticconstexpr

Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.

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

◆ NY

constexpr int NY = 16
static

Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.

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

◆ NZ

constexpr int NZ = 32
static

Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.

Referenced by main(), and worstPlane().

◆ STEPS

constexpr int STEPS = 4
static

Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.

Referenced by analyticVelocity(), and main().

◆ RHO0

constexpr double RHO0 = 1.0
staticconstexpr

Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.

Referenced by analyticVelocity(), configure(), and main().

◆ DT

constexpr double DT = 1.0
static

Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.

Referenced by analyticVelocity(), configure(), and main().

◆ FORCE

constexpr double FORCE = 1.0
static

Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.

Referenced by analyticVelocity(), and configure().

◆ BETA

constexpr double BETA = 3.0
static

Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.

Referenced by analyticVelocity(), configure(), and main().

◆ GCELLS

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

Definition at line 93 of file test_dragbeta_ghost_mpi.cpp.

Referenced by gatherGlobal().