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

[ICEM] ICEM CFD Replay Script Command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2017, 08:00
Default ICEM CFD Replay Script Command
  #1
New Member
 
Vicky
Join Date: Aug 2017
Posts: 1
Rep Power: 0
ANSYS_Newbie is on a distinguished road
Hello,

I have a full script ready. I intend to use the script to do over 80 meshes with slightly varying geometry. The problem I currently have with my script file is that it's trying to import the geometry file from a specific directory. I was wondering if it's possible to select the geometry file from the same folder where the script is run from by default in a much more general context.

This is how the first couple lines of the script looks like,

Quote:
ic_undo_group_begin
ic_geo_cre_geom_input {C:/Users/***/Desktop/SCRIPT NACA0012/NACA0012.dat} 0.001 input PNTS pnt CRVS crv SURFS srf
ic_boco_solver
I tried to simply omit the C:/Users... simply with a "{./NACA0012.dat}" However that didn't work. Any clue what I could do?

Regards,
Vicky
ANSYS_Newbie is offline   Reply With Quote

Old   August 25, 2017, 09:21
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Hi Vicky,

ICEM does understand relative paths, which means simply "NACA.dat" would be sufficient, if the file is in the current work directory.
In windows, if you use the start menu link to ICEM your default current-work-directory is your home/user directory (i believe).
Use "ic_chdir" to go into a different, desired directory:

Code:
ic_chdir "C:/CFD/..."
Put this somewhere in the beginning of your script.

It would be better, if you can start ICEM within the desired directory from the begin. Then the current work directory is already set to the desired directory.
The neccessarity to set a working directory is coming from the tcl-environment which ICEM's GUI is written in.

Best regards,
Sebastian
bluebase is offline   Reply With Quote

Old   June 12, 2019, 18:58
Default ICEM CFD Scripting Error
  #3
New Member
 
Anup Jain
Join Date: Mar 2019
Location: New Hampshire
Posts: 23
Rep Power: 7
jainanup27 is on a distinguished road
Had to remove the post since I posted in the wrong thread:

The problem is at: ICEM Scripting Issues

Last edited by jainanup27; June 13, 2019 at 06:18.
jainanup27 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
[ICEM] Remeshing script using ICEM CFD replay mateusdias89 ANSYS Meshing & Geometry 2 February 15, 2015 15:18
Learn ANSYS ICEM CFD easy_astronaut ANSYS 2 December 15, 2013 16:34
Using ICEM CFD to repair/edit ANSYS Meshing Kaaji1359 ANSYS 2 July 30, 2013 11:28
[ICEM] Export unstructured periodic mesh from ICEM CFD to Fluent ivanddd ANSYS Meshing & Geometry 1 February 3, 2011 01:51
ICEM CFD 5.1 Hex-Tet mesh merging failure bogesz CFX 1 January 29, 2005 07:46


All times are GMT -4. The time now is 20:52.