flow
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_graphamg_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.

Functions

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

Variables

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

Function Documentation

◆ packingSdf()

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

Definition at line 29 of file test_graphamg_mpi.cpp.

References N.

Referenced by main().

◆ configure()

static void configure ( IbmSolver &  s,
bool  amg 
)
static

Definition at line 49 of file test_graphamg_mpi.cpp.

References DT, F, MU, and RHO.

Referenced by main(), and perm().

◆ localSdf()

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

Definition at line 61 of file test_graphamg_mpi.cpp.

References N.

Referenced by perm().

◆ perm()

static double perm ( const std::vector< double > &  gsdf,
const BlockDecomposer< 3 > &  dec,
int  rank,
bool  amg,
MPI_Comm  comm 
)
static

Definition at line 75 of file test_graphamg_mpi.cpp.

References configure(), F, localSdf(), MU, N, and STEPS.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 92 of file test_graphamg_mpi.cpp.

References configure(), F, MU, N, packingSdf(), perm(), and STEPS.

Variable Documentation

◆ N

◆ STEPS

constexpr int STEPS = 100
static

Definition at line 26 of file test_graphamg_mpi.cpp.

Referenced by main(), and perm().

◆ RHO

constexpr double RHO = 1.0
staticconstexpr

Definition at line 27 of file test_graphamg_mpi.cpp.

Referenced by configure().

◆ MU

constexpr double MU = 0.1
static

Definition at line 27 of file test_graphamg_mpi.cpp.

Referenced by configure(), main(), and perm().

◆ F

◆ DT

constexpr double DT = 60.0
static

Definition at line 27 of file test_graphamg_mpi.cpp.

Referenced by configure().