JBAY Model in SU2 #2832
Unanswered
Aashna-chopra
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi, as suggested in the PR, this can be done entirely in python. Here is an example where a user defined source term is defined in python and added to the species solver. Better use that approach. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am trying to use the SU2 JBAY vortex generator model for a single triagnular vortex generator on a flat plate, but the simulation diverges. Has anyone here actually used and validated jBAY (PR #2273, maxi120 fork) before, for a single VG specifically? Or is anyone able to help me work through this? I've narrowed down part of the cause myself but want to check whether the remaining behavior is a known limitation or something I should keep digging into.
A bit of context on what I'm seeing, in case it's useful. The setup description:
The problem I have found so far:
Invalid edge-VG intersections- In 'CSourceBAYModel::UpdateSource', 'jDistance' is computed as 'pointDistance - iDistance', where iDistance comes from GeometryToolbox::LinePlaneIntersection. For some edges this came out negative or larger than pointDistance, i.e. the intersection point wasn't actually clamped to lie between the edge's two nodes. These edges fed directly into Get_redistributionConstant, where iDistance/jDistance appears as a ratio in the denominator. A negative/invalid value there can push the denominator through zero, producing an unbounded coefficient. Adding a validity guard in UpdateSource (reject the edge if iDistance <= 0 || jDistance <= 0 || iDistance > pointDistance || jDistance > pointDistance, before it's inserted into EdgesBay) fixed the immediate blow-up: the run went from diverging in 6 iterations to running stably out to 2500–2700 iterations before diverging again.
Beta Was this translation helpful? Give feedback.
All reactions