|
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 double | colourAt (int x, int y, int z) |
| static double | forceXAt (int, int, 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 | maxAbsDev (const std::vector< double > &a, double r) |
| static std::vector< double > | demean (std::vector< double > v) |
| static double | sumOf (const std::vector< double > &a) |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | NX = 16 |
| static constexpr int | NY = 16 |
| static constexpr int | NZ = 32 |
| static constexpr std::size_t | GCELLS = (std::size_t)NX * NY * NZ |
| static const double | UNIF [3] = {1.0, 0.6, -0.4} |
Definition at line 56 of file test_vof_momentum_mpi.cpp.
Referenced by configure().
|
static |
Definition at line 69 of file test_vof_momentum_mpi.cpp.
Referenced by configure().
|
static |
Definition at line 79 of file test_vof_momentum_mpi.cpp.
References blockOf(), colourAt(), peclet::flow::Solver< Grid >::enableCellForce(), peclet::flow::Solver< Grid >::enableVofMomentum(), forceXAt(), peclet::flow::LinearMix, 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 >::setPropertyModel(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setVof(), UNIF, and peclet::flow::Solver< Grid >::uploadVelocity().
Referenced by main().
|
static |
Definition at line 139 of file test_vof_momentum_mpi.cpp.
Referenced by main().
Definition at line 152 of file test_vof_momentum_mpi.cpp.
Referenced by main().
Definition at line 158 of file test_vof_momentum_mpi.cpp.
Referenced by main().
Definition at line 168 of file test_vof_momentum_mpi.cpp.
Referenced by main().
Definition at line 177 of file test_vof_momentum_mpi.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 184 of file test_vof_momentum_mpi.cpp.
References configure(), demean(), gatherGlobal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), peclet::flow::Solver< Grid >::getVof(), peclet::flow::Solver< Grid >::getVofAdvectedVelocity(), maxAbs(), maxAbsDev(), maxAbsDiff(), NX, NY, NZ, peclet::flow::Solver< Grid >::step(), sumOf(), and UNIF.
|
staticconstexpr |
Definition at line 40 of file test_vof_momentum_mpi.cpp.
Referenced by colourAt(), gatherGlobal(), and main().
|
static |
Definition at line 40 of file test_vof_momentum_mpi.cpp.
Referenced by colourAt(), gatherGlobal(), and main().
|
static |
Definition at line 40 of file test_vof_momentum_mpi.cpp.
Referenced by colourAt(), forceXAt(), and main().
Definition at line 41 of file test_vof_momentum_mpi.cpp.
Referenced by gatherGlobal().
Definition at line 51 of file test_vof_momentum_mpi.cpp.
Referenced by configure(), and main().