Skip to content

[RomApp] ANN Enhanced ROMs for coupled fluid-thermal and thermo-mechanical solvers. - #14842

Merged
Rbravo555 merged 10 commits into
masterfrom
rom/coupled_ann_enhanced_rom
Oct 13, 2026
Merged

Rbravo555 merged 10 commits into
masterfrom
rom/coupled_ann_enhanced_rom

Conversation

@Rbravo555

@Rbravo555 Rbravo555 commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

📝 Description

Adds support for ANN-enhanced ROMs in coupled problems (fluid-thermal and thermo-mechanical).

Each coupled solver gets its own ROM basis and its own network, so the RomManager computes one SVD and trains one network per solver. This applies only to "type_of_decoder": "ann_enhanced"; coupled problems with a linear decoder keep the single monolithic basis.

The input follows the coupled_solvers layout already in master. With ANN-enhanced decoders, each coupled solver must declare its own nodal_unknowns in its ROM settings, and an error is raised if two solvers share an unknown:

"coupled_solvers": [
    {"sub_solver_name": "fluid_solver"},
    {"sub_solver_name": "thermal_solver",
     "ROM": {"model_part_name": "ThermalModelPart", "nodal_unknowns": ["TEMPERATURE"]}}
]

The basis is stored as a single RightBasisMatrix.npy, with the basis of each solver in the rows of its unknowns. The network files are prefixed with the solver name (fluid_solver_model_weights.npy, fluid_solver_SingularValues.npy, ...). The ann_enhanced_settings are shared by all the solvers.

The coupled ANN-enhanced ROM and HROM can also be run without the RomManager, as introduced in #14834.

🆕 Changelog

  • Added ANN-enhanced ROMs for coupled solvers, with one basis and one network per solver
  • Added HROM for coupled ANN-enhanced ROMs, with one set of weights per solver
  • Added tests for the fluid-thermal and thermo-mechanical cases

@Rbravo555 Rbravo555 self-assigned this Oct 7, 2026
@Rbravo555 Rbravo555 added the ROM label Oct 7, 2026
@Rbravo555 Rbravo555 changed the title Rom/coupled ann enhanced rom [RomApp] ANN Enhanced ROMs for coupled solvers. Oct 8, 2026
@Rbravo555 Rbravo555 changed the title [RomApp] ANN Enhanced ROMs for coupled solvers. [RomApp] ANN Enhanced ROMs for coupled fluid-thermal and thermo-mechanical solvers. Oct 8, 2026
@Rbravo555
Rbravo555 marked this pull request as ready for review October 8, 2026 14:18
@Rbravo555
Rbravo555 requested a review from a team as a code owner October 8, 2026 14:18
Marco1410
Marco1410 previously approved these changes Oct 8, 2026
@Rbravo555
Rbravo555 merged commit c54832f into master Oct 13, 2026
10 checks passed
@Rbravo555
Rbravo555 deleted the rom/coupled_ann_enhanced_rom branch October 13, 2026 10:36
loumalouomega pushed a commit to loumalouomega/Kratos that referenced this pull request Oct 27, 2026
…nical solvers. (KratosMultiphysics#14842)

* deprecate rom basis output process from rom manager

* rom_ann without rom manager for deployment and separate training of the NN

* adding export method for ann_enhanced

* working coupled ann_enhanced roms, no hrom

* hrom support for coupled simulations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants