|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#include <mpi.h>#include <cmath>#include <cstdio>#include <cstring>#include <Kokkos_Core.hpp>#include <string>#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.
Classes | |
| struct | Config |
Functions | |
| static std::vector< double > | packingSdf (double rfrac=0.18) |
| static double | muAt (int x, int y, int) |
| static double | rhoAt (int, int, int z) |
| static double | epsAt (int, int, int z) |
| static double | scalarAt (int x, int y, int z) |
| template<class Fn > | |
| static std::vector< double > | blockOf (Fn f, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static void | configure (IbmSolver &s, const Config &c, const std::vector< double > &lsdf, int ox, int oy, int oz, 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 double | relErr (const std::vector< double > &a, const std::vector< double > &b) |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | N = 32 |
| static constexpr int | STEPS = 30 |
| static constexpr double | RHO = 1.0 |
| static constexpr double | MU = 0.1 |
| static constexpr double | F = 1e-3 |
| static constexpr double | DT = 20.0 |
Definition at line 51 of file test_multiphysics_mpi.cpp.
Referenced by configure().
Definition at line 54 of file test_multiphysics_mpi.cpp.
Referenced by configure(), and peclet::flow::gpDebugReport().
|
static |
Definition at line 68 of file test_multiphysics_mpi.cpp.
Referenced by configure().
|
static |
Definition at line 83 of file test_multiphysics_mpi.cpp.
References peclet::flow::Solver< Grid >::addScalar(), blockOf(), DT, epsAt(), peclet::flow::Solver< Grid >::exchangeField(), F, MU, muAt(), RHO, rhoAt(), scalarAt(), peclet::flow::Solver< Grid >::setAdvection(), peclet::flow::Solver< Grid >::setBodyForce(), peclet::flow::Solver< Grid >::setDensityMode(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setField(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPorousContinuity(), peclet::flow::Solver< Grid >::setPressureLevels(), peclet::flow::Solver< Grid >::setPressurePcg(), peclet::flow::Solver< Grid >::setPropertyMode(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setScalarBc(), peclet::flow::Solver< Grid >::setSolid(), and peclet::flow::Solver< Grid >::setVelocityIterations().
Referenced by main().
Definition at line 167 of file test_multiphysics_mpi.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 176 of file test_multiphysics_mpi.cpp.
References configure(), gatherGlobal(), peclet::flow::Solver< Grid >::getField(), peclet::flow::Solver< Grid >::getVelocity(), N, packingSdf(), relErr(), peclet::flow::Solver< Grid >::step(), and STEPS.
|
staticconstexpr |
Definition at line 27 of file test_multiphysics_mpi.cpp.
Referenced by epsAt(), gatherGlobal(), main(), muAt(), packingSdf(), rhoAt(), and scalarAt().
|
static |
Definition at line 27 of file test_multiphysics_mpi.cpp.
Referenced by main().
Definition at line 28 of file test_multiphysics_mpi.cpp.
Referenced by configure(), and rhoAt().
Definition at line 28 of file test_multiphysics_mpi.cpp.
Referenced by configure(), and muAt().
Definition at line 28 of file test_multiphysics_mpi.cpp.
Referenced by configure().
Definition at line 28 of file test_multiphysics_mpi.cpp.
Referenced by configure().