flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_cutcellmg_aniso_mpi.cpp File Reference
#include <mpi.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <exception>
#include <Kokkos_Core.hpp>
#include <utility>
#include <vector>
#include "mac_cutcell.hpp"
#include "mac_cutcell_mg.hpp"
#include "peclet/core/common/types.hpp"

Go to the source code of this file.

Typedefs

using HostVec = decltype(Kokkos::create_mirror_view(std::declval<CCField>()))
using CCConst
using CCField

Functions

static double sdfAt (int gx, int gy, int gz, int nx, int ny, int nz, double dref)
static HostVec setupAndSolve (CutcellMG &mg, C3 ext, C3 og, int nx, int ny, int nz, bool collective, int *iters)
int main (int argc, char **argv)
void buildOpenness (CCField ox, CCField oy, CCField oz, CCConst sdf, C3 ext, double dx, double dy, double dz, int order=1)

Variables

static constexpr int G = 1
static constexpr int NLEV = 6
static constexpr int N = 32
static constexpr double LBOX = 1.0
static constexpr double RSPH = 0.3722

Typedef Documentation

◆ HostVec

using HostVec = decltype(Kokkos::create_mirror_view(std::declval<CCField>()))

Definition at line 59 of file test_cutcellmg_aniso_mpi.cpp.

◆ CCConst

Definition at line 27 of file mac_cutcell.hpp.

◆ CCField

Definition at line 26 of file mac_cutcell.hpp.

Function Documentation

◆ sdfAt()

double sdfAt ( int gx,
int gy,
int gz,
int nx,
int ny,
int nz,
double dref )
static

Definition at line 48 of file test_cutcellmg_aniso_mpi.cpp.

References LBOX, and RSPH.

Referenced by setupAndSolve().

◆ setupAndSolve()

◆ main()

◆ buildOpenness()

void peclet::flow::buildOpenness ( CCField ox,
CCField oy,
CCField oz,
CCConst sdf,
C3 ext,
double dx,
double dy,
double dz,
int order = 1 )
inline

Definition at line 215 of file mac_cutcell.hpp.

Referenced by setupAndSolve().

Variable Documentation

◆ G

int G = 1
staticconstexpr

Definition at line 43 of file test_cutcellmg_aniso_mpi.cpp.

◆ NLEV

int NLEV = 6
static

Definition at line 43 of file test_cutcellmg_aniso_mpi.cpp.

Referenced by main(), and mgChecks().

◆ N

int N = 32
staticconstexpr

Definition at line 44 of file test_cutcellmg_aniso_mpi.cpp.

◆ LBOX

double LBOX = 1.0
staticconstexpr

Definition at line 45 of file test_cutcellmg_aniso_mpi.cpp.

Referenced by sdfAt(), and setupAndSolve().

◆ RSPH

double RSPH = 0.3722
static

Definition at line 45 of file test_cutcellmg_aniso_mpi.cpp.

Referenced by sdfAt().