|
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 | muAt (const Config &, int, int y, int) |
| static double | srcAt (int, int y, int) |
| 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 | couetteExact (double yc) |
| static double | couetteError (const std::vector< double > &u) |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | NX = 16 |
| static constexpr int | NY = 32 |
| static constexpr int | NZ = 8 |
| static constexpr double | MU1 = 1.0 |
| static constexpr double | MU2 = 0.1 |
| static constexpr double | ULID = 1.0 |
| static constexpr double | RHO = 1.0 |
| static constexpr double | DT = 100.0 |
| static constexpr int | STEPS_COUETTE = 80 |
| static constexpr int | STEPS_PERY = 40 |
| static constexpr double | FZ = 1e-2 |
| static constexpr std::size_t | GCELLS = (std::size_t)NX * NY * NZ |
Definition at line 73 of file test_varmu_mpi.cpp.
Referenced by configure().
|
static |
Definition at line 81 of file test_varmu_mpi.cpp.
Referenced by configure().
|
static |
Definition at line 91 of file test_varmu_mpi.cpp.
References peclet::flow::Solver< Grid >::addField(), blockOf(), DT, peclet::flow::Solver< Grid >::exchangeField(), FZ, peclet::flow::LinearMix, MU1, muAt(), RHO, peclet::flow::Solver< Grid >::setAdvection(), 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 >::setPressurePcg(), peclet::flow::Solver< Grid >::setPropertyMode(), peclet::flow::Solver< Grid >::setPropertyModel(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setVelocityIterations(), srcAt(), and ULID.
Referenced by main().
|
static |
Definition at line 159 of file test_varmu_mpi.cpp.
Referenced by main().
Definition at line 172 of file test_varmu_mpi.cpp.
Referenced by main().
Definition at line 181 of file test_varmu_mpi.cpp.
References MU1, MU2, and ULID.
Referenced by couetteError().
Definition at line 187 of file test_varmu_mpi.cpp.
References couetteExact(), NX, NY, NZ, and ULID.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 197 of file test_varmu_mpi.cpp.
References configure(), couetteError(), gatherGlobal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), maxAbs(), maxAbsDiff(), NX, NY, NZ, peclet::flow::Solver< Grid >::step(), STEPS_COUETTE, and STEPS_PERY.
|
staticconstexpr |
Definition at line 59 of file test_varmu_mpi.cpp.
Referenced by couetteError(), gatherGlobal(), and main().
|
static |
Definition at line 59 of file test_varmu_mpi.cpp.
Referenced by couetteError(), gatherGlobal(), main(), muAt(), and srcAt().
|
static |
Definition at line 59 of file test_varmu_mpi.cpp.
Referenced by couetteError(), and main().
Definition at line 60 of file test_varmu_mpi.cpp.
Referenced by configure(), couetteExact(), and muAt().
Definition at line 60 of file test_varmu_mpi.cpp.
Referenced by couetteExact(), and muAt().
Definition at line 60 of file test_varmu_mpi.cpp.
Referenced by configure(), couetteError(), and couetteExact().
Definition at line 60 of file test_varmu_mpi.cpp.
Referenced by configure().
Definition at line 60 of file test_varmu_mpi.cpp.
Referenced by configure().
|
staticconstexpr |
Definition at line 61 of file test_varmu_mpi.cpp.
Referenced by main().
|
static |
Definition at line 61 of file test_varmu_mpi.cpp.
Referenced by main().
Definition at line 62 of file test_varmu_mpi.cpp.
Referenced by configure().
Definition at line 63 of file test_varmu_mpi.cpp.
Referenced by gatherGlobal().