# \#python

**URL:** https://forum.itascainternational.com/tag/python/2.md

[Latest](https://forum.itascainternational.com/latest.md) · [Categories](https://forum.itascainternational.com/categories.md) · [Tags](https://forum.itascainternational.com/tags.md)

---

## [Is it possible to access the python console from the non gui version of flac](https://forum.itascainternational.com/t/is-it-possible-to-access-the-python-console-from-the-non-gui-version-of-flac/1850)

<div class="topic-metadata">

**Author:** [@stephaneBeaussier](https://forum.itascainternational.com/u/stephaneBeaussier)\
**Replies:** 3\
**Last updated:** [August 3, 2026, 10:45am UTC](https://forum.itascainternational.com/t/is-it-possible-to-access-the-python-console-from-the-non-gui-version-of-flac/1850 "2026-08-03T10:45:30Z")

</div>

Hi, I use the non-gui version of flac3d with the executable fla3d\_console on a linux server that does not have a gui interface. I wanted to know if there was a way to access the python console in this version of FLAC3D…

---

## [Can a time varying external load applied to a saturated soil mass generate excess pore pressure when using Mohr-Coulomb in a coupled fluid-mechanical analysis?](https://forum.itascainternational.com/t/can-a-time-varying-external-load-applied-to-a-saturated-soil-mass-generate-excess-pore-pressure-when-using-mohr-coulomb-in-a-coupled-fluid-mechanical-analysis/2395)

<div class="topic-metadata">

**Author:** [@Sudipta](https://forum.itascainternational.com/u/Sudipta)\
**Replies:** 0\
**Last updated:** [June 15, 2026, 5:21pm UTC](https://forum.itascainternational.com/t/can-a-time-varying-external-load-applied-to-a-saturated-soil-mass-generate-excess-pore-pressure-when-using-mohr-coulomb-in-a-coupled-fluid-mechanical-analysis/2395 "2026-06-15T17:21:35Z")

</div>

Hello @everyone, @itascaYang @isaac @itsmoho\_sen @ITE @itascaYang @itasca @dafo407\_itasca @ddegagne @dblanksma @itmam I am running a coupled fluid–mechanical FLAC3D model using the Mohr-Coulomb constitutive model. I hav…

---

## [How to access zone joint contacts via FISH/Python](https://forum.itascainternational.com/t/how-to-access-zone-joint-contacts-via-fish-python/2310)

<div class="topic-metadata">

**Author:** [@LeoBBL](https://forum.itascainternational.com/u/LeoBBL)\
**Replies:** 2\
**Last updated:** [January 7, 2026, 11:32pm UTC](https://forum.itascainternational.com/t/how-to-access-zone-joint-contacts-via-fish-python/2310 "2026-01-07T23:32:50Z")

</div>

Hi everyone, I’m trying to find a way to access to zone joint contact variables either via FISH or Python (e.g., get/set properties, displacements, state, extras, etc). I haven’t found any guidance in the available docu…

---

## [Efficient way of getting face groups in python scripts](https://forum.itascainternational.com/t/efficient-way-of-getting-face-groups-in-python-scripts/2289)

<div class="topic-metadata">

**Author:** [@stephaneBeaussier](https://forum.itascainternational.com/u/stephaneBeaussier)\
**Replies:** 1\
**Last updated:** [November 25, 2025, 4:40pm UTC](https://forum.itascainternational.com/t/efficient-way-of-getting-face-groups-in-python-scripts/2289 "2025-11-25T16:40:41Z")

</div>

Hi, I am trying to extract in python a face boundary, to track certain properties over the face. To do that I first need to get the pointer to the faces that compose this boundary (the zone pointer and face index pair …

---

## [Relative between FLAC3D zone indexes and zonearray index](https://forum.itascainternational.com/t/relative-between-flac3d-zone-indexes-and-zonearray-index/2281)

<div class="topic-metadata">

**Author:** [@stephaneBeaussier](https://forum.itascainternational.com/u/stephaneBeaussier)\
**Replies:** 5\
**Last updated:** [November 21, 2025, 11:57am UTC](https://forum.itascainternational.com/t/relative-between-flac3d-zone-indexes-and-zonearray-index/2281 "2025-11-21T11:57:48Z")

</div>

Hi, I have questions about the relation between the ids of zones and faces within FLAC and the indexing in the python numpy interface: What is the relation between the index of zones and the indexing within zonearray…

---

## [Python containers conversion to Fish](https://forum.itascainternational.com/t/python-containers-conversion-to-fish/1388)

<div class="topic-metadata">

**Author:** [@Theophile](https://forum.itascainternational.com/u/Theophile)\
**Replies:** 5\
**Last updated:** [September 4, 2025, 3:10pm UTC](https://forum.itascainternational.com/t/python-containers-conversion-to-fish/1388 "2025-09-04T15:10:07Z")

</div>

Hi everyone! We are extensively using the Python API in our 3DEC computations, so first of all, thanks for that! As of today (and at least in 3DEC), conversion of Python containers to Fish objects are not supported, ex…

---

## [Accessing extra variable via python code](https://forum.itascainternational.com/t/accessing-extra-variable-via-python-code/2148)

<div class="topic-metadata">

**Author:** [@JuDi](https://forum.itascainternational.com/u/JuDi)\
**Replies:** 4\
**Last updated:** [July 10, 2025, 3:40pm UTC](https://forum.itascainternational.com/t/accessing-extra-variable-via-python-code/2148 "2025-07-10T15:40:44Z")

</div>

Hi, what am I missing with this code when trying to access an extra variable set in the model via a python script? Both types of access , via zonepointer or zone array give me the error message shown below: import itas…

---

## [Tables in Python?](https://forum.itascainternational.com/t/tables-in-python/2054)

<div class="topic-metadata">

**Author:** [@paul](https://forum.itascainternational.com/u/paul)\
**Replies:** 3\
**Last updated:** [May 4, 2025, 7:30pm UTC](https://forum.itascainternational.com/t/tables-in-python/2054 "2025-05-04T19:30:12Z")

</div>

I’m working on a dynamic analysis project and developing Python scripts to verify certain modelling assumptions. One key step is comparing the source outcrop ground motion to the surface response of my FLAC2D model to e…

---

## [Problem with Callbacks](https://forum.itascainternational.com/t/problem-with-callbacks/1968)

<div class="topic-metadata">

**Author:** [@Felipe](https://forum.itascainternational.com/u/Felipe)\
**Replies:** 4\
**Last updated:** [April 3, 2025, 6:13am UTC](https://forum.itascainternational.com/t/problem-with-callbacks/1968 "2025-04-03T06:13:11Z")

</div>

Hi there, I’m trying to make a Barton Bandis class in Python, however I can’t compile my code, it always gives me this error: flac3d\>model callback add update\_friction\_fault python \*\*\* Python error: 'Unused extra param…

---

## [TypeError: 'tuple' object is not callable in FLAC3D Python Script](https://forum.itascainternational.com/t/typeerror-tuple-object-is-not-callable-in-flac3d-python-script/1982)

<div class="topic-metadata">

**Author:** [@Mahdi.S](https://forum.itascainternational.com/u/Mahdi.S)\
**Replies:** 4\
**Last updated:** [March 17, 2025, 10:38pm UTC](https://forum.itascainternational.com/t/typeerror-tuple-object-is-not-callable-in-flac3d-python-script/1982 "2025-03-17T22:38:12Z")

</div>

Hi Everyone, I am using the following Python code snippet in FLAC3D, which is taken from the documentation. However, I am encountering the following error: Traceback (most recent call last): File “‘’”, line 24, in …

---

## [How to iterate through geometry polygons with Python API](https://forum.itascainternational.com/t/how-to-iterate-through-geometry-polygons-with-python-api/1785)

<div class="topic-metadata">

**Author:** [@LeoBBL](https://forum.itascainternational.com/u/LeoBBL)\
**Replies:** 3\
**Last updated:** [March 4, 2025, 2:42pm UTC](https://forum.itascainternational.com/t/how-to-iterate-through-geometry-polygons-with-python-api/1785 "2025-03-04T14:42:11Z")

</div>

Hello everyone I need to iterate through the list of polygons of a geometry set, for then assign some values to extras. I know that it can be done with geom.poly.list() FISH function via loop foreach, but I’m looking t…

---

## [Is Griddle library available in Rhino with Python?](https://forum.itascainternational.com/t/is-griddle-library-available-in-rhino-with-python/1860)

<div class="topic-metadata">

**Author:** [@Carlos\_Mora](https://forum.itascainternational.com/u/Carlos_Mora)\
**Replies:** 9\
**Last updated:** [February 20, 2025, 7:18pm UTC](https://forum.itascainternational.com/t/is-griddle-library-available-in-rhino-with-python/1860 "2025-02-20T19:18:06Z")

</div>

Hi Itascans, I would like to create some similar volume meshes with Griddle, could I automatize the process using Python in Rhino? Thanks!

---

## [Zone joint contacts in Python](https://forum.itascainternational.com/t/zone-joint-contacts-in-python/1941)

<div class="topic-metadata">

**Author:** [@BillyF](https://forum.itascainternational.com/u/BillyF)\
**Replies:** 0\
**Last updated:** [February 11, 2025, 10:50am UTC](https://forum.itascainternational.com/t/zone-joint-contacts-in-python/1941 "2025-02-11T10:50:42Z")

</div>

Hi all! I wanted to test using Python to handle zone joint contacts in FLAC3D. Is it possible? For instance, I tried the function itasca.contact.find() but could not figure out what contact type to give as argument to …

---

## [Reading open \*.sav file name to python environment](https://forum.itascainternational.com/t/reading-open-sav-file-name-to-python-environment/1853)

<div class="topic-metadata">

**Author:** [@JuDi](https://forum.itascainternational.com/u/JuDi)\
**Replies:** 7\
**Last updated:** [December 18, 2024, 8:07am UTC](https://forum.itascainternational.com/t/reading-open-sav-file-name-to-python-environment/1853 "2024-12-18T08:07:12Z")

</div>

Hi, is there a way to read the current open \*.sav file via the itasca python module? I see only file.name() fish function in the manual so far. Thanks, Julia

---

## [Automating Test Simulations with Error Handling in 3DEC](https://forum.itascainternational.com/t/automating-test-simulations-with-error-handling-in-3dec/1775)

<div class="topic-metadata">

**Author:** [@Mahdi.S](https://forum.itascainternational.com/u/Mahdi.S)\
**Replies:** 1\
**Last updated:** [October 25, 2024, 7:50am UTC](https://forum.itascainternational.com/t/automating-test-simulations-with-error-handling-in-3dec/1775 "2024-10-25T07:50:56Z")

</div>

Hi Everyone, I have developed a Python script to automate the modeling of 205 tests in 3DEC. However, I am encountering an error related to mesh generation, which suggests that I need to adjust the size of the BBM. To h…

---

## [Difference in time response between zones and grid point during subcontact cycling](https://forum.itascainternational.com/t/difference-in-time-response-between-zones-and-grid-point-during-subcontact-cycling/1770)

<div class="topic-metadata">

**Author:** [@ExMaramb](https://forum.itascainternational.com/u/ExMaramb)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 3:14pm UTC](https://forum.itascainternational.com/t/difference-in-time-response-between-zones-and-grid-point-during-subcontact-cycling/1770 "2024-10-23T15:14:02Z")

</div>

Hey everyone, I have the following routine to assign pp to subcontacts: for sbc in it.block.subcontact.list(): pos\_sc=sbc.pos() gp\_n=it.block.gridpoint.near(pos\_sc) gp\_pp=gp\_n.pp() sbc.set\_pp(gp\_pp) For some reaso…

---

## [Installation of certain Python extension modules](https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685)

<div class="topic-metadata">

**Author:** [@Umer99](https://forum.itascainternational.com/u/Umer99)\
**Replies:** 3\
**Last updated:** [September 11, 2024, 11:38am UTC](https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685 "2024-09-11T11:38:01Z")

</div>

Hello, I would like to import some external python packages into FLAC3D and this works so far with the following command: pip install --target ‘C:\\Program Files\\Itasca\\ItascaSoftware900\\exe64\\python310\\Lib\\site-packag…

---

## [Encrypting Python Script in 3DEC](https://forum.itascainternational.com/t/encrypting-python-script-in-3dec/1624)

<div class="topic-metadata">

**Author:** [@Mahdi.S](https://forum.itascainternational.com/u/Mahdi.S)\
**Replies:** 3\
**Last updated:** [August 8, 2024, 11:42pm UTC](https://forum.itascainternational.com/t/encrypting-python-script-in-3dec/1624 "2024-08-08T23:42:02Z")

</div>

Hi Everyone, I have tried to use “program encrypt” command to encrypt a Python file. The command works and creates the encrypted file, but I cannot call the encrypted file again using “program call” command. Please let…

---

## [Get results at a location (not a gridpoint)](https://forum.itascainternational.com/t/get-results-at-a-location-not-a-gridpoint/1538)

<div class="topic-metadata">

**Author:** [@Zakaria](https://forum.itascainternational.com/u/Zakaria)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 5:02pm UTC](https://forum.itascainternational.com/t/get-results-at-a-location-not-a-gridpoint/1538 "2024-06-20T17:02:12Z")

</div>

Hello everyone, is it possible to get the value of displacement for example at a location that is not a gridpoint ? just like getting the value in Information Control Set — Itasca Software 9.0 documentation (itascacg.co…

---

## [Python None in Fish](https://forum.itascainternational.com/t/python-none-in-fish/966)

<div class="topic-metadata">

**Author:** [@Theophile](https://forum.itascainternational.com/u/Theophile)\
**Replies:** 5\
**Last updated:** [April 2, 2024, 1:01pm UTC](https://forum.itascainternational.com/t/python-none-in-fish/966 "2024-04-02T13:01:57Z")

</div>

Hi everyone! I would have a small request: would it be possible to have a Fish binding to Python None? As of 3DEC v7.00.157, Python None converts to Fish vector3 (0.,0.,0.) while (0.,0.,0.) gives an itasca.vec3 in retu…

---

## [Creation of model using gridpoints and zones](https://forum.itascainternational.com/t/creation-of-model-using-gridpoints-and-zones/1173)

<div class="topic-metadata">

**Author:** [@Umer99](https://forum.itascainternational.com/u/Umer99)\
**Replies:** 3\
**Last updated:** [September 13, 2023, 11:47am UTC](https://forum.itascainternational.com/t/creation-of-model-using-gridpoints-and-zones/1173 "2023-09-13T11:47:37Z")

</div>

Dear all, I hope everyone is doing well. I want to ask if it is possible to create models using gridpoints and zones. Any assistance will be appreciated. Thanks

---

## [Call Python Script with command line arguments within .dat file](https://forum.itascainternational.com/t/call-python-script-with-command-line-arguments-within-dat-file/889)

<div class="topic-metadata">

**Author:** [@yopiprabowo](https://forum.itascainternational.com/u/yopiprabowo)\
**Replies:** 12\
**Last updated:** [February 27, 2024, 4:00pm UTC](https://forum.itascainternational.com/t/call-python-script-with-command-line-arguments-within-dat-file/889 "2024-02-27T16:00:48Z")

</div>

Hi, Is there anyway for us to call a python script within a dat file that includes a command line argument? I have a python script that requires a command line argument and I want to iteratively call this script so I u…

---

## [Gridpoint Fixing: Gridpointarray.in\_group Function Alternative](https://forum.itascainternational.com/t/gridpoint-fixing-gridpointarray-in-group-function-alternative/1316)

<div class="topic-metadata">

**Author:** [@jverkler](https://forum.itascainternational.com/u/jverkler)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 5:56pm UTC](https://forum.itascainternational.com/t/gridpoint-fixing-gridpointarray-in-group-function-alternative/1316 "2024-02-06T17:56:51Z")

</div>

Hello, I am modeling a TBM step-by-step excavation in FLAC3D and have been trying to fix gridpoints (small-strain, gridpoints don’t move) when their deformation exceeds a limit. The gridpoints of interest are at the int…

---

## [Connection between clump and parallel bonds in PFC3D v6](https://forum.itascainternational.com/t/connection-between-clump-and-parallel-bonds-in-pfc3d-v6/1314)

<div class="topic-metadata">

**Author:** [@Ahmed2021](https://forum.itascainternational.com/u/Ahmed2021)\
**Replies:** 3\
**Last updated:** [February 6, 2024, 4:56pm UTC](https://forum.itascainternational.com/t/connection-between-clump-and-parallel-bonds-in-pfc3d-v6/1314 "2024-02-06T16:56:28Z")

</div>

Hi everyone, I am working on modeling a column which is simulated as a group of connected particles using parallel bonds between them to model a flexible structure, and I want to model the foundation as a single pile, a…

---

## [Python API "itasca.dfn" does not work in PFC2D](https://forum.itascainternational.com/t/python-api-itasca-dfn-does-not-work-in-pfc2d/1285)

<div class="topic-metadata">

**Author:** [@pprasad](https://forum.itascainternational.com/u/pprasad)\
**Replies:** 2\
**Last updated:** [January 5, 2024, 5:42pm UTC](https://forum.itascainternational.com/t/python-api-itasca-dfn-does-not-work-in-pfc2d/1285 "2024-01-05T17:42:41Z")

</div>

The command itasca.dfn works seamlessly in PFC3D. However, when I attempt to use it in PFC2D, I encounter an error: “AttributeError: module ‘itasca’ has no attribute ‘dfn’”. Could you advise on the correct usage of this …

---

## [\[Bug report\] Python flowknotarray crashes 3DEC](https://forum.itascainternational.com/t/bug-report-python-flowknotarray-crashes-3dec/1084)

<div class="topic-metadata">

**Author:** [@Theophile](https://forum.itascainternational.com/u/Theophile)\
**Replies:** 4\
**Last updated:** [July 24, 2023, 3:00pm UTC](https://forum.itascainternational.com/t/bug-report-python-flowknotarray-crashes-3dec/1084 "2023-07-24T15:00:20Z")

</div>

Hi! Recently, I encountered a bug when working with flowknots in 3DEC: any access to groups through the Python flowknotarray API makes the session crash. I provide a demo Python script below. Hopefully, this correctio…

---

## [No data scalars or geometry Flac3D-python API?](https://forum.itascainternational.com/t/no-data-scalars-or-geometry-flac3d-python-api/913)

<div class="topic-metadata">

**Author:** [@Anorriz](https://forum.itascainternational.com/u/Anorriz)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 5:22pm UTC](https://forum.itascainternational.com/t/no-data-scalars-or-geometry-flac3d-python-api/913 "2023-02-09T17:22:01Z")

</div>

Hello dear colleagues, Sometimes we use Flac3D for different stuffs to take advantage of its geometry-space and geometry-distance flagging logic (I know this is not Flac3D exclusive). Right now I’m writing a simple scr…

---

## [How to create clumps in PFC 7 individually](https://forum.itascainternational.com/t/how-to-create-clumps-in-pfc-7-individually/840)

<div class="topic-metadata">

**Author:** [@Ahmed2021](https://forum.itascainternational.com/u/Ahmed2021)\
**Replies:** 1\
**Last updated:** [November 28, 2022, 5:02pm UTC](https://forum.itascainternational.com/t/how-to-create-clumps-in-pfc-7-individually/840 "2022-11-28T17:02:23Z")

</div>

Hello everyone, I am trying to build a circular arrangement of clumps inside an assembly to represent a circular shape tunnel. This arrangement I did it as a group of spheres assigned to these particles. However, I want…

---

## [System Exception Error in PFC3D](https://forum.itascainternational.com/t/system-exception-error-in-pfc3d/834)

<div class="topic-metadata">

**Author:** [@Ahmed2021](https://forum.itascainternational.com/u/Ahmed2021)\
**Replies:** 1\
**Last updated:** [November 25, 2022, 4:30pm UTC](https://forum.itascainternational.com/t/system-exception-error-in-pfc3d/834 "2022-11-25T16:30:45Z")

</div>

Hello everyone, I am facing an error that keep showing when trying to import external package written using Cython inside PFC3D simulation, and it shows system exception error and forced shutdown. Here is attached scree…

---

## [How can I deliver vector type variables in Python to Itasca command?](https://forum.itascainternational.com/t/how-can-i-deliver-vector-type-variables-in-python-to-itasca-command/390)

<div class="topic-metadata">

**Author:** [@ppk](https://forum.itascainternational.com/u/ppk)\
**Replies:** 8\
**Last updated:** [November 14, 2022, 1:50pm UTC](https://forum.itascainternational.com/t/how-can-i-deliver-vector-type-variables-in-python-to-itasca-command/390 "2022-11-14T13:50:39Z")

</div>

I have tried to create wall in PFC3D by using Python script. However, it fails to deliver vector type variable to Itasca command. Please check the following script. Regards. ==== get\_ipython().magic(‘reset -sf’) im…

[Next page](https://forum.itascainternational.com/tag/python/2.md?match_all_tags=true&page=1&tags%5B%5D=python)
