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

[ICEM] icem cfd batch mode

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2013, 19:24
Default icem cfd batch mode
  #1
New Member
 
Dongwon
Join Date: May 2013
Posts: 10
Rep Power: 13
srobin11 is on a distinguished road
Hello,

I was trying to run icem cfd replay file in batch mode. When I run the replay file in just normal mode( not in batch mode, nomal run in the icem cfd), there is no problem. But, when I try to run in batch mode, it's showing error during the run.

error writing file. \hex.uns:
error opening file.\hex.uns:Permission deniederror opening file.\hex.uns:
Permission denied
while executing
.......

like this.

Is there anyone experience the same error? Or anyone know why it's happening? Thank you,

DW
srobin11 is offline   Reply With Quote

Old   August 7, 2013, 10:54
Default write permissions
  #2
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
hi,

i havent had this problem, but from what it looks like, check you are writing to a partition on you HDD for which you have permission ...

cheers
jonathan

Quote:
Originally Posted by srobin11 View Post
Hello,

I was trying to run icem cfd replay file in batch mode. When I run the replay file in just normal mode( not in batch mode, nomal run in the icem cfd), there is no problem. But, when I try to run in batch mode, it's showing error during the run.

error writing file. \hex.uns:
error opening file.\hex.uns:Permission deniederror opening file.\hex.uns:
Permission denied
while executing
.......

like this.

Is there anyone experience the same error? Or anyone know why it's happening? Thank you,

DW
Jonathan is offline   Reply With Quote

Old   August 7, 2013, 14:43
Default
  #3
New Member
 
Dongwon
Join Date: May 2013
Posts: 10
Rep Power: 13
srobin11 is on a distinguished road
Hi Jonathan,

Thanks for reply. I solved the problem. It was due to wrong directory path, put not right directory path in the command. Thanks,

DW
srobin11 is offline   Reply With Quote

Old   December 29, 2013, 18:41
Default icem cfd batch mode
  #4
New Member
 
Join Date: Dec 2013
Posts: 2
Rep Power: 0
Christian11 is on a distinguished road
Hi srobin11,

I am facing the same error when I try to run ICEM CFD out of ANSYS Meshing in batch mode.
When choosing "inveractive" in ANSYS Meshing I can run the ICEM script file manually without problems. When choosing "batch" it gives me the same error as you experienced.
You said that you had not put the correct directory path in the command (in the script file?). (I am wondering, because with wrong directory paths it should not run manually either?)
Can you explain, what you have changed (line and action) in your script file to get it work in batch mode?

Thanks for any help.
Christian11 is offline   Reply With Quote

Old   January 6, 2014, 13:11
Default
  #5
New Member
 
Join Date: Dec 2013
Posts: 2
Rep Power: 0
Christian11 is on a distinguished road
Ok, now it works.
Creating the path, ICEM is requesting, solves the problem.

Quote:
Originally Posted by Christian11 View Post
Hi srobin11,

I am facing the same error when I try to run ICEM CFD out of ANSYS Meshing in batch mode.
When choosing "inveractive" in ANSYS Meshing I can run the ICEM script file manually without problems. When choosing "batch" it gives me the same error as you experienced.
You said that you had not put the correct directory path in the command (in the script file?). (I am wondering, because with wrong directory paths it should not run manually either?)
Can you explain, what you have changed (line and action) in your script file to get it work in batch mode?

Thanks for any help.
Christian11 is offline   Reply With Quote

Old   May 14, 2014, 06:08
Unhappy Help Needed
  #6
Member
 
Join Date: Apr 2012
Location: Mainz, Germany
Posts: 60
Rep Power: 14
juzer_700 is on a distinguished road
I am running ICEM CFD on Linux and I am trying to open the replay file via command line terminal. My replay file is in the correct directory as I am able to load it when using GUI.

So I just wrote:

icemcfd geoRepair_juzer.rpl

And I am getting the following error:

couldn't read file "geoRepair_juzer.rpl": no such file or directory
while executing
"source geoRepair_juzer.rpl"
invoked from within
"script_interp eval [list source $file]"
(".rpl" arm line 2)
invoked from within
"switch [file extension $file] {
.prj - .wbpj { aie_openProject $file }
.tin { aie_open_geom 1 [list $file] }
.uns { aie_open_Mesh 1 "" ..."
(procedure "aie_openFile" line 3)
invoked from within
"aie_openFile $f "
(procedure "AIEnvMain" line 432)
invoked from within
"AIEnvMain"
(file "/usr/local/ansys_inc/v145/icemcfd/linux64_amd/lib/ai_env/init.tcl" line 1878)
invoked from within
"source [file join $env(ICEM_ACN) lib ai_env init.tcl]"
invoked from within
"if {[info exists env(ICEM_AI_ENVIRONMENT)] == 1} {
if { $env(ICEM_AI_ENVIRONMENT) == 1 } {
if {[info exists env(MED_ROOT)] &&
..."
(file "/usr/local/ansys_inc/v145/icemcfd/linux64_amd/lib/med/med_start.tcl" line 27)
invoked from within
"source $med_root/lib/med/med_start.tcl"
invoked from within
"if [file exists $med_root/lib/med/med_start.tcl] {
source $med_root/lib/med/med_start.tcl
} elseif [file exists $med_root/../med/lib/med/med_start..."


PLEASE HELP ME SORT OUT THIS ISSUE
juzer_700 is offline   Reply With Quote

Old   May 15, 2014, 00:08
Default
  #7
New Member
 
Dongwon
Join Date: May 2013
Posts: 10
Rep Power: 13
srobin11 is on a distinguished road
hello,

so, you typed this, icemcfd geoRepair_juzer.rpl, in the command line?
I am not sure linux gui uses the same command format as windows, but I needed to use type the directory path in window batch command. You should find and use the right batch run command for linux when you run batch mode. You may look that up in the forum.

DW
srobin11 is offline   Reply With Quote

Old   May 15, 2014, 04:53
Default
  #8
Member
 
Join Date: Apr 2012
Location: Mainz, Germany
Posts: 60
Rep Power: 14
juzer_700 is on a distinguished road
Hey thanks for the reply. I searched a lot about the command line in Linux to run replay file in ICEM. But no success this now.

What do you mean by using right batch run command?

And which forum are you talking about.

Thanks again for your reply.

Regards,
Juzer

Quote:
Originally Posted by srobin11 View Post
hello,

so, you typed this, icemcfd geoRepair_juzer.rpl, in the command line?
I am not sure linux gui uses the same command format as windows, but I needed to use type the directory path in window batch command. You should find and use the right batch run command for linux when you run batch mode. You may look that up in the forum.

DW
juzer_700 is offline   Reply With Quote

Old   May 15, 2014, 08:02
Default
  #9
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Hi,

to run ICEMCFD in batch mode (i.e. without the gui) and using a replay script at the same time (i.e. automated commands from script file), the command (on linux machines) is:

Code:
icemcfd -batch -script name-of-script.rpl
You may need to include the full path to the ICEM binary/executable, if it is not included in your $PATH variable, which on default linux 64-bit installs is something like:

Code:
/opt/ansys_inc/v150/icemcfd/linux64_amd/bin/icemcfd
good luck and regards
jonathan
Jonathan is offline   Reply With Quote

Old   November 23, 2014, 07:25
Default How to run batch file in ICEM CFD in batch mode in windows
  #10
New Member
 
Mohammad Irfan Alam
Join Date: Jun 2014
Posts: 1
Rep Power: 0
irfannoble is on a distinguished road
I have 50 set of ICEM CFD .rpl format file. I want to run them one by one and save their meshing in specific folder automatically. How to run all set of .rpl in batch mode in windows? Many thanks in advance.
irfannoble is offline   Reply With Quote

Old   November 23, 2014, 08:18
Default
  #11
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Easiest way is to write a windows batch file (xxx.bat) and CD into each directory in the batch file calling Icem and its corresponding replay script to in turn ...

I use Linux mainly so I can't remember the windows bat format off hand , sorry ...
irfannoble likes this.
Jonathan is offline   Reply With Quote

Old   November 24, 2014, 12:50
Default
  #12
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Hi Mohammad,

another way is to use a small tcl-script. The rpl-file is already writen in tcl. So you would only need to set a few variables for your parameter and paths.
Check the small example. You could save this as a tcl file and excute this script in icem. Don't forget to replace the parameter in your rpl-file. I guess you may need to extend this code a little bit according to your needs.

With regards,
Sebastian

Code:
set parameterlist {1.2 2.3 4.5 ...}

foreach designpoint $parameterlist {
  set variable1 $designpoint
  set pathname "wheretosave"

  ic_unload_tetin
  ic_hex_unload_blocking 
  ic_unload_mesh 

  source yourrplyfile.rpl
}
bluebase is offline   Reply With Quote

Old   July 31, 2017, 13:08
Default Error accessing icemcfd in linux
  #13
New Member
 
Sunil
Join Date: Aug 2016
Posts: 7
Rep Power: 10
sunilkonatham is on a distinguished road
Hello Everyone,
I tried to access icemcfd in linux command line using below command:
/apps/Ansys/18.0/v180/icemcfd/linux64_amd/bin/icemcfd

It displayed following error, can someone please help?

ICEM_ACN is "/apps/Ansys/18.0/v180/icemcfd/linux64_amd".
ANSYSLIC_DIR is set to /apps/Ansys/18.0/shared_files/licensing
LD_LIBRARY_PATH is "/apps/Ansys/18.0/v180/icemcfd/linux64_amd/lib:/apps/Ansys/18.0/v180/icemcfd/linux64_amd/bin:/apps/Ansys/18.0/v180/icemcfd/linux64_amd/dif/iges:/apps/Ansys/18.0/v180/icemcfd/linux64_amd/../../Framework/bin/Linux64".
args =
Application initialization failed: no display name and no $DISPLAY environment variable
% Exit from ICEM CFD
sunilkonatham is offline   Reply With Quote

Old   August 1, 2017, 12:17
Default
  #14
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
HI Sunil,
the $DISPLAY enivornment variable is not specific to ICEM, though it is a problem specific to linux.
It's a variable pointing to your X-server, which draws all GUIs.

Make sure a x-server is running on your system. If you connect to a remote system, don't forget to open an X-tunnel with your ssh client.

Use google to search for the right settings of your system.

with regards,
Sebastian
bluebase is offline   Reply With Quote

Old   August 7, 2017, 17:38
Default ICEM- Command List
  #15
New Member
 
Nazi
Join Date: May 2016
Posts: 5
Rep Power: 10
CFD-Shiraz is on a distinguished road
Hello everyone,

I'm trying to write a job script and journal file to run my ICEM file on Linux.
Is there any pdf file for ICEM Linux command?
CFD-Shiraz is offline   Reply With Quote

Old   February 28, 2020, 07:39
Default ICEM in batch mode throws error
  #16
New Member
 
KARNATAKA
Join Date: Feb 2020
Posts: 1
Rep Power: 0
shankar.janakiraman is on a distinguished road
I am also getting the same error. I am able to run the same rpl file interactively without even changing a single line in it. Also through CYGWIN bash I am able to run without any problem. Only problem occurs if I run the bash script file which in turn calls ICEM batch file with the argument passed as rpl file name
Any solution or fix will be great and appreciable

thanks in advance.

Quote:
Originally Posted by juzer_700 View Post
I am running ICEM CFD on Linux and I am trying to open the replay file via command line terminal. My replay file is in the correct directory as I am able to load it when using GUI.

So I just wrote:

icemcfd geoRepair_juzer.rpl

And I am getting the following error:

couldn't read file "geoRepair_juzer.rpl": no such file or directory
while executing
"source geoRepair_juzer.rpl"
invoked from within
"script_interp eval [list source $file]"
(".rpl" arm line 2)
invoked from within
"switch [file extension $file] {
.prj - .wbpj { aie_openProject $file }
.tin { aie_open_geom 1 [list $file] }
.uns { aie_open_Mesh 1 "" ..."
(procedure "aie_openFile" line 3)
invoked from within
"aie_openFile $f "
(procedure "AIEnvMain" line 432)
invoked from within
"AIEnvMain"
(file "/usr/local/ansys_inc/v145/icemcfd/linux64_amd/lib/ai_env/init.tcl" line 1878)
invoked from within
"source [file join $env(ICEM_ACN) lib ai_env init.tcl]"
invoked from within
"if {[info exists env(ICEM_AI_ENVIRONMENT)] == 1} {
if { $env(ICEM_AI_ENVIRONMENT) == 1 } {
if {[info exists env(MED_ROOT)] &&
..."
(file "/usr/local/ansys_inc/v145/icemcfd/linux64_amd/lib/med/med_start.tcl" line 27)
invoked from within
"source $med_root/lib/med/med_start.tcl"
invoked from within
"if [file exists $med_root/lib/med/med_start.tcl] {
source $med_root/lib/med/med_start.tcl
} elseif [file exists $med_root/../med/lib/med/med_start..."


PLEASE HELP ME SORT OUT THIS ISSUE
shankar.janakiraman is offline   Reply With Quote

Old   February 29, 2020, 06:22
Default
  #17
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Quote:
Only problem occurs if I run the bash script file which in turn calls ICEM batch file with the argument passed as rpl file name
Quote:
couldn't read file "geoRepair_juzer.rpl": no such file or directory
while executing
"source geoRepair_juzer.rpl"
If you get a "no such file" error, then your wrapper batch file likely contains an error. Please check from which paths you call icem, and where the rpl file is located from that path.
bluebase is offline   Reply With Quote

Old   July 29, 2020, 14:38
Post Automating the Replay Script in Windows
  #18
New Member
 
Rex
Join Date: Jul 2020
Posts: 2
Rep Power: 0
RexSoosan is on a distinguished road
how can i add replay script in icem cfd which is already running by using scheduled script?(OS-windows 10)
i want to automate the loading of replay script in my windows system.
i want to give compute mesh for prism,once the mesh completed i want the script to save the prism file in a particular location with particular name and do exit.once it exits i want to shutdown the system automatically.

The problem is if i add that replay script it is saving the mesh at the time of loading. so i want to make the replay script load automatically after some hours.
how to do that in windows which will get locked after some few minutes?

(I dont want to enter prism parameters in the replay script, that's why i want to start the replay sctipt after giving compute mesh)
Thanks in advance!!
RexSoosan is offline   Reply With Quote

Old   July 31, 2020, 12:47
Default
  #19
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Hi Rex,

i think you would need to read and learn something about the task scheduler in windows.
And you likely need to write a small bat script to start icem with the desired script when the file is found in the search directory. This bat script could then be used as task to be run.

If the replay script contains undesired steps, such as saving of the mesh, remove them. Figure out which parts of that script are the bits you really need.


Best regards,
Sebastian
bluebase is offline   Reply With Quote

Old   July 31, 2020, 14:24
Default
  #20
New Member
 
Rex
Join Date: Jul 2020
Posts: 2
Rep Power: 0
RexSoosan is on a distinguished road
I dont want to open another icem cfd along with a script. i want to load replay script in icem cfd which is already running a mesh.And i know about task scheduler. i think task scheduler can start the app with a script, but it cannot load the script in already running icem cfd.
RexSoosan 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] Icem CFD on Linux mechanicaldesign ANSYS Meshing & Geometry 7 March 11, 2021 20:44
Save images using Fluent in batch processing mode dixitked FLUENT 8 August 29, 2019 13:25
Transport mesh from ICEM CFD, to Fluent, to Sysnoise Wieland FLUENT 2 April 15, 2012 07:28
[ICEM] Export unstructured periodic mesh from ICEM CFD to Fluent ivanddd ANSYS Meshing & Geometry 1 February 3, 2011 01:51
Which is better to develop in-house CFD code or to buy a available CFD package. Tareq Al-shaalan Main CFD Forum 10 June 13, 1999 00:27


All times are GMT -4. The time now is 04:27.