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

Classes

struct  Config

Typedefs

using IbmSolver

Enumerations

enum class  ClosureKind

Functions

static double colourAt (const Config &c, int x, int y, int z)
template<class Fn>
static std::vector< double > blockOf (Fn f, int ox, int oy, int oz, int lnx, int lny, int lnz)
static void configure (IbmSolver &s, const Config &c, int ox, int oy, int oz, int lnx, int lny, int lnz)
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 maxDiff (const std::vector< double > &a, const std::vector< double > &b)
static long countBitDiff (const std::vector< double > &a, const std::vector< double > &b, double &mx)
static double maxAbs (const std::vector< double > &v)
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 RHO_G = 1.0
static constexpr double RHO_L = 10.0
static constexpr double SIGMA = 1.0
static constexpr double MU = 0.05
static constexpr double RDROP = 5.0

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Enumeration Type Documentation

◆ ClosureKind

enum class peclet::flow::ClosureKind
strong

Definition at line 28 of file property_closures.hpp.

Function Documentation

◆ colourAt()

double colourAt ( const Config & c,
int x,
int y,
int z )
static

Definition at line 53 of file test_vof_surface_tension_mpi.cpp.

References NX, NY, NZ, and RDROP.

Referenced by configure().

◆ blockOf()

template<class Fn>
std::vector< double > blockOf ( Fn f,
int ox,
int oy,
int oz,
int lnx,
int lny,
int lnz )
static

Definition at line 73 of file test_vof_surface_tension_mpi.cpp.

Referenced by configure().

◆ configure()

void configure ( IbmSolver & s,
const Config & c,
int ox,
int oy,
int oz,
int lnx,
int lny,
int lnz )
static

Definition at line 83 of file test_vof_surface_tension_mpi.cpp.

References blockOf(), colourAt(), MU, RDROP, RHO_G, RHO_L, and SIGMA.

Referenced by main().

◆ 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 110 of file test_vof_surface_tension_mpi.cpp.

References GCELLS, NX, and NY.

Referenced by main().

◆ maxDiff()

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

Definition at line 146 of file test_vof_surface_tension_mpi.cpp.

Referenced by main().

◆ countBitDiff()

long countBitDiff ( const std::vector< double > & a,
const std::vector< double > & b,
double & mx )
static

Definition at line 152 of file test_vof_surface_tension_mpi.cpp.

Referenced by main().

◆ maxAbs()

double maxAbs ( const std::vector< double > & v)
static

Definition at line 162 of file test_vof_surface_tension_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ NX

int NX = 16
staticconstexpr

Definition at line 39 of file test_vof_surface_tension_mpi.cpp.

◆ NY

int NY = 16
static

Definition at line 39 of file test_vof_surface_tension_mpi.cpp.

◆ NZ

int NZ = 32
static

Definition at line 39 of file test_vof_surface_tension_mpi.cpp.

◆ GCELLS

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

Definition at line 40 of file test_vof_surface_tension_mpi.cpp.

◆ RHO_G

double RHO_G = 1.0
staticconstexpr

Definition at line 41 of file test_vof_surface_tension_mpi.cpp.

◆ RHO_L

double RHO_L = 10.0
static

Definition at line 41 of file test_vof_surface_tension_mpi.cpp.

◆ SIGMA

double SIGMA = 1.0
static

Definition at line 41 of file test_vof_surface_tension_mpi.cpp.

◆ MU

double MU = 0.05
static

Definition at line 41 of file test_vof_surface_tension_mpi.cpp.

◆ RDROP

double RDROP = 5.0
static

Definition at line 41 of file test_vof_surface_tension_mpi.cpp.

Referenced by colourAt(), and configure().