Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REF_AREA=0 causes immediate divergence when totalpositivearea=0 #2435

Open
bigfooted opened this issue Jan 29, 2025 · 2 comments
Open

REF_AREA=0 causes immediate divergence when totalpositivearea=0 #2435

bigfooted opened this issue Jan 29, 2025 · 2 comments
Labels

Comments

@bigfooted
Copy link
Contributor

Describe the bug
From cfd-online:
https://www.cfd-online.com/Forums/su2/259230-nan-error-before-iterations-begin-3d-su2.html#post879476
"I found the problem. The setting of REF_AREA = 0, which worked in the Turbulent ONERA M6 tutorial and I understand is supposed to imply an automatic calculation, in this case caused the error. "

REF_AREA=0 triggers a recomputation of the area, in CPhysicalGeometry::SetPositive_ZArea :

 if (config->GetRefArea() == 0.0) {
    if (D3)
      config->SetRefArea(TotalPositiveZArea);
    else
      config->SetRefArea(TotalPositiveYArea);

This does not work if the totalpositivearea is zero (I think this is the reason of immediate divergence in this case). We should warn the user that this is the case, and stop with an error message

@bigfooted bigfooted added the bug label Jan 29, 2025
@vkrm1612
Copy link

vkrm1612 commented Feb 5, 2025

Hi, I have corrected the bug as mentioned, can you please give me those example mesh and cfg files so that I can use it to verify them, when I am trying use the existing files from cfd forum I am getting errors.

@pcarruscag
Copy link
Member

What errors do you get?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants