MoiseRousseau / PyGeoStudio

Python library allowing reading/writing GeoStudio .gsz file
https://pygeostudio.readthedocs.io
22 stars 2 forks source link

Change analysis properties #8

Closed panxuegang closed 5 months ago

panxuegang commented 10 months ago

In example file, why is it that every time I run the code change_saturated_perm.py successfully, I open the file Rapid drawdown.gsz with geostudio to see the material properties are still keep with the old edition.

MoiseRousseau commented 10 months ago

PyGeoStudio does not modify in place the original file, but it changes one copy in memory. You have to write it back on the hard drive with geofile.writeGeoStudioFile(out_file) where out_file is the name of the output. I push some modifications in the example folder. You can do git pull in PyGeoStudio root folder to update it.

panxuegang commented 10 months ago

Thank you for your answer, I work with a project that have requests to modify the reinforcement load. which function I can use to achive my request?

MoiseRousseau commented 10 months ago

This is no interface to the reinforcement load currently, but I can implement it pretty easily. What do you mean by modify the reinforcement load ? Which parameters in particular ?

MoiseRousseau commented 9 months ago

@panxuegang : I added the interface to reinforcement. You have an example in example/Reinforcements folder. Let me know your experience!