|
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 <string>#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 double | rhoAt (const Config &c, int x, int y, int z) |
| template<class Fn > | |
| static std::vector< double > | blockOf (Fn f, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static void | configure (IbmSolver &s, const Config &c, int ox, int oy, 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 | pressureGradientError (const std::vector< double > &p) |
| 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 = 20 |
| static constexpr double | RATIO = 1000.0 |
| static constexpr double | GRAV = 0.1 |
| static constexpr double | DT = 1.0 |
| static constexpr double | RHO0 = 1.0 |
| static constexpr double | FX = 1e-3 |
| static constexpr std::size_t | GCELLS = (std::size_t)NX * NY * NZ |
Definition at line 70 of file test_vardensity_mpi.cpp.
References NX, NY, NZ, and RATIO.
Referenced by configure().
|
static |
Definition at line 76 of file test_vardensity_mpi.cpp.
Referenced by configure().
|
static |
Definition at line 86 of file test_vardensity_mpi.cpp.
References blockOf(), DT, peclet::flow::Solver< Grid >::exchangeField(), FX, GRAV, peclet::flow::LinearMix, RHO0, rhoAt(), peclet::flow::Solver< Grid >::setAdvection(), peclet::flow::Solver< Grid >::setBodyForce(), peclet::flow::Solver< Grid >::setDensityMode(), peclet::flow::Solver< Grid >::setDomainBc(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setField(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureGeometry(), peclet::flow::Solver< Grid >::setPropertyModel(), and peclet::flow::Solver< Grid >::setRho().
Referenced by main().
|
static |
Definition at line 157 of file test_vardensity_mpi.cpp.
Referenced by main().
Definition at line 170 of file test_vardensity_mpi.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 190 of file test_vardensity_mpi.cpp.
References configure(), gatherGlobal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), peclet::flow::Solver< Grid >::lastPressureIterations(), maxAbs(), maxAbsDiff(), NX, NY, NZ, pressureGradientError(), peclet::flow::Solver< Grid >::step(), and STEPS.
|
staticconstexpr |
Definition at line 60 of file test_vardensity_mpi.cpp.
Referenced by gatherGlobal(), main(), pressureGradientError(), and rhoAt().
|
static |
Definition at line 60 of file test_vardensity_mpi.cpp.
Referenced by gatherGlobal(), main(), pressureGradientError(), and rhoAt().
|
static |
Definition at line 60 of file test_vardensity_mpi.cpp.
Referenced by main(), pressureGradientError(), and rhoAt().
|
static |
Definition at line 60 of file test_vardensity_mpi.cpp.
Referenced by main().
Definition at line 61 of file test_vardensity_mpi.cpp.
Referenced by pressureGradientError(), and rhoAt().
Definition at line 61 of file test_vardensity_mpi.cpp.
Referenced by configure(), and pressureGradientError().
Definition at line 61 of file test_vardensity_mpi.cpp.
Referenced by configure().
Definition at line 61 of file test_vardensity_mpi.cpp.
Referenced by configure().
Definition at line 61 of file test_vardensity_mpi.cpp.
Referenced by configure().
Definition at line 62 of file test_vardensity_mpi.cpp.
Referenced by gatherGlobal().