|
[Sponsors] |
January 22, 2020, 07:02 |
ANSA scripting - change PIDs
|
#1 |
New Member
Fabrizio Marcelli
Join Date: Jan 2020
Posts: 1
Rep Power: 0 |
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? |
|
January 24, 2020, 10:13 |
|
#2 |
Member
Maries
Join Date: Mar 2010
Location: Coimbatore, India
Posts: 76
Rep Power: 16 |
use this command
base.ReplaceProperty(old_pid, new_pid) this will help in changing pids |
|
October 8, 2020, 03:30 |
|
#3 |
New Member
akki
Join Date: Jul 2020
Posts: 5
Rep Power: 6 |
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') |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ansa Python Scripting | Renu123 | ANSA | 1 | September 16, 2017 13:45 |
Ansa Python Scripting | Renu123 | ANSA | 2 | August 29, 2017 04:46 |
Using Ansa for Mesh generation | CellZone | ANSA | 1 | July 7, 2017 06:30 |
Stage Frame Change + Porous Domain | CFX_Beginner | CFX | 10 | August 10, 2015 05:28 |
No density change - rhoSimplecFoam | krapic | OpenFOAM | 1 | November 29, 2014 19:39 |