Skip to content
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

Processing stops when usine macro 'co2pres' #1

Open
co2capturer opened this issue May 22, 2024 · 0 comments
Open

Processing stops when usine macro 'co2pres' #1

co2capturer opened this issue May 22, 2024 · 0 comments

Comments

@co2capturer
Copy link

Hello,

I have an issue using the carbon module when I want to have the co2pres macro initialized : the FEHM.exe stops after the first time step (without any error message, the python code then keeps running).
This is in a code trying to make a small co2 injection model inspired from the tutorial.
If I did adapt the library to my newest 3.11 Python version (Windows) by solving the vocabulary issues, the carbon module not working, this problem doesn't have an explicit way to debug.
Because of the early stop in the .exe, the error reported by Python is about the self.times variable that is empty in this case when trying to do a cont.slice_plot(........).

Here you can see a few parts of my code after the initializations that I skip here.

dat.add(fcarb(iprtype = 4))
dat.carb.on(iprtype = 4)
dat.files.co2in='C:\\Users\\xxxxx\\Documents\\xxxxxxxxxxxxxxxx\\PyFEHM\\co2_interp_table.txt
dat.add(fmacro('pres',zone=0,param=(('pressure',19),('temperature',(50)),('saturation',0.))))
dat.add(fmacro('co2pres',zone=0,param=(('pressure',19),('temperature',(50)),('phase',4))))
dat.add (fmacro('co2frac', zone='reservoir', param=(('water_rich_sat',0.0), ('co2_rich_sat',1.0 ), ('co2_mass_frac',1.0), ('init_salt_conc',0.), ('override_flag',1))))
dat.add (fmacro('co2flow', zone='wellpoint', param=(('rate',1), ('energy',-40), ('impedance',1.e-2), ('bc_flag',1))))

In general, wether I comment or uncoment the other macros doesn't change anything, it really is happening when using co2pres macro, which is necessary to have the P & T initialized (I think)

I don't know if this issue is well known, but thank you in advance for your help.

@co2capturer co2capturer changed the title Processing stopping when usine macro 'co2pres' Processing stops when usine macro 'co2pres' May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant