10 OutPut(
"Example: amc.h" << endl);
17 void Exact(
double x,
double y,
double z,
double *values)
22 values[0] = (exp(-k*t))*sin(Pi*x)*cos(Pi*y)*cos(Pi*z);
23 values[1] = Pi*(exp(-k*t))*cos(Pi*x)*cos(Pi*y)*cos(Pi*z);
24 values[2] = -Pi*(exp(-k*t))*sin(Pi*x)*sin(Pi*y)*cos(Pi*z);
25 values[3] = -Pi*(exp(-k*t))*sin(Pi*x)*cos(Pi*y)*sin(Pi*z);
26 values[4] = -3.*Pi*Pi*(exp(-k*t))*sin(Pi*x)*cos(Pi*y)*cos(Pi*z);
30 void InitialCondition(
double x,
double y,
double z,
double *values)
35 values[0] = (exp(-k*t))*sin(Pi*x)*cos(Pi*y)*cos(Pi*z);
42 void BoundCondition(
double x,
double y,
double z, BoundCond &cond)
48 void BoundValue(
double x,
double y,
double z,
double &value)
53 value = (exp(-k*t))*sin(Pi*x)*cos(Pi*y)*cos(Pi*z);
59 void BilinearCoeffs(
int n_points,
double *X,
double *Y,
double *Z,
60 double **parameters,
double **coeffs)
66 double x, y, z, c, a[3], b[3], s[3], h;
74 for(i=0;i<n_points;i++)
94 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