KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.02k stars 244 forks source link

[OptApp] Adding combined response function #12432

Closed sunethwarna closed 3 months ago

sunethwarna commented 3 months ago

📝 Description This PR adds CombinedResponseFunction which can be used to combine responses in a recursive manner.

🆕 Changelog

matekelemen commented 3 months ago

I think it'd make sense if you gave these response functions the same treatment as expressions. I.e.: overload the operators of ResponseFunction to yield a compound one.

sunethwarna commented 3 months ago

I think that is an overkill for compound responses. Even for averaging out multiple responses, we need to be very careful about the weighting. Another reason is, having an output mechanism for elements of the compound response will be much difficult

sunethwarna commented 3 months ago

@Igarizza I have added a descriptive error. Could you check?