-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Enhance the PlasmaPhase to use the cross section data with an example of calculating the elastic collision energy loss rate #1731
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1731 +/- ##
==========================================
+ Coverage 73.23% 74.43% +1.19%
==========================================
Files 383 382 -1
Lines 54652 53492 -1160
Branches 9109 9055 -54
==========================================
- Hits 40027 39816 -211
+ Misses 11612 10609 -1003
- Partials 3013 3067 +54 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @BangShiuh. I had some suggestions that I think will lead to a simpler implementation. Please let me know if you have any questions.
@BangShiuh, I saw that you have marked all the comments from my previous review as "resolved", but I think the corresponding changes have not been pushed to this branch. Are they all in your |
Hi Ray,
Yes, I am mostly done. I am working on a small issue right now for updating
the interpolating the cross section. I will push it once I finished!
Bang
…On Tue, Nov 12, 2024 at 10:22 PM Ray Speth ***@***.***> wrote:
@BangShiuh <https://github.com/BangShiuh>, I saw that you have marked all
the comments from my previous review as "resolved", but I think the
corresponding changes have not been pushed to this branch. Are they all in
your collision-new branch that you mentioned in Cantera/enhancements#194
<Cantera/enhancements#194>? Could you push them
to this branch?
—
Reply to this email directly, view it on GitHub
<#1731 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEZZJBQ5JNPC2LX7E6SMOID2ALAXFAVCNFSM6AAAAABKQ3OMM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZSGI4TAMRTGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
bde326e
to
5f00629
Compare
@speth I have made updating rate or adding reaction triggers updating the interpolated cross sections. I also have tried to reduce the number of interpolating the cross-sections, but not successful. The rate object in PlasmaPhase is different to the one in m_bulk_rates, which is used by updateROP. I will check the Linters checks failure. How do I run that on my computer? |
The easiest thing to do is just look at the logs here on GitHub. The problem that it is finding is with the docstring for class /*!
* Base class for handling plasma properties, specifically focusing on the
* electron energy distribution. This class provides functionality
* to manage the the electron energy distribution using two primary methods
* for defining the electron distribution and electron temperature.
* There is a subtle difference between starting a Doxygen comment block with //! Base class for handling plasma properties, specifically focusing on the
//! electron energy distribution.
/*!
* This class provides functionality to manage the the electron energy distribution
* using two primary methods for defining the electron distribution and electron
* temperature.
* |
Commit 21bbebd erroneously reverts the state of the |
I am not sure why 4e7d6e2 is [1D].... I will investigate it. |
I think you've accidentally squashed a commit of yours into one of mine. The only change that should be in the commit with that message is a 3-line change to |
4f09ef6
to
9a46ebb
Compare
I used reset during rebase to remove the change to example_data. But I used commit --amend, so the original commit was gone and became [1D] ... should just use commit instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates here, @BangShiuh. I think this is just about ready -- I just have a few comments that are mostly about the documentation and code style.
…nterpolated cross section
…ratureFromEnergyDist
@speth The issues are fixed. Let me know if anything needs update. Thanks for the code review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these updates, @BangShiuh. This looks great!
Changes proposed in this pull request
This PR change the initiation of the PlasmaPhase. The PlasmaPhase after this change takes the ElectronCollisionPlasmaRate cross-section data to calculate the plasma thermal properties (specifically the elastic collision energy loss rate). The elastic collision energy loss is the energy transfer from electron to molecule when a fast electron (higher electron temperature) collides to a slower molecule (lower gas temperature). This is useful for modelling a non-equilibrium plasma in which the electron temperature is much higher than the gas temperature. The elastic collision power loss includes the energy transfer via elastic collision and via the recoil effect of an inelastic collision. The equation can be found in the manual of bolsig, https://www.bolsig.laplace.univ-tlse.fr/download.html. I have compared the value of elastic power loss to bolsig, and it is reasonably close (around 1% different).
Data download:
The collision cross section can be downloaded from https://nl.lxcat.net/data/download.php. However, the zip file is currently broken. Fortunately, I have saved a previous version. Please email me if you want to use it.
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