Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROM: Enabling Numpy Format for Including Phi into Psi #12177

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

SADPR
Copy link
Contributor

@SADPR SADPR commented Mar 13, 2024

Enabling Numpy Format for Including $\Phi$ into $\Psi$

Overview

This pull request introduces support for integrating the reduced order basis ($\Phi$) into the subspace of the left reduced order basis ($\Psi$) specifically when the basis format is numpy. This addition complements the existing functionality designed for JSON-formatted bases, enhancing our framework's adaptability to different data formats.

Additional Improvements

  • Typo Correction: Corrected a typo in rom_analysis.py, improving code clarity and readability.
  • Bug Fix in Defaults: Addressed a minor bug affecting default settings when the ROM manager is not utilized for training. This fix ensures more consistent behavior across various usage scenarios.

This update enhances our computational framework by enabling the inclusion of numpy-formatted reduced order bases (Phi) into Psi's subspace.

@SADPR SADPR added FastPR This Pr is simple and / or has been already tested and the revision should be fast ROM labels Mar 13, 2024
@SADPR SADPR requested a review from a team as a code owner March 13, 2024 13:15
N_nodes = len(galerkin_rom_parameters["nodal_modes"])
N_Dofs = int(N_Dof_per_node*N_nodes)
N_Dofs_rom = galerkin_rom_parameters["rom_settings"]["number_of_rom_dofs"]
u = np.zeros((N_Dofs,N_Dofs_rom))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np.empty ... anyhow you overwrite it

@Rbravo555 Rbravo555 merged commit bfbef23 into master Mar 15, 2024
15 of 16 checks passed
@Rbravo555 Rbravo555 deleted the ROM_PetrovGalerkin_Fix_IncludePhi branch March 15, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FastPR This Pr is simple and / or has been already tested and the revision should be fast ROM
Projects
Development

Successfully merging this pull request may close these issues.

5 participants