|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#include <mpi.h>#include <array>#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"#include "peclet/core/geom/scene_builder.hpp"Go to the source code of this file.
Functions | |
| static double | gShift () |
| static double | X0 () |
| static double | Y0 () |
| static void | sphereScene (std::vector< int > &ni, std::vector< double > &nr, std::vector< int > &ii, std::vector< double > &ir) |
| static bool | envOn (const char *k) |
| static void | configure (IbmSolver &s) |
| static void | towStep (IbmSolver &s, int it) |
| 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 = 48 |
| static constexpr int | STEPS = 60 |
| static constexpr std::size_t | GCELLS = (std::size_t)N * N * N |
| static constexpr double | DIAM = 8.0 |
| static constexpr double | U = 0.05 |
| static constexpr double | RE = 20.0 |
| static constexpr double | MU = U * DIAM / RE |
| static constexpr double | RHO = 1.0 |
| static constexpr double | DT = 4.0 |
| static constexpr double | OFF = 0.3 |
| static constexpr double | DIRX = 0.6 |
| static constexpr double | DIRY = 0.8 |
| static constexpr double | X0C = 0.60 * N + OFF |
| static constexpr double | Y0C = 0.57 * N + OFF |
| static constexpr double | Z0 = 0.50 * N + OFF |
Definition at line 105 of file test_movingscene_advect_mpi.cpp.
Definition at line 109 of file test_movingscene_advect_mpi.cpp.
Referenced by main(), sphereScene(), and towStep().
Definition at line 112 of file test_movingscene_advect_mpi.cpp.
Referenced by main(), sphereScene(), and towStep().
|
static |
Definition at line 117 of file test_movingscene_advect_mpi.cpp.
References DIAM, X0(), Y0(), and Z0.
Referenced by configure().
Definition at line 139 of file test_movingscene_advect_mpi.cpp.
Referenced by configure(), main(), and towStep().
Definition at line 144 of file test_movingscene_advect_mpi.cpp.
References DIRX, DIRY, DT, envOn(), MU, RHO, peclet::flow::Solver< Grid >::setAdvection(), peclet::flow::Solver< Grid >::setAdvectionScheme(), peclet::flow::Solver< Grid >::setBodyForce(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setInstanceMotion(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressureLevels(), peclet::flow::Solver< Grid >::setPressurePcg(), peclet::flow::Solver< Grid >::setRho(), peclet::flow::Solver< Grid >::setScene(), peclet::flow::Solver< Grid >::setSolidFromScene(), peclet::flow::Solver< Grid >::setVelocityIterations(), sphereScene(), and U.
Referenced by main().
Definition at line 166 of file test_movingscene_advect_mpi.cpp.
References DIRX, DIRY, DT, envOn(), peclet::flow::Solver< Grid >::rebuildGeometry(), peclet::flow::Solver< Grid >::setInstanceMotion(), peclet::flow::Solver< Grid >::setInstanceTransform(), peclet::flow::Solver< Grid >::step(), U, X0(), Y0(), and Z0.
Referenced by main().
|
static |
Definition at line 177 of file test_movingscene_advect_mpi.cpp.
Referenced by main().
|
static |
Definition at line 213 of file test_movingscene_advect_mpi.cpp.
Referenced by main().
Definition at line 219 of file test_movingscene_advect_mpi.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 226 of file test_movingscene_advect_mpi.cpp.
References configure(), DIAM, DIRX, DIRY, DT, envOn(), gatherGlobal(), peclet::flow::Solver< Grid >::getPressure(), peclet::flow::Solver< Grid >::getVelocity(), gShift(), peclet::flow::Solver< Grid >::hasMovingInstance(), peclet::flow::Solver< Grid >::hydroForceTorqueReaction(), maxAbs(), maxAbsDiff(), peclet::flow::Solver< Grid >::maxOpenDivergence(), MU, N, RE, STEPS, towStep(), U, X0(), and Y0().
|
staticconstexpr |
Definition at line 89 of file test_movingscene_advect_mpi.cpp.
Referenced by gatherGlobal(), and main().
|
static |
Definition at line 89 of file test_movingscene_advect_mpi.cpp.
Referenced by main().
Definition at line 90 of file test_movingscene_advect_mpi.cpp.
Referenced by gatherGlobal().
Definition at line 91 of file test_movingscene_advect_mpi.cpp.
Referenced by main(), and sphereScene().
Definition at line 92 of file test_movingscene_advect_mpi.cpp.
Referenced by sadv::adv_vel(), cadv::adv_vel(), peclet::flow::Colocated::advect(), peclet::flow::Staggered::advect(), sadv::advect(), cadv::advect(), peclet::flow::Colocated::advect_fou(), peclet::flow::Staggered::advect_fou(), sadv::advect_fou(), cadv::advect_fou(), peclet::flow::Colocated::advect_sou(), peclet::flow::Staggered::advect_sou(), sadv::advect_sou(), cadv::advect_sou(), peclet::flow::buildAdvCoarse(), peclet::flow::Solver< Grid >::buildAdvStencil(), peclet::flow::Solver< Grid >::buildAdvStencilVar(), peclet::flow::FlowReference::buildRhs(), peclet::flow::Solver< Grid >::buildRhs(), peclet::flow::Solver< Grid >::buildRhsColoVar(), peclet::flow::Solver< Grid >::buildRhsForced(), peclet::flow::Solver< Grid >::buildRhsVar(), peclet::flow::centerToFace(), peclet::flow::centerToFaceMassWeighted(), peclet::flow::centerToFaceWallAware(), peclet::flow::Solver< Grid >::computeDivAdv(), configure(), vof_capillary_references::drop_mode(), peclet::flow::embedDirichletGradient(), peclet::flow::embedViscousApply(), peclet::flow::Colocated::fou_operator(), peclet::flow::Staggered::fou_operator(), sadv::fou_operator(), cadv::fou_operator(), sadv::fou_operator_aniso(), peclet::flow::gpDivergDelta(), peclet::flow::Solver< Grid >::hydroForceTorque(), main(), peclet::flow::Solver< Grid >::pcBandDivergence(), peclet::flow::scalarBuildRhs(), towStep(), and peclet::flow::wallAwareFaceValue().
Definition at line 93 of file test_movingscene_advect_mpi.cpp.
Referenced by main().
Definition at line 94 of file test_movingscene_advect_mpi.cpp.
Referenced by configure(), and main().
Definition at line 95 of file test_movingscene_advect_mpi.cpp.
Referenced by configure().
Definition at line 96 of file test_movingscene_advect_mpi.cpp.
Referenced by configure(), main(), and towStep().
Definition at line 97 of file test_movingscene_advect_mpi.cpp.
Definition at line 99 of file test_movingscene_advect_mpi.cpp.
Referenced by configure(), main(), and towStep().
Definition at line 99 of file test_movingscene_advect_mpi.cpp.
Referenced by configure(), main(), and towStep().
Definition at line 101 of file test_movingscene_advect_mpi.cpp.
Referenced by X0().
Definition at line 101 of file test_movingscene_advect_mpi.cpp.
Referenced by Y0().
Definition at line 101 of file test_movingscene_advect_mpi.cpp.
Referenced by sphereScene(), and towStep().