|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#include <mpi.h>#include <algorithm>#include <cmath>#include <cstdio>#include <cstring>#include <Kokkos_Core.hpp>#include <string>#include <type_traits>#include <vector>#include "flow_ibm.hpp"#include "mac_cutcell_mg.hpp"#include "peclet/core/common/types.hpp"#include "peclet/core/decomp/block_decomposer.hpp"Go to the source code of this file.
Classes | |
| struct | Diff |
| struct | Fields |
Typedefs | |
| using | CCConst |
| using | CCField |
| using | IbmSolver |
Functions | |
| static void | check (bool ok, const std::string &what) |
| static Diff | compareBlock (const std::vector< double > &a, const std::vector< double > &ref, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static bool | sameBits (const std::vector< double > &a, const std::vector< double > &b) |
| static std::string | fmt (const char *f, double a, long b=0) |
| static double | source (int gx, int gy, int gz) |
| static std::vector< double > | mgSolve (CutcellMG &mg) |
| static void | mgChecks () |
| static std::vector< double > | sphereSdf () |
| static void | configure (IbmSolver &s) |
| static Fields | fieldsOf (IbmSolver &s) |
| static void | solverChecks () |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | NX = 32 |
| static constexpr int | NY = 32 |
| static constexpr int | NZ = 25 |
| static int | gRank = 0 |
| static int | gSize = 1 |
| static int | gFail = 0 |
| using peclet::flow::CCConst |
Definition at line 27 of file mac_cutcell.hpp.
| using peclet::flow::CCField |
Definition at line 26 of file mac_cutcell.hpp.
| using peclet::flow::IbmSolver |
Definition at line 5663 of file flow_ibm.hpp.
|
static |
Definition at line 41 of file test_ca_odd_periodic_mpi.cpp.
Referenced by main(), test_velocity_solver_variable_mu::main(), test_vof_viscous_interface_auto::main(), mgChecks(), and solverChecks().
|
static |
Definition at line 56 of file test_ca_odd_periodic_mpi.cpp.
Referenced by mgChecks(), and solverChecks().
|
static |
Definition at line 76 of file test_ca_odd_periodic_mpi.cpp.
Referenced by main(), mgChecks(), and solverChecks().
|
static |
Definition at line 82 of file test_ca_odd_periodic_mpi.cpp.
Referenced by main(), mgChecks(), and solverChecks().
|
static |
Definition at line 90 of file test_ca_odd_periodic_mpi.cpp.
Referenced by peclet::flow::bindings::bindSolverScalar(), and mgSolve().
|
static |
Definition at line 96 of file test_ca_odd_periodic_mpi.cpp.
References CutcellMG::Level::ext, CutcellMG::Level::g, peclet::flow::CutcellMG::level(), CutcellMG::Level::og, peclet::flow::CutcellMG::setOpenness(), peclet::flow::CutcellMG::solvePCG(), and source().
Referenced by mgChecks().
|
static |
Definition at line 127 of file test_ca_odd_periodic_mpi.cpp.
References peclet::flow::CutcellMG::Level::caOk, check(), compareBlock(), fmt(), gSize, CutcellMG::Level::inner, peclet::flow::kCaMg, peclet::flow::CutcellMG::level(), mgSolve(), NLEV, peclet::flow::CutcellMG::nLevels(), NX, NY, NZ, CutcellMG::Level::og, sameBits(), peclet::flow::CutcellMG::setCommAvoiding(), peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.
Referenced by main().
|
static |
Definition at line 168 of file test_ca_odd_periodic_mpi.cpp.
Referenced by solverChecks().
|
static |
Definition at line 187 of file test_ca_odd_periodic_mpi.cpp.
Referenced by solverChecks().
Definition at line 201 of file test_ca_odd_periodic_mpi.cpp.
Referenced by solverChecks().
|
static |
Definition at line 209 of file test_ca_odd_periodic_mpi.cpp.
References check(), compareBlock(), configure(), fieldsOf(), fmt(), gRank, gSize, peclet::flow::kCaBoth, peclet::flow::kCaMg, peclet::flow::kCaMomentum, NX, NY, NZ, sameBits(), sphereSdf(), and STEPS.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 281 of file test_ca_odd_periodic_mpi.cpp.
References gFail, gRank, gSize, mgChecks(), NX, NY, NZ, and solverChecks().
|
staticconstexpr |
Definition at line 38 of file test_ca_odd_periodic_mpi.cpp.
|
static |
Definition at line 38 of file test_ca_odd_periodic_mpi.cpp.
|
static |
Definition at line 38 of file test_ca_odd_periodic_mpi.cpp.
|
static |
Definition at line 39 of file test_ca_odd_periodic_mpi.cpp.
Referenced by check(), main(), and solverChecks().
|
static |
Definition at line 39 of file test_ca_odd_periodic_mpi.cpp.
Referenced by main(), mgChecks(), and solverChecks().
|
static |
Definition at line 39 of file test_ca_odd_periodic_mpi.cpp.