|
Saddle-Point
|
Vector-valued manufactured solution used by the saddle-point program. More...


Public Member Functions | |
| Solution () | |
Construct a Solution with n_equations components. | |
| virtual void | vector_value (const Point< dim > &p, Vector< double > &values) const override |
| Evaluate the manufactured solution at a single point. | |
| virtual void | vector_gradient (const Point< dim > &p, std::vector< Tensor< 1, dim, double > > &gradients) const override |
| Evaluate the gradient of every component at a single point. | |
Vector-valued manufactured solution used by the saddle-point program.
The Solution class provides a closed-form expression for both components \((p,u)\) of the manufactured solution that the numerical scheme is supposed to recover. It is used in three different places inside the program:
.vtu file for visual comparison.The currently active test case (test case 2) sets
Test cases 1 and 3 (using sine functions) are present in the source but commented out; see the inline source.
| dim | Spatial dimension (assumed to be 2 in the manufactured expressions). |
| n_equations | Number of components in the vector solution (set to 2 from the outside). |
|
inline |
Construct a Solution with n_equations components.
Forwards n_equations to the base-class constructor so that Function<dim>::n_components returns the correct value.
|
overridevirtual |
Evaluate the gradient of every component at a single point.
Writes one Tensor<1,dim> per component into gradients.
| [in] | p | Point at which the gradients are evaluated. |
| [out] | gradients | Vector that is first resized to n_equations and then filled with the gradient of each component. |
|
overridevirtual |
Evaluate the manufactured solution at a single point.
Writes the vector value \((p(x,y), u(x,y))\) into values.
| [in] | p | Point at which the manufactured solution is evaluated. |
| [out] | values | Vector of length n_equations that will hold the component values on exit. |