flow
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_distributed_diffusion.cpp File Reference
#include <mpi.h>
#include <array>
#include <cmath>
#include <cstdio>
#include <Kokkos_Core.hpp>
#include <vector>
#include "mac_stencils.hpp"
#include "peclet/core/common/types.hpp"
#include "peclet/core/common/view.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"
#include "peclet/core/halo/grid_halo.hpp"
#include "peclet/core/halo/grid_halo_topology.hpp"

Go to the source code of this file.

Functions

static double source (int gx, int gy, int gz, IVec< kDim > gs)
 
static void periodicFill (SField f, I3 e)
 
int main (int argc, char **argv)
 

Variables

static constexpr int kDim = 3
 
static constexpr int G = 1
 
static constexpr double IDIAG = 1.0
 
static constexpr double BETA = 0.2
 
static constexpr double AC = IDIAG + 6.0 * BETA
 
static constexpr int SWEEPS = 60
 

Function Documentation

◆ source()

static double source ( int  gx,
int  gy,
int  gz,
IVec< kDim gs 
)
static

Definition at line 44 of file test_distributed_diffusion.cpp.

Referenced by main().

◆ periodicFill()

static void periodicFill ( SField  f,
I3  e 
)
static

Definition at line 50 of file test_distributed_diffusion.cpp.

References G, and N.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 73 of file test_distributed_diffusion.cpp.

References AC, BETA, G, periodicFill(), source(), SWEEPS, and peclet::flow::I3::x.

Variable Documentation

◆ kDim

constexpr int kDim = 3
staticconstexpr

Definition at line 38 of file test_distributed_diffusion.cpp.

◆ G

constexpr int G = 1
staticconstexpr

Definition at line 39 of file test_distributed_diffusion.cpp.

Referenced by main(), and periodicFill().

◆ IDIAG

constexpr double IDIAG = 1.0
staticconstexpr

Definition at line 40 of file test_distributed_diffusion.cpp.

◆ BETA

constexpr double BETA = 0.2
static

Definition at line 40 of file test_distributed_diffusion.cpp.

Referenced by main().

◆ AC

◆ SWEEPS

constexpr int SWEEPS = 60
staticconstexpr

Definition at line 41 of file test_distributed_diffusion.cpp.

Referenced by main().