Loading...
Searching...
No Matches
diffusion_tensor_exact.icc
Go to the documentation of this file.
struct sigma_exact {
tensor operator() (const point& x) const {
Float pi = acos(Float(-1.0));
tensor s;
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;
}
sigma_exact ()
{}
};
struct chi {
tensor operator() (const point& x) const {
Float pi = acos(Float(-1.0));
tensor 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;
}
chi () {}
};
typedef sigma_exact sigma_g;
Float
see the Float page for the full documentation
point
see the point page for the full documentation
tensor
see the tensor page for the full documentation
sigma_g
sigma_exact sigma_g
Definition diffusion_tensor_exact.icc:50
chi::operator()
tensor operator()(const point &x) const
Definition diffusion_tensor_exact.icc:39
chi::chi
chi()
Definition diffusion_tensor_exact.icc:48
sigma_exact
Definition diffusion_tensor_exact.icc:25
sigma_exact::sigma_exact
sigma_exact()
Definition diffusion_tensor_exact.icc:35
sigma_exact::operator()
tensor operator()(const point &x) const
Definition diffusion_tensor_exact.icc:26