CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[DesignModeler] Scripting named selections for use in downstream applications (ICEM and CFX)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2018, 11:53
Default Scripting named selections for use in downstream applications (ICEM and CFX)
  #1
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 8
jgross is on a distinguished road
Hi everyone,

I have a centrifugal pump fluid domain CAD geometry which I have created in FreeCAD (and so it is a STEP or IGES file). Unfortunately FreeCAD does not support the use of named surfaces, and so I need to use another application to name these faces for downstream applications.

From what I've read, Macro / Script for automatic geometry import, this is not possible using workbench journalling. Therefore I would like to create a script for use in DesignModeler to take in this geometry and create named face selections using some pretty easy criteria (i.e. area and/or a point on the surface).

This is will need to performed from command line. I've only managed to create a js file to import the geometry, which I can run from batch.

Code:
// start from clear scratch
ag.gui.NewFile();
ag.m.ClearAllErrors();
ag.m.NewSession (true);
ag.gui.setUnits(ag.c.UnitMeter, ag.c.UnitDegree, ag.c.No);

// import file
var imp1=ag.b.Import("/home/jg847/PhD_CAD/3D_Geometries/Impeller/Impeller.step");  // IAnsImport
imp1.Name="Impeller_Fluid";
However I don't know and can't seem to find anything detailing the commands for named selections. Does anyone know the commands for this, or can point me in the right direction?

Kind regards,
James
jgross is offline   Reply With Quote

Reply

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
[ICEM] The ICEM Guide for CFX Users JuPa ANSYS Meshing & Geometry 11 September 4, 2017 09:43
ICEM of ANSYS V15: how to export .msh mesh for CFX hydroaero ANSYS 1 March 9, 2015 22:17
ICEM of ANSYS V15: how to export .msh mesh for CFX hydroaero CFX 1 March 9, 2015 22:15
[ICEM] Node Number vs. Node_ID & ICEM vs. CFX Araz ANSYS Meshing & Geometry 1 April 25, 2011 11:03
ICEM 10 mesh scale foe CFX Korsh Mik CFX 2 October 7, 2005 09:07


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