CFD Online Logo CFD Online URL
Home > Forums > Mesh Generation & Pre-Processing Software > ANSA

ANSA scripting - change PIDs

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2020, 06:02
Default ANSA scripting - change PIDs
New Member
Fabrizio Marcelli
Join Date: Jan 2020
Posts: 1
Rep Power: 0
fmar is on a distinguished road
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?
fmar is offline   Reply With Quote

Old   January 24, 2020, 09:13
Join Date: Mar 2010
Location: Cologne, Germany
Posts: 75
Rep Power: 16
rmaries is on a distinguished road
use this command
base.ReplaceProperty(old_pid, new_pid)
this will help in changing pids
rmaries is offline   Reply With Quote

Old   October 8, 2020, 02:30
New Member
Join Date: Jul 2020
Posts: 5
Rep Power: 5
akkidivate is on a distinguished road
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')
akkidivate is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ansa Python Scripting Renu123 ANSA 1 September 16, 2017 12:45
Ansa Python Scripting Renu123 ANSA 2 August 29, 2017 03:46
Using Ansa for Mesh generation CellZone ANSA 1 July 7, 2017 05:30
Stage Frame Change + Porous Domain CFX_Beginner CFX 10 August 10, 2015 04:28
No density change - rhoSimplecFoam krapic OpenFOAM 1 November 29, 2014 18:39

All times are GMT -4. The time now is 06:19.