Skip to content

Add the adaptive metric tutorials for built-in and custom sensors - #89

Open
bmunguia wants to merge 1 commit into
developfrom
feature_adaptive_metric
Open

bmunguia wants to merge 1 commit into
developfrom
feature_adaptive_metric

Conversation

@bmunguia

@bmunguia bmunguia commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Adds tutorials for the adaptive metric implemented in su2code/SU2#2613, in a new mesh_adaptation category:

  • Adaptive_Metric_Builtin_Sensors: inviscid transonic NACA0012 (QuickStart mesh), with metrics of the built-in PRESSURE and MACH sensors.
  • Adaptive_Metric_Custom_Sensor: RANS NACA0012 on the same mesh, with a custom total pressure sensor defined in Python (metric.py, CustomSensorRegistry) next to the built-in MACH sensor. The RANS case intentionally starts from the inviscid mesh, as the starting point of an adaptation.
  • size_ellipses_2d.py (shared): a ParaView Programmable Filter script that draws the requested cell sizes and directions of a metric as ellipses.

The configurations are the examples of su2code/SU2#2613.

The tutorial pages are in su2code/su2code.github.io#235.

Once this is merged, I can add both cases to TestCases/tutorials.py in SU2.

- New mesh_adaptation category with the inviscid NACA0012 case with built-in sensors (pressure, Mach) and the RANS NACA0012 case with a custom total pressure sensor through the Python wrapper, both on the QuickStart mesh
- Add size_ellipses_2d.py, a ParaView Programmable Filter script that draws the cell sizes and directions requested by an adaptive metric as ellipses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant