#include <mpi.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <Kokkos_Core.hpp>
#include <string>
#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.
|
| static std::vector< double > | packingSdf (double rfrac=0.18) |
| |
| static double | muAt (int x, int y, int) |
| |
| static double | rhoAt (int, int, int z) |
| |
| static double | epsAt (int, int, int z) |
| |
| static double | scalarAt (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, const std::vector< double > &lsdf, 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 | relErr (const std::vector< double > &a, const std::vector< double > &b) |
| |
| int | main (int argc, char **argv) |
| |
|
| static constexpr int | N = 32 |
| |
| static constexpr int | STEPS = 30 |
| |
| static constexpr double | RHO = 1.0 |
| |
| static constexpr double | MU = 0.1 |
| |
| static constexpr double | F = 1e-3 |
| |
| static constexpr double | DT = 20.0 |
| |
◆ packingSdf()
| static std::vector< double > packingSdf |
( |
double |
rfrac = 0.18 | ) |
|
|
static |
◆ muAt()
| static double muAt |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
|
|
) |
| |
|
static |
◆ rhoAt()
| static double rhoAt |
( |
int |
, |
|
|
int |
, |
|
|
int |
z |
|
) |
| |
|
static |
◆ epsAt()
| static double epsAt |
( |
int |
, |
|
|
int |
, |
|
|
int |
z |
|
) |
| |
|
static |
◆ scalarAt()
| static double scalarAt |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
|
static |
◆ blockOf()
template<class Fn >
| static std::vector< double > blockOf |
( |
Fn |
f, |
|
|
int |
ox, |
|
|
int |
oy, |
|
|
int |
oz, |
|
|
int |
lnx, |
|
|
int |
lny, |
|
|
int |
lnz |
|
) |
| |
|
static |
◆ configure()
| static void configure |
( |
IbmSolver & |
s, |
|
|
const Config & |
c, |
|
|
const std::vector< double > & |
lsdf, |
|
|
int |
ox, |
|
|
int |
oy, |
|
|
int |
oz, |
|
|
int |
lnx, |
|
|
int |
lny, |
|
|
int |
lnz |
|
) |
| |
|
static |
◆ 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 |
◆ relErr()
| static double relErr |
( |
const std::vector< double > & |
a, |
|
|
const std::vector< double > & |
b |
|
) |
| |
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ STEPS
◆ RHO
| constexpr double RHO = 1.0 |
|
staticconstexpr |
◆ MU
| constexpr double MU = 0.1 |
|
static |
| constexpr double F = 1e-3 |
|
static |
◆ DT
| constexpr double DT = 20.0 |
|
static |