#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.
|
| 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) |
|
| 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 |
◆ IbmSolver
◆ gShift()
◆ X0()
◆ Y0()
◆ sphereScene()
| void sphereScene |
( |
std::vector< int > & | ni, |
|
|
std::vector< double > & | nr, |
|
|
std::vector< int > & | ii, |
|
|
std::vector< double > & | ir ) |
|
static |
◆ envOn()
| bool envOn |
( |
const char * | k | ) |
|
|
static |
◆ configure()
◆ towStep()
◆ gatherGlobal()
| 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 |
◆ maxAbsDiff()
| double maxAbsDiff |
( |
const std::vector< double > & | a, |
|
|
const std::vector< double > & | b ) |
|
static |
◆ maxAbs()
| double maxAbs |
( |
const std::vector< double > & | a | ) |
|
|
static |
◆ 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().
◆ STEPS
◆ GCELLS
| std::size_t GCELLS = (std::size_t)N * N * N |
|
staticconstexpr |
◆ DIAM
Definition at line 92 of file test_movingscene_advect_mpi.cpp.
Referenced by cadv::adv_vel(), sadv::adv_vel(), cadv::advect(), peclet::flow::Colocated::advect(), peclet::flow::Staggered::advect(), sadv::advect(), cadv::advect_fou(), peclet::flow::Colocated::advect_fou(), peclet::flow::Staggered::advect_fou(), sadv::advect_fou(), cadv::advect_sou(), peclet::flow::Colocated::advect_sou(), peclet::flow::Staggered::advect_sou(), sadv::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(), cadv::fou_operator(), peclet::flow::Colocated::fou_operator(), peclet::flow::Staggered::fou_operator(), sadv::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().
◆ RE
◆ MU
◆ RHO
◆ DT
◆ OFF
◆ DIRX
◆ DIRY
◆ X0C
| double X0C = 0.60 * N + OFF |
|
staticconstexpr |
◆ Y0C
| double Y0C = 0.57 * N + OFF |
|
static |
◆ Z0
| double Z0 = 0.50 * N + OFF |
|
static |