Hello guys . Does anybody know how to simulate the deformation of the soil caused by fluidflow in both TOUGH and FLAC3D? Thanks
- Floriane_Youzan
- 4 yrs ago
- 84replies
84 replies
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Unfortunately, it is not as straightforward as it sounds.
The "easiest" way that does not require access to TOUGH source code is to make FLAC3D call TOUGH at each time step and import the pressure and temperature from TOUGH into FLAC. For two-way coupling (stress-induced porosity/permeability changes), you should update TOUGH input files before calling TOUGH in FLAC3D.
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan You can install toughio for FLAC3D's Python using the command:
cmd /C ""C:/Program Files/Itasca/FLAC3D700/exe64/python36/Scripts/pip.exe"" install toughio --user
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu i get an error when i type that in the command window
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan Call that command in WIndows console, not in FLAC3D (just like you did with pip).
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu they say the system can not find the path specified
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan What's the error?
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu nevermind i did it using another way. the code gives me another error in python . here it is
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan Can you attach the SAVE file you are trying to read?
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu here it is
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan Sorry for the delay. I wanted to fix other bugs and add other features before releasing an update. The latest update of toughio should be able to read your SAVE file now. Please update toughio.
pip install -U toughio --user
To update toughio in FLAC3D's Python:
cmd /C ""C:/Program Files/Itasca/FLAC3D700/exe64/python36/Scripts/pip.exe"" install -U toughio --user
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu hello, thank you for reply, I just tried update toughio but i got an error
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan You forgot the dash before U: -U
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu i think it went through but when i run the code I did not get any error. I am trying to find the new save file
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan I notice that you installed toughio for Windows' Python installation rather than FLAC3D's built-in Python. This means that you won't be able to import toughio within FLAC3D. To run a coupled TOUGH and FLAC3D simulation (without modifying TOUGH's source code), you HAVE to install toughio for FLAC3D's Python as there is no way to import the module itasca outside of FLAC3D.
If you get an error when running the command:
cmd /C ""C:/Program Files/Itasca/FLAC3D700/exe64/python36/Scripts/pip.exe"" install -U toughio --user
it probably means that FLAC3D is not installed in its default location. What's the exact error returned by Windows console when you run this command?
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu I typed it in the python console that is in FLAC 3D and here is what I got
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan You have to type it in Windows console, just like you did to install toughio for Windows's Python installation, the only difference is the path to the program pip (Python's package manager).
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan You forgot the option --user at the end of the command.
cmd /C ""C:/Program Files/Itasca/FLAC3D700/exe64/python36/Scripts/pip.exe"" install -U toughio --user
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu okay I was able to get it done. however when I tried the code in python in FLAC3D they say toughio is not specified. I don't understand
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan Have you restarted FLAC3D?
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu yeah I closed FLAC and opened it back again but still they say that "DLL load failed" the specified module could not be loaded
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan Is it an error related to _lzma?
-
- Floriane_Youzan
- 4 yrs ago
- Reported - view
Keurfon Luu what is _Izma
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan What is the exact error returned by FLAC3D when importing toughio?
-
- Keurfon_Luu
- 4 yrs ago
- Reported - view
Floriane Youzan Okay, so the error is related to _lzma, as I thought.
Itasca packages the module lzma in FLAC3D but forgot to include the associated DLL file.
Download and uncompress the attached ZIP file, and put the file liblzma.dll in the following directory:
C:\Program Files\Itasca\FLAC3D700\exe64\python36\DLLs
Restart FLAC3D and retry.