The stress tensor for the linear elasticity and Stokes problems.
The stress tensor for the linear elasticity and Stokes problems
int main(
int argc,
char** argv) {
const geo& omega = uh.get_geo();
const space& Xh = uh.get_space();
string grad_approx = "P" + to_string(Xh.degree()-1) + "d";
space Th (omega, grad_approx,
"tensor");
size_t d = omega.dimension();
if (inv_lambda == 0)
sigma_h = lazy_interpolate (Th, 2*D(uh));
else sigma_h = lazy_interpolate (Th, 2*D(uh) + (1/inv_lambda)*div(uh)*I);
}
see the Float page for the full documentation
see the field page for the full documentation
see the geo page for the full documentation
see the catchmark page for the full documentation
see the environment page for the full documentation
see the space page for the full documentation
see the tensor page for the full documentation
This file is part of Rheolef.
rheolef - reference manual