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

How to flip the cut using python script?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2017, 14:17
Default How to flip the cut using python script?
  #1
New Member
 
Renuka
Join Date: Aug 2017
Posts: 15
Rep Power: 8
Renu123 is on a distinguished road
I added two cutting plane(parallel to each other) in my model using python script.following function I used to add plane
Quote:
pl1 = base.CreateEntity(deck, "CUTTING PLANE",
('Clip', "YES", 'oX', result[0], 'oY', result[1], 'oZ', result[2],
'xX', 1, 'xY', 0, 'xZ',0,
'zX', 0, 'zY', 0, 'zZ',1))
md_cut = base.GetEntity(deck, "PSHELL", 1)
base.ModelCutAddPlane(md_cut, pl1)
base.ModelCutApply(md_cut)
But problem is that I have to flip 2nd cutting plane to get required output.
I am looking for some function that flip(revert the direction of cut) a cutting plane.

Thank you
Renu123 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
[OpenFOAM] Using python script for automatic post processing of openFoam vPaquet ParaView 12 December 16, 2021 03:30
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
python script to create geometry for salome, and then mesh 6863523 Mesh Generation & Pre-Processing 4 March 18, 2017 09:00
[General] Transfer variables into python script from bash-shell cfdFreshman ParaView 0 December 3, 2015 03:33
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36


All times are GMT -4. The time now is 16:08.