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

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 std::vector< double > packingSdf (int ox, int oy, int oz, int lnx, int lny, int lnz)
 
static double envd (const char *k, double dflt)
 
static void configurePacking (IbmSolver &s, int ox, int oy, int oz, int lnx, int lny, int lnz, bool perturb=false)
 
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
 

Function Documentation

◆ gatherGlobal()

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

Definition at line 53 of file probe_vof_packing.cpp.

References GCELLS, NX, and NY.

Referenced by main().

◆ packingSdf()

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

Definition at line 90 of file probe_vof_packing.cpp.

References NZ.

Referenced by configurePacking().

◆ envd()

static double envd ( const char *  k,
double  dflt 
)
static

Definition at line 110 of file probe_vof_packing.cpp.

Referenced by configurePacking(), and main().

◆ configurePacking()

◆ main()

Variable Documentation

◆ NX

constexpr int NX = 16
staticconstexpr

Definition at line 50 of file probe_vof_packing.cpp.

Referenced by configurePacking(), gateSolverMetric(), gatherGlobal(), and main().

◆ NY

constexpr int NY = 16
static

Definition at line 50 of file probe_vof_packing.cpp.

Referenced by configurePacking(), gateSolverMetric(), gatherGlobal(), and main().

◆ NZ

constexpr int NZ = 32
static

Definition at line 50 of file probe_vof_packing.cpp.

Referenced by configurePacking(), gateSolverMetric(), main(), and packingSdf().

◆ GCELLS

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

Definition at line 51 of file probe_vof_packing.cpp.

Referenced by gatherGlobal(), and main().