[RomApplication] [Fast PR] Change the size allocation of phi_elemental and psi_elemental #12549
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This fast PR proposes to change the size allocation of phi_elemental and _psi_elemental from elem_dofs.size() to rhs_contribution.size().
This is because in transonic potential cases it is necessary to calculate the density at an upwind point for each element located in a supersonic region. Since the supersonic regions are not known a priori, and may vary during the calculation procedure, an upwind element is associated to each element mesh.
As a result, the finite element data structure needs to be enriched and here the elemental systems are extended (from number_of_degrees_of_freedom to number_of_degrees_of_freedom + 1) to contain additions to upwind nodes, only for those elements whose local mach number is greater than a certain critical_mach.
I think this is very specific for this case, but I don't think it will be a problem in a normal case and will broaden the use of the application.
🆕 Changelog