#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.
|
| static void | configure (IbmSolver &s, const Config &c, 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 | pressureGradientError (const std::vector< double > &p, int *worstPlane) |
| int | main (int argc, char **argv) |
|
| 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 = 0.25 |
| static constexpr double | GRAV = 0.1 |
| static constexpr std::size_t | GCELLS = (std::size_t)NX * NY * NZ |
◆ IbmSolver
◆ configure()
| void configure |
( |
IbmSolver & | s, |
|
|
const Config & | c, |
|
|
int | lnx, |
|
|
int | lny, |
|
|
int | lnz ) |
|
static |
◆ 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 |
◆ maxAbsDiff()
| double maxAbsDiff |
( |
const std::vector< double > & | a, |
|
|
const std::vector< double > & | b ) |
|
static |
◆ maxAbs()
| double maxAbs |
( |
const std::vector< double > & | a | ) |
|
|
static |
◆ pressureGradientError()
| double pressureGradientError |
( |
const std::vector< double > & | p, |
|
|
int * | worstPlane ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 170 of file test_bodyforce_ghost_mpi.cpp.
References configure(), DT, FORCE, gatherGlobal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), maxAbs(), maxAbsDiff(), NX, NY, NZ, pressureGradientError(), RHO0, peclet::flow::Solver< Grid >::step(), and STEPS.
◆ NX
◆ NY
◆ NZ
◆ STEPS
◆ RHO0
◆ DT
◆ FORCE
◆ GRAV
◆ GCELLS
| std::size_t GCELLS = (std::size_t)NX * NY * NZ |
|
staticconstexpr |