|
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 <functional>#include <Kokkos_Core.hpp>#include <vector>#include "flow_ibm.hpp"#include "peclet/core/decomp/block_decomposer.hpp"Go to the source code of this file.
Classes | |
| struct | Block |
| struct | Run |
Macros | |
| #define | CHECK(cond) |
Typedefs | |
| using | FlowSetup = std::function<void(IbmSolver&)> |
| using | ScalarSetup = std::function<void(IbmSolver&, const Block&)> |
| using | Solve = std::function<Run(IbmSolver&)> |
| using | Post = std::function<void(IbmSolver&, IbmSolver&, const Block&)> |
Functions | |
| static bool | same (double a, double b) |
| static std::vector< double > | sphereSdf (int n, double cx, double cy, double cz, double R) |
| static void | record (IbmSolver &s, Run &r, bool transient) |
| static void | compare (const char *tag, int n, const std::vector< double > &gsdf, FlowSetup flow, ScalarSetup scalar, Solve solve, bool checkLevels=false, bool gated=true, bool cutcellPressure=false, Post post=nullptr, double identityBound=1e-12) |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | G = IbmSolver::G |
| static int | failures = 0 |
| static int | rank_ = 0 |
| static int | size_ = 1 |
| #define CHECK | ( | cond | ) |
Definition at line 56 of file test_scalar_cutcell_solve_mpi.cpp.
Definition at line 80 of file test_scalar_cutcell_solve_mpi.cpp.
| using ScalarSetup = std::function<void(IbmSolver&, const Block&)> |
Definition at line 81 of file test_scalar_cutcell_solve_mpi.cpp.
Definition at line 82 of file test_scalar_cutcell_solve_mpi.cpp.
Definition at line 103 of file test_scalar_cutcell_solve_mpi.cpp.
|
static |
Definition at line 64 of file test_scalar_cutcell_solve_mpi.cpp.
|
static |
Definition at line 84 of file test_scalar_cutcell_solve_mpi.cpp.
References R.
Definition at line 96 of file test_scalar_cutcell_solve_mpi.cpp.
Referenced by main().
|
static |
Definition at line 105 of file test_scalar_cutcell_solve_mpi.cpp.
References peclet::flow::ScalarField::c, CHECK, peclet::flow::ScalarField::cut, G, peclet::flow::VelocityMG::level(), peclet::flow::VelocityMG::levels(), maxDiff(), R, rank_, same(), peclet::flow::Solver< Grid >::scalarField(), peclet::flow::Solver< Grid >::setAdvection(), peclet::flow::VelocityMG::setMetric(), peclet::flow::Solver< Grid >::setScalarResidualTolerance(), peclet::flow::Solver< Grid >::setSolid(), and size_.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 224 of file test_scalar_cutcell_solve_mpi.cpp.
References build(), CHECK, compare(), peclet::flow::ScalarField::cut, failures, peclet::flow::Solver< Grid >::fieldView(), G, N, R, rank_, record(), same(), peclet::flow::Solver< Grid >::scalarField(), peclet::flow::Solver< Grid >::setAdvection(), size_, sphereSdf(), and U.
|
staticconstexpr |
Definition at line 53 of file test_scalar_cutcell_solve_mpi.cpp.
|
static |
Definition at line 55 of file test_scalar_cutcell_solve_mpi.cpp.
|
static |
Definition at line 68 of file test_scalar_cutcell_solve_mpi.cpp.
Referenced by compare(), peclet::flow::vof::VofBlockExchange::init(), and main().
|
static |
Definition at line 68 of file test_scalar_cutcell_solve_mpi.cpp.