Comments (3)
Very nice overview!
Two quick comments without having gone through all the code:
- If having a mixture of
SINumber
andf64
is an issue, we can circumvent that by multiplying, e.g., withMOL/MOL
. A bit hacky but could be worth it. - Personally, I wouldn't mind having an enum with
DataSet
s. We "established" the approach with the equations of state and functionals, and in Python it is already basically treated as enum. But having different values for the associated types would break that concept, wouldn't it?
from feos.
But having different values for the associated types would break that concept, wouldn't it?
Mh not sure if I understand correctly but we could do essentially what we currently do with EosVariant
:
- define an enum, say
DataSetVariant
, that contains all possibleDataSet
implementations implementit's not object safeDataSet
for that enum- possibly use a derive macro to do that?
Or we define the enum without implementing the trait and just write the match statements within the methods of the Estimator
that stores a Vec<DataSetVariant>
. Both should work.
from feos.
If having a mixture of SINumber and f64 is an issue, we can circumvent that by multiplying, e.g., with MOL/MOL. A bit hacky but could be worth it.
That is part of the problem IMO. The other problem is that the number of return values for a single predict
call can be different, i.e. one value for vapor pressure but two values for the chemical potentials when binary VLE's are considered.
from feos.
Related Issues (20)
- Helping bubble points and dew points at given pressure to converge HOT 2
- PC-SAFT extensions on README
- How to obtain the pressure of dispersive term and that of repulsive term HOT 3
- Can I use feos to plot pressure-density diagram of binary mixture? HOT 5
- `Parameter::from_multiple_json` fails when components exist in multiple files
- Adjust Joback parameters to work with new ideal gas treatment
- Improve `Estimator` and `DataSet` objects
- Polarizable models? HOT 2
- Question regarding the calculation of the ideal gas molar entropy HOT 2
- cutoff_radius limit not necessary in structured (periodic) porous media? HOT 1
- Output the fraction of non-bonded association sites HOT 2
- PC-SAFT vapor-liquid DFT solver HOT 4
- How to calculate the thermal conductivity of mixtures HOT 2
- association scheme variables Na, Nb, Nc HOT 3
- More derivatives at the same time HOT 37
- Some jupyter notebooks throwing error HOT 2
- Feedback for users regarding the availability of binary interaction parameters
- question about polar term in Heterosegmented gc-PCP-SAFT HOT 2
- Make critical point calculation more robust HOT 3
- Fix unit bug in `quantum_d` Python getter of `SaftVRQMieParameter` HOT 1
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 feos.