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’)
import itasca as it
from vec import vec
it.command(""“model new
model configure dynamic
model deterministic off
model large-strain on”"")
Hi Hansenn,
You can get a list from Fish in python using the function it.fish.get("listFish").
However, right now the function it.fish.set() does not allow to set a list or np.array from Python to a list in Fish, What you can do is do a loop over Python list and append each element into Fish list.
for i in pyList:
it.command("[fishList('end') = {i}]")
or you can export the Python list into a data file and import again in Fish
Thanks a lot, Huy. What’s the time the function of it.fish.set() will be used? Does the Itasca have the schedule? Itasca’s software will be more powerful If the data can be delivered freely between Fish and Python.
Regards,
Hansenn