### Create a Matrix from vectorial solutions of a Solver and singular value decomposition

131

views

0

Hi all,

I'm Valerio and I'm using FEniCS fenics/2016.1.0 in C++.

For now I have a Solver that returns to me, as solution, a vector field

Thank you for you attention.

I'm Valerio and I'm using FEniCS fenics/2016.1.0 in C++.

For now I have a Solver that returns to me, as solution, a vector field

*u.*The vector field*u*is an object of the class Function. This solver has a parameter and my aim is to calculate several solution*u*varying this parameter. In this sceneario then I have the solutions:*u*I need to collect these solutions in a Matrix, each solution_{1}, u_{2}, u_{3}, ... u_{n}.*u*have to be the column_{x}*x*of the Matrix, and I need to do the singular value decomposition of this Matrix. I don't know what kind of class have to be the Matrix, how to build it starting from the solution*u*and what method I have to use for calculate the singular value decomposition._{x}Thank you for you attention.

Community: FEniCS Project

Please login to add an answer/comment or follow this question.