Provide a simple RAII interface for linear lagrange solution variables. More...
#include <SolutionHandle.h>
Public Member Functions | |
| SolutionHandle (const MooseVariableFieldBase &variable) | |
| Number | operator() (const Node *node) const |
| Get a value from the solution vector. | |
| Number | interpolate (const Node *node_in, const Node *node_out, Real weight) const |
Get the value at the fraction weight of the way from node_in to node_out, two nodes of the same axial element, by linear interpolation between the values of the variable at the two nodes on that element. | |
| Number | old (const Node *node) const |
| Get a value from the old solution vector. | |
| void | set (const Node *node, Number val) |
| Set a value in the solution vector. | |
| Real | L2norm () const |
| void | close () |
Private Attributes | |
| MooseVariableFieldBase & | _var |
| NumericVector< Number > & | _soln |
| const NumericVector< Number > & | _soln_old |
Provide a simple RAII interface for linear lagrange solution variables.
Definition at line 22 of file SolutionHandle.h.
|
inline |
Definition at line 25 of file SolutionHandle.h.
|
inline |
Definition at line 71 of file SolutionHandle.h.
|
inline |
Get the value at the fraction weight of the way from node_in to node_out, two nodes of the same axial element, by linear interpolation between the values of the variable at the two nodes on that element.
This works for any variable type: an elemental variable has the same value at both nodes. Only valid on the processor that holds the solution.
Definition at line 80 of file SolutionHandle.h.
|
inline |
Definition at line 66 of file SolutionHandle.h.
|
inline |
Get a value from the old solution vector.
Definition at line 51 of file SolutionHandle.h.
|
inline |
Get a value from the solution vector.
Definition at line 35 of file SolutionHandle.h.
|
inline |
Set a value in the solution vector.
Definition at line 60 of file SolutionHandle.h.
|
private |
Definition at line 75 of file SolutionHandle.h.
Referenced by close(), interpolate(), L2norm(), operator()(), and set().
|
private |
Definition at line 76 of file SolutionHandle.h.
Referenced by old().
|
private |
Definition at line 74 of file SolutionHandle.h.
Referenced by interpolate(), L2norm(), old(), operator()(), and set().