Comments (2)
The issue is that PYroMat's SO2 data set is only valid down to 300K, and 25C is outside of that range by 1.85C. The ig2 class SHOULD issue a warning, but it hasn't. Instead, it just returns 0 for enthalpy. You can verify this by typing
SO2.Tlim()
The Tlim() function will return a list with upper and lower temperature limits on the data set in the configured unit system.
from pyromat.
As a work-around, to FORCE PYroMat to extrapolate down to 25C, you can manually modify the data range inline. You'll be out of the recommended range for these polynomials, but only by 1.85C.
>>> SO2.data['Tlim']
[300.0, 1000.0, 5000.0]
>>> SO2.data['Tlim'][0] = 290.0
>>> so2.h(25)
array([-4633.3206084])
In the next version, I will add out-of-range warnings to the ig2 class. I'll also check to make sure the other classes also handle this error properly (I think do). I will also look to see whether it is worth it to transition to a different coefficient set for some of these ig2 species.
from pyromat.
Related Issues (20)
- [Review] Suggestion for the paper and a few typos I found going through the online documentation HOT 2
- [Review] Default unit converters for time are incorrect in subsecond range HOT 7
- [Review] Insert citation to NumPy in Paper HOT 1
- Inverse routines do not convert units HOT 1
- [Review] Repo/Docs are missing some guidelines for contribution HOT 1
- [Review] Include `extra_requires` in setup.py
- Proposal: unit confusion with default p&T HOT 3
- Test code breaks on d_s()
- Enhancement: Joule Thomson coefficient Addition HOT 6
- There is a problem with temperature-entalpy with air as ideal gas HOT 5
- Discussion: Error Codes HOT 2
- Create a state class HOT 2
- Easily capable to handle a simple inverse arg case for Ideal Gases HOT 3
- Code from Live-Page of PYroMat HOT 2
- Error in R1234ze Saturation Density
- General Inverse Property Lookup Functionality
- Add Multiphase Ammonia
- Different result using substance.p() and substance.ps() in multiphase substance
- Incorrect Pressure-Density Relationship for Multiphase Oxygen HOT 4
- Provide typing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyromat.