CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > ANSA

ANSA scripting - change PIDs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2020, 07:02
Default ANSA scripting - change PIDs
  #1
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, 10:13
Default
  #2
Member
 
Maries
Join Date: Mar 2010
Location: Coimbatore, India
Posts: 76
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, 03:30
Default
  #3
New Member
 
akki
Join Date: Jul 2020
Posts: 5
Rep Power: 6
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

Reply


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 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


All times are GMT -4. The time now is 10:35.