The tensorial diffusion benchmark – right-hand-side and exact solution.
The tensorial diffusion benchmark – right-hand-side and exact solution
s(0,0) = cos(pi * x[0]);
s(1,1) = cos(pi * x[1]);
s(0,1) =
s(1,0) = sin(pi * x[0] * x[1]);
return s;
}
{}
};
s(0,0) = (1 + sqr(pi)) * cos(pi * x[0]);
s(1,1) = (1 + sqr(pi)) * cos(pi * x[1]);
s(0,1) =
s(1,0) = (1 + sqr(pi) * (sqr(x[0]) + sqr(x[1]))) * sin(pi * x[0] * x[1]);
return s;
}
};
see the Float page for the full documentation
see the point page for the full documentation
see the tensor page for the full documentation
tensor operator()(const point &x) const
tensor operator()(const point &x) const