1#ifndef EXASEIS_SCENARIOSINUSODIAL_HEADER
2#define EXASEIS_SCENARIOSINUSODIAL_HEADER
6template <
class Shortcuts,
int basisSize>
30 Q[s.cp ] = 3.464101615;
32#error Whole space problem only defined for Isotropic Simulations
45 const double*
const x,
const double t,
const double dt,
46 double* forceVector,
int n){
48 assertion2(n == 0,
"Only a single pointSource for Sinusodial",n);
50 constexpr double t0 = 0.2;
51 constexpr double f0 = 10.0;
52 constexpr double M0 = 1000.0;
53 double pi = 2*std::acos(0.0);
54 double alpha = -pi*pi*f0*f0;
59 double f = std::exp(alpha*(t-t0)*(t-t0)) * 2 * alpha *(t-t0);
62 forceVector[s.sigma + 0] = f;
63 forceVector[s.sigma + 1] = f;
64 forceVector[s.sigma + 2] = f;
#define assertion2(expr, param0, param1)
Sinusodial(DomainInformation *info)
double m_pointSourceLocation[3]
void setPointSourceVector(const double *const Q, const double *const x, const double t, const double dt, double *forceVector, int n)
void initUnknownsPointwise(const double *const x, const tarch::la::Vector< Dimensions, double > ¢er, const double t, const double dt, double *Q)
void initPointSourceLocation(double pointSourceLocation[][3])