11 OutPut(
"Example: ConstTSmooth.h" << endl);
15 void Exact(
double x,
double y,
double z,
double *values)
17 double t, PI =3.14159265;
20 values[0] = (exp(-0.1*t))*sin(PI*x)*cos(PI*y)*cos(PI*z);
21 values[1] = PI*(exp(-0.1*t))*cos(PI*x)*cos(PI*y)*cos(PI*z);
22 values[2] = -PI*(exp(-0.1*t))*cos(PI*x)*sin(PI*y)*cos(PI*z);
23 values[3] = -PI*(exp(-0.1*t))*cos(PI*x)*cos(PI*y)*sin(PI*z);
24 values[4] = -3.*PI*PI*(exp(-0.1*t))*sin(PI*x)*cos(PI*y)*cos(PI*z); ;
28 void InitialCondition(
double x,
double y,
double z,
double *values)
30 double t, PI =3.14159265;
33 values[0] = (exp(-0.1*t))*sin(PI*x)*cos(PI*y)*cos(PI*z);
37 void BoundCondition(
double x,
double y,
double z, BoundCond &cond)
43 void BoundValue(
double x,
double y,
double z,
double &value)
45 double t, PI =3.14159265;
48 value = (exp(-0.1*t))*sin(PI*x)*cos(PI*y)*cos(PI*z);
51 void BilinearCoeffs(
int n_points,
double *X,
double *Y,
double *Z,
52 double **parameters,
double **coeffs)
56 double *coeff, PI =3.14159265;
57 double x, y, z, c, a[3], b[3], s[3], h;
72 for(i=0;i<n_points;i++)
91 coeff[5] = (3.*eps*PI*PI - 0.1)*(exp(-0.1*t))*sin(PI*x)*cos(PI*y)*cos(PI*z);
static TTimeDB * TimeDB
Definition: Database.h:1137
double RE_NR
Definition: Database.h:313
static TParamDB * ParamDB
Definition: Database.h:1134