Go to the source code of this file.
|
| template<typename TData > |
| TData | AvgAssmbScatrTestFn (const double cx, const double cy, const double cz, const unsigned int mode, const unsigned int comp) |
| | Input of the tests at a local coefficient: a function of the centroid of its element, which makes the field discontinuous across every element boundary, plus a function of the mode and the component.
|
| |
◆ TEST
| #define TEST |
( |
|
type, |
|
|
|
filename |
|
) |
| |
Value:
TESTDOUBLE(type, filename)
#define TESTFLOAT(type, filename)
Definition at line 250 of file TestAvgAssmbScatr.hpp.
◆ TESTDOUBLE
| #define TESTDOUBLE |
( |
|
type, |
|
|
|
filename |
|
) |
| |
◆ TESTFLOAT
| #define TESTFLOAT |
( |
|
type, |
|
|
|
filename |
|
) |
| |
◆ AvgAssmbScatrTestFn()
template<typename TData >
| TData AvgAssmbScatrTestFn |
( |
const double |
cx, |
|
|
const double |
cy, |
|
|
const double |
cz, |
|
|
const unsigned int |
mode, |
|
|
const unsigned int |
comp |
|
) |
| |
Input of the tests at a local coefficient: a function of the centroid of its element, which makes the field discontinuous across every element boundary, plus a function of the mode and the component.
Definition at line 54 of file TestAvgAssmbScatr.hpp.
56{
57 return static_cast<TData>(1.0 + std::sin(1.7 * cx + 0.3) +
58 std::cos(2.3 * cy) + 0.5 * cz +
59 0.25 * std::cos(1.1 * mode) + 0.1 * comp);
60}