Skip to content

Processing stops when usine macro 'co2pres' #1

@co2capturer

Description

@co2capturer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions