1#ifndef EXASEIS_GAUSSIANWAVE_HEADER
2#define EXASEIS_GAUSSIANWAVE_HEADER
6template <
class Variables,
int basisSize>
19 double center_curve[3];
21 center_curve[0] = 15.0;
22 center_curve[1] = 15.0;
23 center_curve[2] = 15.0;
36 Q[ s.v + 0 ] = std::exp(-((x[0]-center_curve[0])*(x[0]-center_curve[0])+
37 (x[1]-center_curve[1])*(x[1]-center_curve[1])+
38 (x[2]-center_curve[2])*(x[2]-center_curve[2]))/radius) * radius;
39 Q[ s.v + 1 ] = Q[ s.v + 0 ];
40 Q[ s.v + 2 ] = Q[ s.v + 1 ];
43 for(
int i= 0 ; i < 6 ; i++){
44 Q[ s.sigma + i ] = 0.0;
50 assertion1(
false,
"No pointsource for a Gaussian Wave");
54 const double*
const x,
const double t,
const double dt,
55 double* forceVector,
int n){
56 assertion1(
false,
"No pointsource for a Gaussian Wave");
#define assertion1(expr, param)
virtual void setPointSourceVector(const double *const Q, const double *const x, const double t, const double dt, double *forceVector, int n)
virtual void initUnknownsPointwise(const double *const x, const tarch::la::Vector< Dimensions, double > ¢er, const double t, const double dt, double *Q)
virtual void initPointSourceLocation(double pointSourceLocation[][3])
GaussianWave(DomainInformation *info)