-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add dependencies to project #9
Comments
yeah, in a way, you are the first one really using the functions, so its time to do that |
i added travis to the repository, but i need to run tests. i also updated project.toml and manifest.toml (i wasn't working on the pkg enviroment, my bad). so the package should run fine. in the master, is necessary julia 1.3, as i use Threads.@Spawn in the function pt_flash (when searching volumes in two phases) |
I will try this tomorrow. I don't have Julia 1.3 on my computer yet. Any chance we could get mass or molar densities :D? How hard would that be? |
i have a function in core_mass_density(model,P0,T0,x0) #calculates v without a volume root
core_mass_density(model,P0,v0,T0,x0) #calculates v with the initial root v0
mass_density(model,P0,T0,x0) #calculates v and adds the corresponding unit
#this is the same for: mol_density, mol_volume and mass_volume
this is the same interface as |
Also, when a cubic model is developed, one can simply dispatch volume solver to just calculate the roots via polynomial solving, and skipping the initial volume if provided |
added to latest commit: water= IAPWS95()
julia> mass_density(water,1.0u"atm",100u"°C",[1.0])
958.3490079146466 kg m^-3 |
Awesome!!! I'll test your multithread code on my machine tonight and let you know how it goes. |
Also need to add DiffRules, NLopt, Optim, BenchmarkTools, Sobol!
|
Says mass_density not defined. Am I using an old version by accident? |
not, my bad (again) forgot to add new file in module declaration |
Gotta add Sobol, Mapped Arrays, NLopt, Optim, BenchmarkTools to the project otherwise it won't build.
If you set up CI/CD it will help with these kinds of 'bugs'.
The text was updated successfully, but these errors were encountered: