flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_ghost_projection_mpi.cpp File Reference
#include <mpi.h>
#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"

Go to the source code of this file.

Typedefs

using Stag = peclet::flow::IbmSolver
using Colo = peclet::flow::Solver<peclet::flow::Colocated>

Functions

static std::vector< double > packingSdf (double rfrac)
template<class S>
static void configure (S &s, const std::vector< double > &lsdf, int matrixOrder, int rhsOrder)
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)
template<class S>
static int runCase (const char *name, double rfrac, int mo, int ro, int rank, int size)
int main (int argc, char **argv)

Variables

static constexpr int N = 32
static constexpr int STEPS = 15
static constexpr double RHO = 1.0
static constexpr double MU = 0.1
static constexpr double F = 1e-3
static constexpr double DT = 20.0

Typedef Documentation

◆ Stag

Definition at line 37 of file test_ghost_projection_mpi.cpp.

◆ Colo

Function Documentation

◆ packingSdf()

std::vector< double > packingSdf ( double rfrac)
static

Definition at line 44 of file test_ghost_projection_mpi.cpp.

References N, R, and wrap().

Referenced by runCase().

◆ configure()

template<class S>
void configure ( S & s,
const std::vector< double > & lsdf,
int matrixOrder,
int rhsOrder )
static

Definition at line 65 of file test_ghost_projection_mpi.cpp.

References DT, F, MU, and RHO.

Referenced by runCase().

◆ 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

Definition at line 79 of file test_ghost_projection_mpi.cpp.

References N.

Referenced by runCase().

◆ relErr()

double relErr ( const std::vector< double > & a,
const std::vector< double > & b )
static

Definition at line 115 of file test_ghost_projection_mpi.cpp.

References N.

Referenced by runCase().

◆ runCase()

template<class S>
int runCase ( const char * name,
double rfrac,
int mo,
int ro,
int rank,
int size )
static

Definition at line 133 of file test_ghost_projection_mpi.cpp.

References configure(), gatherGlobal(), N, packingSdf(), relErr(), and STEPS.

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

Definition at line 179 of file test_ghost_projection_mpi.cpp.

References runCase().

Variable Documentation

◆ N

int N = 32
staticconstexpr

Definition at line 40 of file test_ghost_projection_mpi.cpp.

◆ STEPS

int STEPS = 15
static

Definition at line 40 of file test_ghost_projection_mpi.cpp.

◆ RHO

◆ MU

◆ F

double F = 1e-3
static

Definition at line 41 of file test_ghost_projection_mpi.cpp.

Referenced by test_collocated_stability_guard.Path::_build(), peclet::flow::Colocated::advect(), peclet::flow::Staggered::advect(), peclet::flow::Colocated::advect_fou(), peclet::flow::Staggered::advect_fou(), peclet::flow::Colocated::advect_sou(), peclet::flow::Staggered::advect_sou(), peclet::flow::sco::advectionBands(), peclet::flow::sco::advectionResidual(), test_balanced_force_restart::build(), peclet::flow::buildGpOverlay(), peclet::flow::ccFor3(), peclet::flow::ccForRows3(), peclet::flow::ccReduce3(), peclet::flow::ccReduce3Lanes(), peclet::flow::ccdetail::ccRows3(), peclet::flow::ccSampleExt(), peclet::flow::coarsenOpenAvgCell(), configure(), configure(), configure(), configure(), configure(), configure(), configure(), peclet::flow::vof::VofBlockSet::debrisBatched(), vofscene::forEachExtended(), peclet::flow::vof::SharpGeom::forEachOwner(), test_collocated_stability_guard::g2(), peclet::flow::Solver< Grid >::hydroForceTorque(), peclet::flow::Solver< Grid >::hydroForceTorqueReaction(), peclet::flow::ccdetail::laneRow(), gsv1::layered_fractions(), main(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxes(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxesCapped(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxesCut(), peclet::flow::vof::MomentumConsistentAdvector::momentumFluxesCutCapped(), perm(), refusesMomentumBlocks(), test_collocated_stability_guard::restore(), test_balanced_force_restart::run(), peclet::flow::skr::scalarKernel(), test_collocated_stability_guard.Path::step(), peclet::flow::BottomKernel< FacReal >::teamMax(), peclet::flow::BottomKernel< FacReal >::teamSum(), peclet::flow::vof::WyAdvector::timedExchange(), peclet::flow::trilerp(), peclet::flow::vof::vofBatchDebrisSums(), peclet::flow::vof::vofBatchDebrisWrite(), peclet::flow::vof::vofDebrisActCount(), peclet::flow::vof::vofDebrisActEntry(), peclet::flow::vof::vofHostListFor(), peclet::flow::vof::vofHostRowFor(), peclet::flow::vof::vofSetOffsets(), and peclet::flow::vof::vofSetOffsets().

◆ DT

double DT = 20.0
static

Definition at line 41 of file test_ghost_projection_mpi.cpp.