|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#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 |
Definition at line 102 of file test_dragbeta_ghost_mpi.cpp.
References BETA, DT, peclet::flow::Solver< Grid >::enableDrag(), FORCE, RHO0, peclet::flow::Solver< Grid >::setAdvection(), peclet::flow::Solver< Grid >::setBodyForce(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setField(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPorousConservative(), peclet::flow::Solver< Grid >::setPorousContinuity(), peclet::flow::Solver< Grid >::setPressureGeometry(), and peclet::flow::Solver< Grid >::setRho().
Referenced by main().
|
static |
Definition at line 167 of file test_dragbeta_ghost_mpi.cpp.
Referenced by main().
Definition at line 180 of file test_dragbeta_ghost_mpi.cpp.
Referenced by main().
Definition at line 190 of file test_dragbeta_ghost_mpi.cpp.
References mean(), NX, NY, and NZ.
Referenced by main(), and pressureGradientError().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 220 of file test_dragbeta_ghost_mpi.cpp.
References analyticVelocity(), BETA, configure(), DT, gatherGlobal(), peclet::flow::Solver< Grid >::getMomentumDiagonal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), maxAbs(), maxAbsDiff(), NX, NY, NZ, RHO0, peclet::flow::Solver< Grid >::step(), STEPS, and worstPlane().
|
staticconstexpr |
Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.
Referenced by gatherGlobal(), main(), and worstPlane().
|
static |
Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.
Referenced by gatherGlobal(), main(), and worstPlane().
|
static |
Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.
Referenced by main(), and worstPlane().
|
static |
Definition at line 91 of file test_dragbeta_ghost_mpi.cpp.
Referenced by analyticVelocity(), and main().
Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.
Referenced by analyticVelocity(), configure(), and main().
Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.
Referenced by analyticVelocity(), configure(), and main().
Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.
Referenced by analyticVelocity(), and configure().
Definition at line 92 of file test_dragbeta_ghost_mpi.cpp.
Referenced by analyticVelocity(), configure(), and main().
Definition at line 93 of file test_dragbeta_ghost_mpi.cpp.
Referenced by gatherGlobal().