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

New functionality #34

Merged
merged 165 commits into from
Nov 8, 2024
Merged

New functionality #34

merged 165 commits into from
Nov 8, 2024

Conversation

vegardjervell
Copy link
Collaborator

@vegardjervell vegardjervell commented Nov 8, 2024

A bunch of new functionality

  • Full functionality (all transport property computations) on the C++ side
    • This introduces some new dependencies, which are included as submodules to the package
    • Some now redundant python code is still lying around but not in use
    • Some user-friendlieness stuff is still restricted to the python side. Specifically initialisation where some components use default parameters, while others use supplied parameters.
  • More transport properties and frames of reference
  • Internal contribution to thermal conductivity
  • Several transfer length models
  • Modified Tang-Toennies (ab initio) potential
    • As of now, only has parameters for argon

NOTE - There are a bunch of major changes in this PR, likely including things that will break something (even though tests pass). The build system has changed, and there is now a dependency on the cppThermoPack wrapper (which in time should completely replace the dependency on the pycThermopack wrapper). However, there is just too much going on to wait any longer before merging this. I need to consolidate stuff. Sorry.

…ncluding better root solvers.

Made some methods private in QuantumMie to ensure that they are only called as part of a call chain where sigma_eff and epsilon_eff have been computed first. These should be overridden later.
Also deleted a couple prints from testing of previous commit.
Also added pressure_tv to IdealGas, so that solvent FoR runs for idealgas=True
Formulation now uses nabla_T Psi(T, p, x), old formulation used nabla_T Psi(T, c, x)
…s of freedom

Relation collected from SuperTRAPP documentation, doi.org/10.6028/NIST.IR.8209
A bunch of int and double arguments were unneccesarily passed as const int& and const double&. Also, some methods that could be const qualified were not. Some more work should be done on marking methods as const appropriately.
Note: The function gamma_corr previously only filled the upper half of the matrix it returned. This was OK, because the methods using the function used the symmetry of the matrix to retrieve values in the lower half. The function now fills the entire matrix, because only filling the upper half is just begging for bugs to appear in the future.
…g classes should override get_b_max(double T), which handles the cases in which the computation of b_max fails.

Ensured that Sutherland model properly uses the IdealGas eos when initialised with is_idealgas=True, and that the ideal gas property is properly forwarded to the cpp model.
…ted initialisation. Tested calling the potential function at different temperatures, and generating effective Mie potentials.
…tumMie gives close to the same RDF as an effective Mie potential in tests/Qmie.py"
Ensured that C++ side initialisation with directly supplying parameters works as it should, and move sigma and epsilon parameters to KineticGas class.

Fixed some issues in interdiffusion, also in handling py PyWrapper for python-side supplied equation of state.

NOTE: Some bugs are still hanging around (tests for issues and binary limit fail) but these seem to be semantic rather than logical bugs.
…Also clean out obsolete python-side code. Models as of now reproduce results from CUI paper.
…vity.

Moved fluid utils to utils.h/.cpp

Updated doc pages.
…ude more properties in the future.

Modified workflow for windows build to properly install thermopack from downloaded wheel.

Cleaned up docstrings and print statements.
@vegardjervell vegardjervell merged commit 529cc57 into main Nov 8, 2024
0 of 7 checks passed
@vegardjervell vegardjervell deleted the prep_merge branch November 8, 2024 16:12
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.

1 participant