|
Peano
|
Kernel functions for SPH. More...
#include "cmath"#include "tarch/tarch.h"#include "peano4/utils/Globals.h"#include "tarch/compiler/CompilerSpecificSettings.h"

Go to the source code of this file.
Namespaces | |
| namespace | exaparty |
| This file is part of the ExaParty project. | |
| namespace | exaparty::kernels |
| namespace | exaparty::kernels::legacy |
| Legacy SPH implementation. | |
| namespace | exaparty::kernels::legacy::kernelHydro |
Macros | |
| #define | kernel_gamma_inv ((float)(1. / kernel_gamma)) |
| #define | kernel_gamma2 ((float)(kernel_gamma * kernel_gamma)) |
| #define | kernel_ivals_f ((float)(kernel_ivals)) |
| #define | kernel_root |
Functions | |
| static void | exaparty::kernels::legacy::kernelHydro::kernel_eval (double u, double &W) |
| Computes the kernel function. | |
| static void | exaparty::kernels::legacy::kernelHydro::kernel_deval (double u, double &W, double &dW_dx) |
| Computes the kernel function and its derivative. | |
Kernel functions for SPH.
Constants and kernel coefficients are taken from table 1 of Dehnen & Aly, MNRAS, 425, pp. 1062-1082 (2012).
This is a legacy file - kept as closely to the SWIFT original files as possible.
Definition in file kernel_hydro.h.
| #define kernel_gamma2 ((float)(kernel_gamma * kernel_gamma)) |
Definition at line 81 of file kernel_hydro.h.
| #define kernel_gamma_inv ((float)(1. / kernel_gamma)) |
Definition at line 80 of file kernel_hydro.h.
| #define kernel_ivals_f ((float)(kernel_ivals)) |
Definition at line 108 of file kernel_hydro.h.
| #define kernel_root |
Definition at line 111 of file kernel_hydro.h.