Python Scripting
The Python programming language is embedded inside PFC and FLAC3D. Python is a general purpose programming language with good support for scientific and numerical programming. Python has been extended to allow PFC models to be manipulated from Python programs.
Note
- The FISH programming environment is still available.
- Python has the advantage of being faster, easy to use and has additional functionality.
- An important difference between the Python and FISH programming
environments is that the Python state is not connected to the
model state or saved in the save files. When a
model new
ormodel restore
command is given the FISH programming state is cleared or restored. The Python state is not affected by themodel new
ormodel restore
commands and the Python state is not saved in save files. - Giving the command
python-reset-state false
changes this behavior so the Python state is not cleared by themodel new
ormodel restore
commands. The tutorials and examples here all assume that this command has been given and that the Python state persists after calls tomodel new
ormodel restore
commands.
Python programming tutorials
PFC Python programming tutorials
FLAC3D Python programming tutorials
- Using Python with FLAC3D
- Working with FLAC3D Zones
- Working with FLAC3D Zones Properties
- Working with FLAC3D gridpoints
- Working with Structural Elements
- Extra variables
- Using FLAC3D Groups and Applying Boundary Conditions
- Running parameter studies
- Handling FLAC3D errors
- Inspecting the FLAC3D model geometry
- Python Type System
- Python Callback Functions
- Array Style Programming with FLAC3D and NumPy
Python programming reference
- itasca
- BallBallContact
- BallBallThermalContact
- BallFacetContact
- BallFacetThermalContact
- BallPebbleContact
- BallPebbleThermalContact
- BallRBlockContact
- PebbleFacetContact
- PebbleFacetThermalContact
- PebblePebbleContact
- PebblePebbleThermalContact
- PebbleRBlockContact
- RBlockFacetContact
- RBlockRBlockContact
- attach
- ball
- ballarray
- ballballarray
- ballfacetarray
- ballpebblearray
- ballrblockarray
- clump
- clumparray
- contact
- dfn
- facetarray
- fish
- gridpoint
- gridpointarray
- measure
- pebblearray
- pebblefacetarray
- pebblepebblearray
- pebblerblockarray
- rblock
- rblockarray
- rblockfacetarray
- rblockrblockarray
- util
- vertexarray
- wall
- wallarray
- zone
- zonearray
- vec
Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |