|
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.
Typedefs | |
| using | Colo = peclet::flow::Solver< peclet::flow::Colocated > |
Functions | |
| 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 | signedSumDiff (const std::vector< double > &a, const std::vector< double > &b) |
| static long | countNonFinite (const std::vector< double > &a) |
| static double | sumOf (const std::vector< double > &a) |
| static void | configureSlug (IbmSolver &s, int lnx, int lny, int lnz) |
| static void | configureJet (IbmSolver &s, int lnx, int lny, int lnz) |
| static void | configureColoJet (Colo &s, int oz, int lnx, int lny, int lnz) |
| static std::vector< double > | packingSdf (int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static void | packingVelocity (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static void | configurePacking (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| 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 constexpr double | WIN = 1.0 |
| static constexpr double | DT = 0.2 |
Definition at line 59 of file test_vof_bc_mpi.cpp.
|
static |
Definition at line 104 of file test_vof_bc_mpi.cpp.
Referenced by main().
|
static |
Definition at line 118 of file test_vof_bc_mpi.cpp.
Referenced by main().
Definition at line 124 of file test_vof_bc_mpi.cpp.
Referenced by main().
Definition at line 131 of file test_vof_bc_mpi.cpp.
Referenced by main().
Definition at line 139 of file test_vof_bc_mpi.cpp.
References DT, peclet::flow::Solver< Grid >::enableVof(), 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 >::setRho(), peclet::flow::Solver< Grid >::setVof(), peclet::flow::Solver< Grid >::setVofBackflow(), peclet::flow::Solver< Grid >::setVofInflow(), and WIN.
Referenced by main().
Definition at line 156 of file test_vof_bc_mpi.cpp.
References peclet::flow::Solver< Grid >::enableVof(), peclet::flow::LinearMix, peclet::flow::Solver< Grid >::setDomainBc(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureFcg(), peclet::flow::Solver< Grid >::setPressureGeometry(), peclet::flow::Solver< Grid >::setPressureLevels(), peclet::flow::Solver< Grid >::setPropertyModel(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setVelocityIterations(), peclet::flow::Solver< Grid >::setVof(), peclet::flow::Solver< Grid >::setVofBackflow(), and peclet::flow::Solver< Grid >::setVofInflow().
Referenced by main().
Definition at line 186 of file test_vof_bc_mpi.cpp.
References peclet::flow::Solver< Grid >::enableVof(), NZ, peclet::flow::Solver< Grid >::setDomainBc(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureGeometry(), peclet::flow::Solver< Grid >::setPressureIterations(), peclet::flow::Solver< Grid >::setPressureLevels(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setVelocityIterations(), peclet::flow::Solver< Grid >::setVof(), peclet::flow::Solver< Grid >::setVofBackflow(), and peclet::flow::Solver< Grid >::setVofInflow().
Referenced by main().
|
static |
Definition at line 214 of file test_vof_bc_mpi.cpp.
References NZ.
Referenced by configurePacking().
|
static |
Definition at line 239 of file test_vof_bc_mpi.cpp.
References NX, NY, NZ, and peclet::flow::Solver< Grid >::setField().
Referenced by main().
|
static |
Definition at line 259 of file test_vof_bc_mpi.cpp.
References peclet::flow::Solver< Grid >::enableVof(), NZ, packingSdf(), peclet::flow::Solver< Grid >::setDomainBc(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureIterations(), peclet::flow::Solver< Grid >::setPressureLevels(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setSolid(), peclet::flow::Solver< Grid >::setVelocityIterations(), peclet::flow::Solver< Grid >::setVof(), peclet::flow::Solver< Grid >::setVofBackflow(), and peclet::flow::Solver< Grid >::setVofInflow().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 283 of file test_vof_bc_mpi.cpp.
References peclet::flow::Solver< Grid >::advectVof(), configureColoJet(), configureJet(), configurePacking(), configureSlug(), countNonFinite(), peclet::flow::Solver< Grid >::fieldView(), G, gatherGlobal(), peclet::flow::Solver< Grid >::getVof(), peclet::flow::Solver< Grid >::lastPressureIterations(), ledger(), maxAbsDiff(), peclet::flow::Solver< Grid >::maxOpenDivergence(), NX, NY, NZ, packingVelocity(), peclet::flow::Solver< Grid >::setVofInflow(), signedSumDiff(), peclet::flow::vof::WyAdvector::Diagnostics::solidSumC, peclet::flow::Solver< Grid >::step(), sumOf(), peclet::flow::Solver< Grid >::vofBcVolumes(), peclet::flow::Solver< Grid >::vofBcVolumesTotal(), peclet::flow::Solver< Grid >::vofDiagnostics(), and peclet::flow::vof::WyAdvector::Diagnostics::volume.
|
staticconstexpr |
Definition at line 61 of file test_vof_bc_mpi.cpp.
Referenced by gatherGlobal(), main(), and packingVelocity().
|
static |
Definition at line 61 of file test_vof_bc_mpi.cpp.
Referenced by gatherGlobal(), main(), and packingVelocity().
|
static |
Definition at line 61 of file test_vof_bc_mpi.cpp.
Referenced by configureColoJet(), configurePacking(), main(), packingSdf(), and packingVelocity().
Definition at line 62 of file test_vof_bc_mpi.cpp.
Referenced by gatherGlobal().
Definition at line 63 of file test_vof_bc_mpi.cpp.
Referenced by configureSlug().
Definition at line 64 of file test_vof_bc_mpi.cpp.
Referenced by configureSlug().