-
-
Notifications
You must be signed in to change notification settings - Fork 374
Remove constrains of using PlasmaPhase for 0D reactor and fix the species lock #1860
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1860 +/- ##
=======================================
Coverage 74.40% 74.41%
=======================================
Files 386 386
Lines 53630 53633 +3
Branches 9065 9066 +1
=======================================
+ Hits 39905 39910 +5
+ Misses 10653 10651 -2
Partials 3072 3072 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks for looking into this @BangShiuh. Rather than changing the |
…Incompatible phase type provided'
2b99006
to
f6baebe
Compare
It seems that some recent commits change the behavior. I will check later. |
@BangShiuh ... it turns out that I came across some of the same lines in #1864 (which implements a generalization of |
@ischoegl So the current Reactor class does not check the phase type, right? What if a user uses a phase that has issues with a specific reactor? |
@BangShiuh ... this is correct. If you want to add special treatment for something that is not implemented, you'd have to create a new |
@ischoegl Thanks for the information. I will consider adding some information to warn user in the code or at least in the documentation. (Not adding work for you but just a reminder for myself) The energy equation is tricky for plasma because we have two temperatures. The total internal energy including both gas and electron but this is not the property we want for calculating the gas temperature. I need to either customize the internal energy or make a new variable for the GAS internal energy. |
It would be straightforward to catch the exception and raise it again from |
Changes proposed in this pull request
This change fix the Reactor and ReactorBase so more phase can use reactor in the future. I also make the error message "incompatible phase type provided" visible. We can have more discussion on this and figure out the better solution if needed.
If applicable, fill in the issue number this pull request is fixing
Closes #
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build
&scons test
) and unit tests address code coverage