Commit Graph

827 Commits

Author SHA1 Message Date
Arne Morten Kvarving
37e7e6a611 Brine: avoid use dangling references
using a reference to a temporary is not okay
2022-08-02 09:47:09 +02:00
Arne Morten Kvarving
e42bb116f8 Brine: some modernization
- use constexpr
2022-08-02 09:47:09 +02:00
Arne Morten Kvarving
b626f0d713 SimpleHuDuanH2O: avoid use of dangling reference
using a reference to a temporary is not okay
2022-08-02 09:47:00 +02:00
Arne Morten Kvarving
f2eadd2ab3 SimpleHuDuanH2O: some modernization
- typedef -> using
- use constexpr
2022-08-02 09:19:50 +02:00
Arne Morten Kvarving
ffcd22ebb1 remove unnecessary includes 2022-07-27 15:36:46 +02:00
Atgeirr Flø Rasmussen
d5aa9dd29a Merge pull request #516 from trinemykk/add-chi-flash-trine
PT Flash for multiple components
2022-07-06 08:44:56 +02:00
Kai Bao
eccce0209c simplify the updateDerivativeSinglephase
and also finishing the singlephase test.
2022-07-05 14:20:59 +02:00
Trine Mykkeltvedt
6da7cab570 WIP: simplified the update of the derivatives for the singlephase, too simple and to much. need to generalize 2022-07-05 12:03:12 +02:00
Trine Mykkeltvedt
dbcede4d76 splitted updateDerivatives for two and singlephasecase 2022-07-05 11:04:24 +02:00
Kai Bao
0310d25e99 some shallow cleaning up 2022-06-30 14:36:59 +02:00
Trine Mykkeltvedt
1d2db38172 testing all three solution strategies for test_co2brine_ptflash and also, a refrence result comparison is added 2022-06-30 13:56:55 +02:00
Kai Bao
dac57ac2eb testing all three solution strategies for test_threecomponents_ptflash
and also, the reference result comparison is added.
2022-06-29 23:54:00 +02:00
Trine Mykkeltvedt
f0d8a9f3cc renamed and cleaned viscosityfiles 2022-06-28 23:02:24 +02:00
Trine Mykkeltvedt
659ae7e846 fixed some jenkins warnings 2022-06-28 13:28:49 +02:00
Bård Skaflestad
be5996a3ca Merge pull request #517 from akva2/fix_initializer
fixed: wrong value in initialization
2022-06-27 16:04:29 +02:00
Arne Morten Kvarving
b70ac697a3 fixed: wrong value in initialization 2022-06-27 14:43:16 +02:00
Arne Morten Kvarving
91a42c13a2 changed: anonymize unused parameters 2022-06-27 14:41:59 +02:00
Trine Mykkeltvedt
3d8826fc28 some copyright for some new files 2022-06-27 13:11:28 +02:00
Trine Mykkeltvedt
6b62b32da2 added aCache, this probably should be added to ParameterCacheBase at some point 2022-06-27 13:03:37 +02:00
Kai Bao
1728d53371 fxing the warning related to compIdx in PTFlash 2022-06-27 11:19:26 +02:00
Kai Bao
41a489c9ad fixing a warning in PTFlash regarding local_res 2022-06-27 11:13:00 +02:00
Trine Mykkeltvedt
6304acb292 fixed test_components for the new actentric factor and criticalVolume 2022-06-27 10:37:17 +02:00
Trine Mykkeltvedt
8d91d3704e removed unused functions and did some renaming in PTFlash 2022-06-27 10:37:17 +02:00
Kai Bao
30839ee32b renaming ChiFlash to PTFlash 2022-06-27 10:37:17 +02:00
Kai Bao
07b05d5b06 white space cleaning up
no functionality change.
2022-06-27 10:37:17 +02:00
Trine Mykkeltvedt
1565cb1a96 more peng robinson 2022-06-27 10:37:16 +02:00
Kai Bao
13469c63a0 cleaning up FluidStateCompositionModules.hpp a little bit.
mostly removing the twophaselflag_, which is not used anywhere.

not functionality changes.
2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
7762589cea more peng robinson stuff 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
a02a614948 more cleaning in the PengRobinson files 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
13cc0a8197 cleaned PengRobinson, uncommented the stuff about extrema in the case of one rott - I think it can just be as it was 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
06ef3bdc62 removed some printing in the polynomialsolver 2022-06-27 10:37:16 +02:00
Kai Bao
89ad5a1e81 slightly cleaning up PengRobinsonMixture.hpp a little bit
there are some more trivial cleaning work remains.
2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
eb3b24b14c cleaned up the viscositymodels, two choises availible: LBC and modified LBC 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
647efce497 moved the viscositymodels to a separate folder alongside the fluidsystem, in principle there are two viscositymodels: the standard LBC and the modified LBC. However, there might me some discrepancy between LBC and LBCjulia - this needs to be sorted out before we split this file into two (or three) separte method files 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
14a5a37249 moved and renamed fluidsystems and parametercache in chifluid 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
afad4d23ad moved the components to opm/material/components, and made subsequent changes for checking of the components 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
7c4f2bdcc3 removed unused files and started removing julianame 2022-06-27 10:37:16 +02:00
Kai Bao
18c9ee7581 fixing the compilation of test_chiflash
one reason is some code does not compile with DUNE2.6. And DUNE2.6 is
still supported by OPM.
2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
00f831117a added Kais startup cleaning, no functionality change 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
ce4201a030 made additional test with co2 and brine working, similar as juliacode 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
c386469479 wip co2brine 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
54f7e67dcb fixed the derivatives for the single phase case 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
b0863ec492 wip coupling to opm-models compositionalflash 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
a8e34880c8 updated the fluidState derivatives correctly to be used in intensivequantities 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
d210614eab wip copling to opm-models 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
7aa1675f8e changes to ChiFlash 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
eed51f4d55 added new cubic solver from Svenns old branch, also made a phaseStabilityTestMichelsen_ with the same wrapping as julia code - this does not work with newton right now. BUT the fix of the roots makes the stabilitytest give similar K as Olavs Julia code. Will never be completely equal due to minimization through gibbs (not implemented in opm) which will different choize of roots 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
16f7fb8e9d added Svenns cubic solver 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
a003b6c35c WIP stabilitutest ++ 2022-06-27 10:37:16 +02:00
Trine Mykkeltvedt
783b5011db added Kais last to commits and took values to fluid_state 2022-06-27 10:37:16 +02:00