|
[Sponsors] |
[DesignModeler] Scripting named selections for use in downstream applications (ICEM and CFX) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 4, 2018, 11:53 |
Scripting named selections for use in downstream applications (ICEM and CFX)
|
#1 |
Member
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 8 |
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"; Kind regards, James |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |