optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
115 stars 34 forks source link

New methods in POD object #439

Closed giacomo-zuccarino-optimad closed 2 months ago

giacomo-zuccarino-optimad commented 6 months ago

Several new methods for the POD class are introduced in this pull request. The introduction of the methods has two main goals. The first goal is to provide the user with funtionalities that were previously internal to the POD class and could not be called from the outside. The first is reading data.dat files, the second is writing POD modes and POD Fields to VTK files. Moreover, it is now possible to compute the POD without performing snapshot reconstruction at the end of the computation. The user can define its own reconstruction workflow using the methods introduced in the pull request. The second goal is to allow the user to perform some mathematical operations on the vector spaces generated by the POD modes. The first is the projection of field onto the POD space, the second is the construction of a fields as linear combination of the modes with given input coefficients. To concretely show the application and usefulness of the methods, we introduced two examples that calculate the POD on sets of airfoil simulations at different angles of attack.