|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#include <mpi.h>#include <algorithm>#include <array>#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.
Functions | |
| static double | sphereFrac (double cx, int x, int y, int z) |
| static std::vector< double > | colour (int m) |
| static void | configure (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static std::vector< double > | pairColour (int m) |
| static void | configurePair (IbmSolver &s, int lnx, int lny, int lnz, bool bound) |
| static double | sphereFrac3 (const double *c, double r, int x, int y, int z) |
| static std::array< int, 6 > | wallBox (int m) |
| static std::vector< double > | wallColour (int m) |
| static double | wallPsi (int x, int y) |
| psi on the z-edge (x, y): zero on both walls, periodic in x with an EXACT wrap (x mod NX). | |
| static void | configureWall (IbmSolver &s, int ox, int oy, 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 std::vector< double > | ledger (IbmSolver &s) |
| int | main (int argc, char **argv) |
Definition at line 50 of file test_vof_blocks_debris_mpi.cpp.
Referenced by colour(), gateSolverMetric(), and pairColour().
Definition at line 63 of file test_vof_blocks_debris_mpi.cpp.
References AX, BOX, BX, SPECK, sphereFrac(), SX, SY0, and SZ.
Referenced by configure(), main(), peclet::flow::vof::VofBlockExchange::migrateColour(), and peclet::flow::vof::VofBlockSet::seedBoxWithColour().
Definition at line 77 of file test_vof_blocks_debris_mpi.cpp.
References BOX, colour(), CY, peclet::flow::Solver< Grid >::enableVof(), peclet::flow::Solver< Grid >::enableVofBlockCsf(), peclet::flow::Solver< Grid >::enableVofBlocksFromColours(), GAMMA, peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureGeometry(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setSurfaceTension(), peclet::flow::Solver< Grid >::setVelocity(), peclet::flow::Solver< Grid >::setVof(), and SIGMA.
Referenced by main().
Definition at line 107 of file test_vof_blocks_debris_mpi.cpp.
References PAX, PBOX, PBX, and sphereFrac().
Referenced by configurePair().
Definition at line 116 of file test_vof_blocks_debris_mpi.cpp.
References peclet::flow::Solver< Grid >::enableVof(), peclet::flow::Solver< Grid >::enableVofBlockCsf(), peclet::flow::Solver< Grid >::enableVofBlocksFromColours(), peclet::flow::LinearMix, pairColour(), PBOX, RHO_G, RHO_L, peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureGeometry(), peclet::flow::Solver< Grid >::setPropertyModel(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setSurfaceTension(), peclet::flow::Solver< Grid >::setVof(), peclet::flow::Solver< Grid >::setVofPhantomCapillaryBound(), and SIGMA.
Referenced by main().
Definition at line 135 of file test_vof_blocks_debris_mpi.cpp.
Referenced by wallColour().
|
static |
Definition at line 147 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configureWall(), main(), and wallColour().
Definition at line 157 of file test_vof_blocks_debris_mpi.cpp.
References sphereFrac3(), wallBox(), WC, and WR.
Referenced by configureWall(), and main().
psi on the z-edge (x, y): zero on both walls, periodic in x with an EXACT wrap (x mod NX).
Definition at line 167 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configureWall(), and main().
Definition at line 173 of file test_vof_blocks_debris_mpi.cpp.
References peclet::flow::Solver< Grid >::enableVof(), peclet::flow::Solver< Grid >::enableVofBlockCsf(), peclet::flow::Solver< Grid >::enableVofBlocksFromColours(), peclet::flow::Solver< Grid >::setDomainBc(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureGeometry(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setSurfaceTension(), peclet::flow::Solver< Grid >::setVelocity(), peclet::flow::Solver< Grid >::setVof(), SIGMA, wallBox(), wallColour(), and wallPsi().
Referenced by main().
Definition at line 241 of file test_vof_blocks_debris_mpi.cpp.
References peclet::flow::Solver< Grid >::vofBlockStats().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 255 of file test_vof_blocks_debris_mpi.cpp.
References peclet::flow::Solver< Grid >::advectVofBlocks(), peclet::flow::Solver< Grid >::capillaryDt(), configure(), configurePair(), configureWall(), DT, gatherGlobal(), GCELLS, peclet::flow::Solver< Grid >::getVof(), ledger(), NF, NX, NY, NZ, RHO_G, RHO_L, SPECK, STEPS, peclet::flow::Solver< Grid >::vofBlockOverlapCensus(), peclet::flow::Solver< Grid >::vofBlockStats(), wallBox(), wallColour(), wallPsi(), WDT, and WSTEPS.
|
staticconstexpr |
Definition at line 42 of file test_vof_blocks_debris_mpi.cpp.
Referenced by gatherGlobal(), main(), and wallPsi().
|
static |
Definition at line 42 of file test_vof_blocks_debris_mpi.cpp.
Referenced by gatherGlobal(), main(), wallBox(), and wallPsi().
|
static |
Definition at line 42 of file test_vof_blocks_debris_mpi.cpp.
Referenced by main().
Definition at line 43 of file test_vof_blocks_debris_mpi.cpp.
Referenced by gatherGlobal(), and main().
Definition at line 44 of file test_vof_blocks_debris_mpi.cpp.
Referenced by sphereFrac().
Definition at line 44 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configure(), configurePair(), configureWall(), and runDropletAniso().
Definition at line 44 of file test_vof_blocks_debris_mpi.cpp.
Referenced by colour().
Definition at line 44 of file test_vof_blocks_debris_mpi.cpp.
Referenced by colour().
Definition at line 44 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configure(), and sphereFrac().
Definition at line 44 of file test_vof_blocks_debris_mpi.cpp.
Referenced by sphereFrac().
|
staticconstexpr |
Definition at line 45 of file test_vof_blocks_debris_mpi.cpp.
Referenced by colour().
|
static |
Definition at line 45 of file test_vof_blocks_debris_mpi.cpp.
Referenced by colour().
|
static |
Definition at line 45 of file test_vof_blocks_debris_mpi.cpp.
Referenced by colour().
Definition at line 46 of file test_vof_blocks_debris_mpi.cpp.
Definition at line 47 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configure().
Definition at line 47 of file test_vof_blocks_debris_mpi.cpp.
Referenced by main().
|
static |
Definition at line 48 of file test_vof_blocks_debris_mpi.cpp.
Referenced by colour(), configure(), and main().
Definition at line 105 of file test_vof_blocks_debris_mpi.cpp.
Referenced by pairColour().
Definition at line 105 of file test_vof_blocks_debris_mpi.cpp.
Referenced by pairColour().
Definition at line 105 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configurePair(), and main().
Definition at line 105 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configurePair(), and main().
|
static |
Definition at line 106 of file test_vof_blocks_debris_mpi.cpp.
Referenced by configurePair(), and pairColour().
Definition at line 132 of file test_vof_blocks_debris_mpi.cpp.
Referenced by wallBox(), and wallColour().
Definition at line 132 of file test_vof_blocks_debris_mpi.cpp.
Referenced by wallBox(), and wallColour().
Definition at line 133 of file test_vof_blocks_debris_mpi.cpp.
Referenced by wallPsi().
Definition at line 133 of file test_vof_blocks_debris_mpi.cpp.
Referenced by main().
|
staticconstexpr |
Definition at line 134 of file test_vof_blocks_debris_mpi.cpp.
Referenced by main().
|
staticconstexpr |
Definition at line 240 of file test_vof_blocks_debris_mpi.cpp.
Referenced by main().