|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#include <mpi.h>#include <cmath>#include <cstdio>#include <cstdlib>#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.
Functions | |
| static double | sdfAt (double x, double y, double z) |
| static double | colourAt (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 std::vector< double > | sliceOf (const std::vector< double > &g, 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 | 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 |
Definition at line 70 of file test_vof_cutcell_mpi.cpp.
|
static |
Definition at line 124 of file test_vof_cutcell_mpi.cpp.
Referenced by main().
Definition at line 137 of file test_vof_cutcell_mpi.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 144 of file test_vof_cutcell_mpi.cpp.
References peclet::flow::Solver< Grid >::advectVofKinematic(), blockOf(), colourAt(), peclet::flow::Solver< Grid >::enableVof(), gatherGlobal(), peclet::flow::Solver< Grid >::getVelocity(), peclet::flow::Solver< Grid >::getVof(), peclet::flow::Solver< Grid >::getVofFilledColour(), peclet::flow::Solver< Grid >::getVofGeometry(), peclet::flow::Solver< Grid >::lastPressureIterations(), peclet::flow::LinearMix, maxAbsDiff(), peclet::flow::Solver< Grid >::maxOpenDivergence(), NX, NY, NZ, sdfAt(), peclet::flow::Solver< Grid >::setAdvection(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setField(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPropertyModel(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setSolid(), peclet::flow::Solver< Grid >::setVof(), sliceOf(), peclet::flow::vof::WyAdvector::Diagnostics::solidSumC, peclet::flow::Solver< Grid >::step(), peclet::flow::Solver< Grid >::vofDiagnostics(), peclet::flow::Solver< Grid >::vofMaxCourant(), and peclet::flow::vof::WyAdvector::Diagnostics::volume.
|
staticconstexpr |
Definition at line 46 of file test_vof_cutcell_mpi.cpp.
Referenced by gatherGlobal(), main(), sdfAt(), and sliceOf().
|
static |
Definition at line 46 of file test_vof_cutcell_mpi.cpp.
Referenced by gatherGlobal(), main(), sdfAt(), and sliceOf().
|
static |
Definition at line 46 of file test_vof_cutcell_mpi.cpp.
Referenced by colourAt(), main(), and sdfAt().
Definition at line 47 of file test_vof_cutcell_mpi.cpp.
Referenced by gatherGlobal().