Skip to content

[FluidDynamicsApp][Adjoints] Fluid Adjoints Revamping - #14679

Open
talhah-ansari wants to merge 1 commit into
masterfrom
fluid/adjoint_revamp
Open

[FluidDynamicsApp][Adjoints] Fluid Adjoints Revamping#14679
talhah-ansari wants to merge 1 commit into
masterfrom
fluid/adjoint_revamp

Conversation

@talhah-ansari

Copy link
Copy Markdown
Contributor

📝 Description

This PR revamps the fluid elements adjoints developed by @sunethwarna.
The changes focus on cleaning up documentation, improving type safety, correcting naming, and adding missing implementation files. Additionally, the CalculationContainerTraits class is renamed for clarity, and the implementation for QSVMSAdjointElementData is now provided.

This PR is a prerequisite for the next RANSApp adjoints PR.

🆕 Changelog

  • Renamed CalculationContainerTraits to CalculationDataContainers for clarity and updated all relevant usages.
  • Replaced std::tuple_size_v<T> with the more portable std::tuple_size<T>::value in a static assertion.
  • Fixed a typo in error messages from rOutput to rOuput for consistency.
  • Added missing header guards to fluid_adjoint_derivatives.h and qs_vms_adjoint_element_data.h.
  • Added a new implementation file qs_vms_adjoint_element_data.cpp providing definitions for static methods in QSVMSAdjointElementData, including Check, GetDofVariablesList, and GetIntegrationMethod, as well as template instantiations for supported dimensions and node counts.
  • Moved static helper methods (Check, GetDofVariablesList, GetIntegrationMethod) directly into the QSVMSAdjointElementData class, clarifying their usage and encapsulation.

All developments are done by Suneth Warnakulasuriya. Thanks @sunethwarna for this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants