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

Functions

static std::vector< double > packingSdf (double rfrac=0.18)
static void configure (IbmSolver &s)
static std::vector< double > localSdf (const std::vector< double > &gsdf, const BlockDecomposer< 3 > &dec, int rank)
static double localUSum (IbmSolver &s)
int main (int argc, char **argv)

Variables

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

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Function Documentation

◆ packingSdf()

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

Definition at line 26 of file test_redistribute_mpi.cpp.

References N, R, and wrap().

Referenced by main().

◆ configure()

void configure ( IbmSolver & s)
static

Definition at line 46 of file test_redistribute_mpi.cpp.

References DT, F, MU, and RHO.

Referenced by main().

◆ localSdf()

std::vector< double > localSdf ( const std::vector< double > & gsdf,
const BlockDecomposer< 3 > & dec,
int rank )
static

Definition at line 61 of file test_redistribute_mpi.cpp.

References N.

Referenced by main().

◆ localUSum()

double localUSum ( IbmSolver & s)
static

Definition at line 75 of file test_redistribute_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ N

int N = 32
staticconstexpr

Definition at line 23 of file test_redistribute_mpi.cpp.

◆ STEPS

int STEPS = 120
static

Definition at line 23 of file test_redistribute_mpi.cpp.

◆ RHO

double RHO = 1.0
staticconstexpr

Definition at line 24 of file test_redistribute_mpi.cpp.

◆ MU

double MU = 0.1
static

Definition at line 24 of file test_redistribute_mpi.cpp.

◆ F

double F = 1e-3
static

Definition at line 24 of file test_redistribute_mpi.cpp.

◆ DT

double DT = 60.0
static

Definition at line 24 of file test_redistribute_mpi.cpp.