MCPcopy Create free account
hub / github.com/IBAMR/IBAMR / cos_kernel

Function cos_kernel

src/IB/IBMethod.cpp:117–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115namespace
116{
117inline double
118cos_kernel(const double x, const double eps)
119{
120 if (std::abs(x) > eps)
121 {
122 return 0.0;
123 }
124 else
125 {
126 return 0.5 * (1.0 + std::cos(M_PI * x / eps)) / eps;
127 }
128} // cos_kernel
129
130// Version of IBMethod restart file data.
131static const int IB_METHOD_VERSION = 1;

Callers 2

spreadFluidSourceMethod · 0.85
interpolatePressureMethod · 0.85

Calls 2

absFunction · 0.50
cosFunction · 0.50

Tested by

no test coverage detected