#include <smatrix.hh>
Public Member Functions | |
SMatrix1D (const ShapeFunction1D< Real > &small, const ShapeFunction1D< Real > &left, const ShapeFunction1D< Real > &right) | |
SMatrix1D (const SMatrix1D &s, const bool flip=false) | |
virtual void | operator() (const TColumn< Real > &src, TColumn< Real > &dest) const |
Application operator. | |
void | scale (const Real factor) |
scales the S Matrix by a factor, used for edge elements | |
virtual uint | size () const |
Returns the size of the S matrix. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
One dimensional S matrix.
By default, the application operator of this class uses the S matrix of the left subelement. If you want to used the S matrix of the right subelement, create a new S matrix with the modified copy constructor:
SMatrix1D left(...); SMatrix1D right(left, true);
The new object right
uses the data stored in left
.
Definition at line 79 of file smatrix.hh.
concepts::SMatrix1D::SMatrix1D | ( | const ShapeFunction1D< Real > & | small, |
const ShapeFunction1D< Real > & | left, | ||
const ShapeFunction1D< Real > & | right | ||
) |
Constructor.
The parameters are the shape functions of which the S matrix has to be computed. The shape functions have to be evaluated in the same mapped coordinates. Ie. small
in -1, 0 and 1, left
in -1, -0.5 and 0 and right
in 0, 0.5 and 1. They have to be evaluated in the at least as many points as there are shape functions.
small | The shape functions of one of the small elements. |
left | The shape functions of the large element, restricted to the left subelement. |
right | The shape functions of the large element, restricted to the right subelement. |
Modified copy constructor.
This constructor can also be used to create an S matrix for the right subelement, see the description of the class for an example.
s | S matrix to be copied (or the S matrix for the left subelement). |
flip | By default set to false (ie. work as a copy constructor), if set to true, this creates an S matrix for the right subelement. |
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::SMatrixBase< Real >.
|
virtual |
Application operator.
Implements concepts::SMatrixBase< Real >.
Returns the size of the S matrix.
Implements concepts::SMatrixBase< Real >.