CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSA (https://www.cfd-online.com/Forums/ansa/)
-   -   ANSA scripting - change PIDs (https://www.cfd-online.com/Forums/ansa/223684-ansa-scripting-change-pids.html)

fmar January 22, 2020 06:02

ANSA scripting - change PIDs
 
Hello everyone,

using python scripting I've created a mapped mesh of shells, starting from a set of four faces. You can think to a squared region, with four equal areas of identical shells.
However, each area I've created have its own PID (I have four PIDs, progressively numbered), despite of a single PID. I've tried, once the mesh is created, to change and set the PID for all the shells to one of the existing ones (e.g. PID 1).

I've tried in different ways but without success. Any suggestions?

rmaries January 24, 2020 09:13

use this command
base.ReplaceProperty(old_pid, new_pid)
this will help in changing pids

akkidivate October 8, 2020 02:30

1. Go to properties
2. select properties to be renamed.
3. Right click on name.
4. In modify just put
subifm($,'old PID name','New PID name')


All times are GMT -4. The time now is 23:32.