|
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 <stdexcept>#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 > | blobs (int line) |
| static std::vector< double > | slice (const std::vector< double > &g, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static void | configure (IbmSolver &s, const Config &c, const std::vector< double > &forceLocal) |
| 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 | maxAbs (const std::vector< double > &a) |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | N = 32 |
| static constexpr int | STEPS = 2 |
| static constexpr std::size_t | GCELLS = (std::size_t)N * N * N |
Definition at line 64 of file test_cellforce_mpi.cpp.
|
static |
Definition at line 84 of file test_cellforce_mpi.cpp.
References N.
Referenced by state_initialization::_resample_axis(), test_scalar_cutcell_gates::cell_velocity(), exact_apertures_spheres::exact_openness(), run_channel_18::interp_component(), vof_channel_18::interp_component(), main(), test_scalar_cutcell_gates::mean_flux_fields(), micromodel_2d::run(), and imbibition_packing::trapped_gas().
|
static |
Definition at line 96 of file test_cellforce_mpi.cpp.
References peclet::flow::Solver< Grid >::enableCellForce(), peclet::flow::Solver< Grid >::setDensityMode(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setField(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressurePcg(), and peclet::flow::Solver< Grid >::setRho().
Referenced by main().
|
static |
Definition at line 109 of file test_cellforce_mpi.cpp.
Referenced by main().
|
static |
Definition at line 147 of file test_cellforce_mpi.cpp.
Referenced by main().
Definition at line 157 of file test_cellforce_mpi.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 164 of file test_cellforce_mpi.cpp.
References blobs(), configure(), gatherGlobal(), GCELLS, peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), maxAbs(), maxAbsDiff(), N, peclet::flow::Solver< Grid >::setPressureGeometry(), slice(), peclet::flow::Solver< Grid >::step(), and STEPS.
|
staticconstexpr |
Definition at line 53 of file test_cellforce_mpi.cpp.
Referenced by blobs(), gatherGlobal(), main(), and slice().
|
static |
Definition at line 53 of file test_cellforce_mpi.cpp.
Referenced by main().
Definition at line 54 of file test_cellforce_mpi.cpp.
Referenced by blobs(), gatherGlobal(), and main().