|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#include <mpi.h>#include <cmath>#include <cstdlib>#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 | bubbleAt (int b, int x, int y, int z) |
| static void | configure (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz, bool csf) |
| 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 | maxDiff (const std::vector< double > &a, const std::vector< double > &b) |
| static long | countBitDiff (const std::vector< double > &a, const std::vector< double > &b, double &mx) |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | NX = 24 |
| static constexpr int | NY = 24 |
| static constexpr int | NZ = 48 |
| static constexpr std::size_t | GCELLS = (std::size_t)NX * NY * NZ |
| static constexpr double | RHO_L = 10.0 |
| static constexpr double | RHO_G = 1.0 |
| static constexpr double | MU_L = 0.5 |
| static constexpr double | MU_G = 0.05 |
| static constexpr double | SIGMA = 4.0 |
| static constexpr double | RB = 4.5 |
| static constexpr double | GRAV = 2.0e-3 |
| static const double | CX [2] = {NX / 2.0 + 0.13, NX / 2.0 + 0.13} |
| static const double | CY [2] = {NY / 2.0 - 0.21, NY / 2.0 - 0.21} |
| static const double | CZ [2] = {14.0 + 0.31, 24.0 + 0.31} |
| static const int | ZSPLIT = 20 |
Definition at line 50 of file test_vof_blocks_ns_mpi.cpp.
References CX, CY, CZ, and RB.
Referenced by configure().
|
static |
Definition at line 67 of file test_vof_blocks_ns_mpi.cpp.
References bubbleAt(), peclet::flow::Solver< Grid >::capillaryDt(), CX, CY, CZ, peclet::flow::Solver< Grid >::enableVof(), peclet::flow::Solver< Grid >::enableVofBlockCsf(), peclet::flow::Solver< Grid >::enableVofBlocksFromField(), GRAV, MU_G, MU_L, RB, RHO_G, RHO_L, peclet::flow::Solver< Grid >::setDomainBc(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureChebyshev(), 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(), SIGMA, and ZSPLIT.
Referenced by main().
Definition at line 151 of file test_vof_blocks_ns_mpi.cpp.
|
static |
Definition at line 157 of file test_vof_blocks_ns_mpi.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 168 of file test_vof_blocks_ns_mpi.cpp.
References peclet::flow::Solver< Grid >::VofOverlapCensus::cells, peclet::flow::vof::VofCurvature::Stats::clipped, configure(), countBitDiff(), gatherGlobal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), peclet::flow::Solver< Grid >::getVof(), peclet::flow::Solver< Grid >::getVofBlockForce(), maxDiff(), NX, NY, NZ, peclet::flow::Solver< Grid >::step(), STEPS, peclet::flow::Solver< Grid >::vofBlockCurvatureStats(), peclet::flow::Solver< Grid >::vofBlockOverlapCensus(), and peclet::flow::Solver< Grid >::vofBlockStats().
|
staticconstexpr |
Definition at line 38 of file test_vof_blocks_ns_mpi.cpp.
Referenced by gatherGlobal(), and main().
|
static |
Definition at line 38 of file test_vof_blocks_ns_mpi.cpp.
Referenced by gatherGlobal(), and main().
|
static |
Definition at line 38 of file test_vof_blocks_ns_mpi.cpp.
Referenced by main().
Definition at line 39 of file test_vof_blocks_ns_mpi.cpp.
Referenced by gatherGlobal().
Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.
Referenced by configure().
Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.
Referenced by configure().
Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.
Referenced by configure().
Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.
Referenced by configure().
Definition at line 41 of file test_vof_blocks_ns_mpi.cpp.
Referenced by configure().
Definition at line 42 of file test_vof_blocks_ns_mpi.cpp.
Referenced by bubbleAt(), and configure().
Definition at line 42 of file test_vof_blocks_ns_mpi.cpp.
Referenced by configure().
Definition at line 45 of file test_vof_blocks_ns_mpi.cpp.
Referenced by bubbleAt(), and configure().
Definition at line 46 of file test_vof_blocks_ns_mpi.cpp.
Referenced by bubbleAt(), and configure().
Definition at line 47 of file test_vof_blocks_ns_mpi.cpp.
Referenced by bubbleAt(), and configure().
|
static |
Definition at line 48 of file test_vof_blocks_ns_mpi.cpp.
Referenced by configure().