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

Check if phases are not identical and if the sound speeds are real #136

Merged
merged 14 commits into from
Feb 20, 2024

Conversation

jorindevandevis
Copy link
Collaborator

@jorindevandevis jorindevandevis commented Feb 19, 2024

Added three quick checks in WallGoManager:

  • are the two phases that are found not identical?
  • is the speed of sound of the high T phase at Tn real
  • is the speed of sound of the low T phase at Tn real

If these checks fail, nothing will work, so the program should stop.

I also changed the velocity in the determination of TminTemplate from 0.01 to min(0.01, hydrotemplate.vMin), because if the PT is really strong, no solution can be found for vw = 0.01.

If this PR is approved, I would recommend merging it into any branches where models are being implemented. If those implementations fail, this PR could help figure out the cause of the failure.

@jorindevandevis jorindevandevis requested review from niemilau and joonashir and removed request for niemilau February 19, 2024 12:00
@jorindevandevis jorindevandevis merged commit 233a199 into main Feb 20, 2024
1 check passed
@jorindevandevis jorindevandevis deleted the checkThermo branch February 20, 2024 13:46
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.

2 participants