Dear Kenza,

in line 118 of the fluidsystem header the H2OIdx is defined as 0, your reading of the error message seems to be off by one and it's actually looking for the binary coefficient for CH4 and O2. The combination isn't matched because you order your component indices such that compIIdx <= compJIdx but then test for compIIdx == 2 && compJIdx == 1.

Best regards,
Mathis

On 09/05/2023 19:46, kenza bouznari wrote:
Dear Dumux Users,

I am writing to seek some help regarding the implementation of a multicomponent fluid system in Dumux 3.4. Specifically, I am simulating the injection of methane into a saturated porous medium, where the aquifer contains dissolved gases such as O2, N2, and CO2 as background gases. To accomplish this, I've been trying to implement an h2on2o2co2ch4.hh fluid system and made all the necessary binary coefficient files.

Although the code compiles without any errors, when I try to run the test, I get the following error: */"what(): Dune::InvalidStateException [binaryDiffusionCoefficient:/home/ggl/dumux3.4_KB/dumux/dumux/material/fluidsystems/h2on2o2co2ch4.hh:780]: Binary diffusion coefficient of components 1 and 2 in phase 1 is undefined!"
/*
There is an issue with the binary diffusion coefficient of components 1 (H2O) and 2 (CH4) in phase 1, which is the gas phase. However, the gasDiffCoeff is well defined in the h2o_ch4.hh file!!

I would really appreciate any suggestions on how to address this issue. All the files mentioned are attached.

Thank you in advance for your help and support.

Best regards, Kenza.

_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

--
********************************************************
Mathis Kelm
Universitaet Stuttgart
Institut fuer Wasser- und Umweltsystemmodellierung
Lehrstuhl fuer Hydromechanik und Hydrosystemmodellierung
Pfaffenwaldring 61, 70569 Stuttgart
Tel.: 0711/685-60146
[email protected]
https://www.iws.uni-stuttgart.de/lh2/
********************************************************
_______________________________________________
DuMux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to