itasca.util.PFC2D_Connection Class Methods

class itasca.util.PFC2D_Connection

Launch and connect to PFC2D.

connect() → None.

Connect to Itasca software, read fishcode to confirm connection. Call this function to establish the socket connection after calling the start method to launch the code.

end() → None.

Close the socket connection.

receive() → any.

Read an item from the Itasca code.

send(data: any) → None.

Send an item to the Itasca code.

start(datafile_name: str) → None.

Launch Itasca software in a separate process, open the specified data file. The green execute button must be pressed in the Itasca software to start the calculation.