RELP as a function of a VOC mole fraction
I would like to make the relative permeability of the gas phase a function of the mole fraction of the the first VOC. Actually, the first VOC, in this case, is identical to water and is just here to model a concentration in the aqueous phase.
I do not know wich is the very first VOC mole fraction : CMOLEFW(1) or CMOLEFW(2) as the AIR mole fraction might be CMOLEFW(1)...
Thank you in advance for your help!
What compilation error did you get?
Yes, use PAR(NKL2W+NBK+1+NCG+1) (even though it seems this is a hardwired fix; make it general by using appropriate variable indices to indicate the right VOC or NCG). I also think it should be NB instead of NBK. Finally, make sure you USE the right modules to have all the needed variables available in RELP. looking at your compilation error should help you identify the issue rather quickly.