13 OutPut(
"Example: SinCos1.h" << endl);
17 void Exact(
double x,
double y,
double *values)
23 values[0] = sin(t*t)*cos(x*y*y);
24 values[1] = -sin(t*t)*sin(x*y*y)*y*y;
25 values[2] = -sin(t*t)*sin(x*y*y)*2*x*y;
30 void BoundCondition(
int BdComp,
double t, BoundCond &cond)
39 void BoundValue(
int BdComp,
double Param,
double &value)
46 case 0: value = sin(t*t);
48 case 1: value = sin(t*t)*cos(Param*Param);
50 case 2: value = sin(t*t)*cos(1-Param);
52 case 3: value = sin(t*t);
58 void InitialCondition(
double x,
double y,
double *values)
64 values[0] = sin(t*t)*cos(x*y*y);
67 void BilinearCoeffs(
int n_points,
double *X,
double *Y,
68 double **parameters,
double **coeffs)
71 double b1=2., b2=-1., c=1.;
73 double *coeff, *param;
81 for(i=0;i<n_points;i++)
84 param = parameters[i];
94 coeff[4] = cos(t*t)*2*t*cos(x*y*y)
95 - eps* sin(t*t)*(-cos(x*y*y)*(y*y*y*y+4*x*x*y*y) - sin(x*y*y)*2*x)
96 - b1*sin(t*t)*sin(x*y*y)*y*y - b2*sin(t*t)*sin(x*y*y)*2*x*y
97 + c*sin(t*t)*cos(x*y*y);
99 coeff[5] = cos(tau*tau)*2*tau*cos(x*y*y)
100 - eps* sin(tau*tau)*(-cos(x*y*y)*(y*y*y*y+4*x*x*y*y) - sin(x*y*y)*2*x)
101 - b1*sin(tau*tau)*sin(x*y*y)*y*y - b2*sin(tau*tau)*sin(x*y*y)*2*x*y
102 + c*sin(tau*tau)*cos(x*y*y);
static TTimeDB * TimeDB
Definition: Database.h:1137
static TParamDB * ParamDB
Definition: Database.h:1134