Public Member Functions | |
StokesCosine (const double viscosity=1., const double reaction=0.) | |
void | set_parameters (const double viscosity, const double reaction) |
virtual | ~StokesCosine () |
virtual void | vector_values (const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const |
virtual void | vector_gradients (const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim > > > &gradients) const |
virtual void | vector_laplacians (const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const |
Private Attributes | |
double | viscosity |
The viscosity. | |
double | reaction |
The reaction parameter. |
The function in 2D is
Functions::StokesCosine< dim >::StokesCosine | ( | const double | viscosity = 1. , |
|
const double | reaction = 0. | |||
) |
Constructor setting the Reynolds number required for pressure computation and scaling of the right hand side.
virtual Functions::StokesCosine< dim >::~StokesCosine | ( | ) | [virtual] |
void Functions::StokesCosine< dim >::set_parameters | ( | const double | viscosity, | |
const double | reaction | |||
) |
Change the viscosity and the reaction parameter.
virtual void Functions::StokesCosine< dim >::vector_values | ( | const std::vector< Point< dim > > & | points, | |
std::vector< std::vector< double > > & | values | |||
) | const [virtual] |
Values in a structure more suitable for vector valued functions. The outer vector is indexed by solution component, the inner by quadrature point.
Implements Functions::FlowFunction< dim >.
virtual void Functions::StokesCosine< dim >::vector_gradients | ( | const std::vector< Point< dim > > & | points, | |
std::vector< std::vector< Tensor< 1, dim > > > & | gradients | |||
) | const [virtual] |
Gradients in a structure more suitable for vector valued functions. The outer vector is indexed by solution component, the inner by quadrature point.
Implements Functions::FlowFunction< dim >.
virtual void Functions::StokesCosine< dim >::vector_laplacians | ( | const std::vector< Point< dim > > & | points, | |
std::vector< std::vector< double > > & | values | |||
) | const [virtual] |
Force terms in a structure more suitable for vector valued functions. The outer vector is indexed by solution component, the inner by quadrature point.
Implements Functions::FlowFunction< dim >.
double Functions::StokesCosine< dim >::viscosity [private] |
The viscosity.
double Functions::StokesCosine< dim >::reaction [private] |
The reaction parameter.