Does an L2-projection from one discrete function space into another. The convenience functions makeProjectorPair or makeProjector can be used to create such a projection.
More...
#include <dumux/discretization/projection/projector.hh>
template<class ScalarType>
class Dumux::Projector< ScalarType >
Does an L2-projection from one discrete function space into another. The convenience functions makeProjectorPair or makeProjector can be used to create such a projection.
|
| Projector ()=delete |
| delete default constructor More...
|
|
| Projector (Matrix &&massMatrix, Matrix &&projectionMatrix) |
| Constructor. Receives the mass and projection matrix that define the linear system describing the L2-projection from a function space into another. More...
|
|
| Projector (Matrix &&massMatrix, Matrix &&projectionMatrix, std::vector< std::size_t > &&indexMap, std::size_t numDofsTarget) |
| Constructor for projection into a target space that occupies a larger geometric region than the domain space. In this case, the mass matrix can be chosen such that is is solved for only those dofs which will be populated with values from the projection. This requires an additional index map that maps the entries of the projected solution into the solution vector for the target space. Furthermore, the number of degrees of freedom must be specified to set up the coefficient vector with correct size for the target space. More...
|
|
template<class BlockType , std::enable_if_t< std::is_convertible< BlockType, ScalarType >::value, int > = 0> |
Dune::BlockVector< BlockType > | project (const Dune::BlockVector< BlockType > &u, const Params ¶ms=Params{}) const |
| Project a solution u into up. More...
|
|
template<class BlockType , std::enable_if_t<!std::is_convertible< BlockType, ScalarType >::value, int > = 0> |
Dune::BlockVector< BlockType > | project (const Dune::BlockVector< BlockType > &u, const Params ¶ms=Params{}) const |
| Project a solution u into up. More...
|
|
◆ Matrix
template<class ScalarType >
Export the type of the projection matrices.
◆ Scalar
template<class ScalarType >
◆ Projector() [1/3]
template<class ScalarType >
delete default constructor
◆ Projector() [2/3]
template<class ScalarType >
Constructor. Receives the mass and projection matrix that define the linear system describing the L2-projection from a function space into another.
◆ Projector() [3/3]
template<class ScalarType >
Dumux::Projector< ScalarType >::Projector |
( |
Matrix && |
massMatrix, |
|
|
Matrix && |
projectionMatrix, |
|
|
std::vector< std::size_t > && |
indexMap, |
|
|
std::size_t |
numDofsTarget |
|
) |
| |
|
inline |
Constructor for projection into a target space that occupies a larger geometric region than the domain space. In this case, the mass matrix can be chosen such that is is solved for only those dofs which will be populated with values from the projection. This requires an additional index map that maps the entries of the projected solution into the solution vector for the target space. Furthermore, the number of degrees of freedom must be specified to set up the coefficient vector with correct size for the target space.
◆ defaultParams()
template<class ScalarType >
Returns the default parameters.
◆ project() [1/2]
template<class ScalarType >
template<class BlockType , std::enable_if_t< std::is_convertible< BlockType, ScalarType >::value, int > = 0>
Dune::BlockVector< BlockType > Dumux::Projector< ScalarType >::project |
( |
const Dune::BlockVector< BlockType > & |
u, |
|
|
const Params & |
params = Params{} |
|
) |
| const |
|
inline |
Project a solution u into up.
- Parameters
-
u | The solution living on the domain space |
params | Optional parameters for mass matrix solve |
- Returns
- The projection of u into the target space
◆ project() [2/2]
template<class ScalarType >
template<class BlockType , std::enable_if_t<!std::is_convertible< BlockType, ScalarType >::value, int > = 0>
Dune::BlockVector< BlockType > Dumux::Projector< ScalarType >::project |
( |
const Dune::BlockVector< BlockType > & |
u, |
|
|
const Params & |
params = Params{} |
|
) |
| const |
|
inline |
Project a solution u into up.
- Parameters
-
u | The solution living on the domain space |
params | Optional parameters for mass matrix solve |
- Returns
- The projection of u into the target space
The documentation for this class was generated from the following file: