flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_vof_bc_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 Colo = peclet::flow::Solver<peclet::flow::Colocated>
using IbmSolver

Functions

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 signedSumDiff (const std::vector< double > &a, const std::vector< double > &b)
static long countNonFinite (const std::vector< double > &a)
static double sumOf (const std::vector< double > &a)
static void configureSlug (IbmSolver &s, int lnx, int lny, int lnz)
static void configureJet (IbmSolver &s, int lnx, int lny, int lnz)
static void configureColoJet (Colo &s, int oz, int lnx, int lny, int lnz)
static std::vector< double > packingSdf (int ox, int oy, int oz, int lnx, int lny, int lnz)
static void packingVelocity (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz)
static void configurePacking (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz)
int main (int argc, char **argv)

Variables

static constexpr int NX = 16
static constexpr int NY = 16
static constexpr int NZ = 32
static constexpr std::size_t GCELLS = (std::size_t)NX * NY * NZ
static constexpr double WIN = 1.0
static constexpr double DT = 0.2

Typedef Documentation

◆ Colo

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Function Documentation

◆ 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 66 of file test_vof_bc_mpi.cpp.

References GCELLS, NX, and NY.

Referenced by main().

◆ maxAbsDiff()

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

Definition at line 104 of file test_vof_bc_mpi.cpp.

Referenced by main().

◆ signedSumDiff()

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

Definition at line 118 of file test_vof_bc_mpi.cpp.

Referenced by main().

◆ countNonFinite()

long countNonFinite ( const std::vector< double > & a)
static

Definition at line 124 of file test_vof_bc_mpi.cpp.

Referenced by main().

◆ sumOf()

double sumOf ( const std::vector< double > & a)
static

Definition at line 131 of file test_vof_bc_mpi.cpp.

Referenced by main().

◆ configureSlug()

void configureSlug ( IbmSolver & s,
int lnx,
int lny,
int lnz )
static

Definition at line 139 of file test_vof_bc_mpi.cpp.

References DT, and WIN.

Referenced by main().

◆ configureJet()

void configureJet ( IbmSolver & s,
int lnx,
int lny,
int lnz )
static

Definition at line 157 of file test_vof_bc_mpi.cpp.

References peclet::flow::LinearMix.

Referenced by main().

◆ configureColoJet()

void configureColoJet ( Colo & s,
int oz,
int lnx,
int lny,
int lnz )
static

Definition at line 188 of file test_vof_bc_mpi.cpp.

References NZ.

Referenced by main().

◆ packingSdf()

std::vector< double > packingSdf ( int ox,
int oy,
int oz,
int lnx,
int lny,
int lnz )
static

Definition at line 217 of file test_vof_bc_mpi.cpp.

References NZ.

Referenced by configurePacking().

◆ packingVelocity()

void packingVelocity ( IbmSolver & s,
int ox,
int oy,
int oz,
int lnx,
int lny,
int lnz )
static

Definition at line 242 of file test_vof_bc_mpi.cpp.

References NX, NY, and NZ.

Referenced by main().

◆ configurePacking()

void configurePacking ( IbmSolver & s,
int ox,
int oy,
int oz,
int lnx,
int lny,
int lnz )
static

Definition at line 262 of file test_vof_bc_mpi.cpp.

References NZ, and packingSdf().

Referenced by main().

◆ main()

Variable Documentation

◆ NX

int NX = 16
staticconstexpr

Definition at line 61 of file test_vof_bc_mpi.cpp.

◆ NY

int NY = 16
static

Definition at line 61 of file test_vof_bc_mpi.cpp.

◆ NZ

int NZ = 32
static

Definition at line 61 of file test_vof_bc_mpi.cpp.

◆ GCELLS

std::size_t GCELLS = (std::size_t)NX * NY * NZ
staticconstexpr

Definition at line 62 of file test_vof_bc_mpi.cpp.

◆ WIN

double WIN = 1.0
staticconstexpr

Definition at line 63 of file test_vof_bc_mpi.cpp.

◆ DT

double DT = 0.2
staticconstexpr

Definition at line 64 of file test_vof_bc_mpi.cpp.