13 OutPut(
"Example: Sin3.h" << endl);
16 void Exact(
double x,
double y,
double *values)
22 values[0] = sin(t)*(sin(2*Pi*x)*sin(2*Pi*y)+1);
23 values[1] = sin(t)*2*Pi*cos(2*Pi*x)*sin(2*Pi*y);
24 values[2] = sin(t)*2*Pi*sin(2*Pi*x)*cos(2*Pi*y);
29 void BoundCondition(
int BdComp,
double t, BoundCond &cond)
38 void BoundValue(
int BdComp,
double Param,
double &value)
47 void InitialCondition(
double x,
double y,
double *values)
53 values[0] = sin(t)*(sin(2*Pi*x)*sin(2*Pi*y)+1);
57 void BilinearCoeffs(
int n_points,
double *X,
double *Y,
58 double **parameters,
double **coeffs)
61 double b1=1, b2=2, c=1;
63 double *coeff, *param;
67 for(i=0;i<n_points;i++)
70 param = parameters[i];
80 coeff[4] = cos(t)*(sin(2*Pi*x)*sin(2*Pi*y)+1)
81 - eps * sin(t)*4*Pi*Pi*(-sin(2*Pi*x)*sin(2*Pi*y)-sin(2*Pi*x)*sin(2*Pi*y))
82 + b1 * sin(t)*2*Pi*cos(2*Pi*x)*sin(2*Pi*y)
83 + b2 * sin(t)*2*Pi*sin(2*Pi*x)*cos(2*Pi*y)
84 + c * sin(t)*(sin(2*Pi*x)*sin(2*Pi*y)+1);
static TTimeDB * TimeDB
Definition: Database.h:1137
static TParamDB * ParamDB
Definition: Database.h:1134