Comments (9)
Aside: it should be helmholtz_energy_res
rather than helmholtz_free_energy_res
according to IUPAC
from clapeyron.jl.
hi!,
on documenting that, do you mean as a preface? all functions that are volume derivatives tend to be intensive (pressure does not depend on the amount of matter), but temperature derivative functions (like Cp and Cv) are extensive. each function has their units documented, but adding additional information never hurts.
on the doc error, i'm fixing that right away
from clapeyron.jl.
Some comment in the preface would be helpful at least to me but I take your point that the information is there in the documentation 🙂.
As a tangent to this, it would be nice if mass could passed as an argument to f.ex. volume when dealing with single fluids like IAPWS95 (which is what I have been using so far). I noticed in the docs that this is an option when dealing with mixtures. It would save some tedious calculations for me, but perhaps it is not a good idea for some reason.
from clapeyron.jl.
single fluids are mixtures! (of only one component), you can pass a mass argument in the following way:
julia> using Clapeyron, Unitful
julia> model = IAPWS95()
MultiParameter Equation of state for water:
Polynomial power terms: 7
Exponential terms: 44
Gaussian bell-shaped terms: 3
Non Analytic terms: 2
julia> volume(model,1u"atm",30u"°C",1u"kg",phase = :l, output = u"L")
1.0043695560170631 L
In this particular example, i pass 1u"kg
as a number, i technically abuse one of julia quirks that a number is considered a vector of length 1 in some cases. the correct way would be to pass a [1u"kg"]
instead, but that would cause some slowdowns
from clapeyron.jl.
My mistake. I must have made an error when trying this previously. That's great 🙂 Thanks 👍
from clapeyron.jl.
I will keep this open in the meantime. The typo in mass_density was corrected. There is a docs PR that should fix this, but it isn't merged yet.
from clapeyron.jl.
Although if I pass the vector argument for the mass I get a no method matching error for a_res. But in any case your solution was what I was looking for.
from clapeyron.jl.
Yeah, a_res
is more of an internal function 😅, but there should be an api to access those (something like helmholtz_free_energy_res
that I thought we had)
from clapeyron.jl.
Ooops, missed your comment about keeping this open. Reopened with this.
from clapeyron.jl.
Related Issues (20)
- Induced-Association Interactions in SAFT HOT 16
- Saturation solves fail moving from 0.5.7 to 0.5.8 HOT 4
- Move CPA input to use SI values
- Help with modelling activity coefficients in UNIFAC HOT 3
- Wrong conversion of parameters for water in CPA HOT 10
- Installation problems with precompilation (`Setfield` not defined) HOT 4
- Surprising default combining rule in association term HOT 3
- Evaluation of CPA at too high a density yields no error, just NaN HOT 4
- Possible issue with bubble and dew point estimation (or SAFT-gamma Mie) HOT 2
- Ask for help with sCPA calculating the molar volume of water HOT 7
- Simple example with activity coefficient model and antoine parameters for saturation pressure? HOT 3
- modified LKP and LKP-SJT
- Clarification/issue in SoftSAFT implementation HOT 13
- Use for PR, SAFTVRMie, PCSAFT for Compressors HOT 1
- Issue with SAFT-VR-Mie models and water+alcohol HOT 12
- Derivation for `X_exact1` HOT 6
- Are there any plans to implement Inside-out flash computing? HOT 7
- T-s diagram for dry fluids HOT 1
- dew temperature abnormality with water? HOT 4
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 clapeyron.jl.