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

to run a replayfile in batch mode from UNIX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2011, 07:31
Default to run a replayfile in batch mode from UNIX
  #1
New Member
 
Join Date: Sep 2011
Posts: 9
Rep Power: 14
froztbear is on a distinguished road
Hello!

I experience some problems while running my replay-file in unix command prompt.
To run it from my computer I always write following in the "shell" window:
vglrun -fps 24 directorysource
To run it in batch mode i just add -batch in the end. And then it seems to start in a batch mode. If I want to run a .rpl file I just add:
-batch -script myreplay.rpl

The first line coming up is "no tetin database available" followed by a lot of "if".
Its hard to explain the problem but is there anyone who have had the same problem?

It works good when I run the script manually in the GUI, but I cannot get it work in batch mode.
How can I know that ICEM is started in batch mode? Does the original commands working in batchmode? For example "ic_chdir mynewdirectory"??

Thank you in advance.
froztbear is offline   Reply With Quote

Old   October 10, 2011, 07:35
Wink
  #2
New Member
 
Join Date: Sep 2011
Posts: 9
Rep Power: 14
froztbear is on a distinguished road
Hello everybody. I have now found the first error controlling either if it is running in batch mode or not. I found a solution and I can launch ICEM from different sources (directories) and I just changed this one.
To find the good source I simply went in to ICEM (gui mode) and ran the script and checked in the log down middle of the GUI (not in the replay script). The differences between those is that the originial log writes the path where everthing happens.
When it is running in batchmode, the line in the UNIX prompt starts with <med>

I still have the problem when I running my script. "no tetin database available". I am loading a .model file inside my script and I will try now to load a tetin file instead. The replayscript is still working fine inside ICEM, it's just some error in the batch mode.

Updating will follow
froztbear is offline   Reply With Quote

Old   October 10, 2011, 10:15
Default
  #3
New Member
 
Join Date: Sep 2011
Posts: 9
Rep Power: 14
froztbear is on a distinguished road
I have finally reach the root of the problems.
I have a problem when I try to run a script (replay) file when the geometry is a .model file (CATIA v4)
I don't know why it doesn't work but it does not When I run the script starting from a .tin file, I will experience no problem at all..
To create a .tin file I simply try to import a .model file and directly save it as a .tin file. This works perfectly inside ICEM but not in -batch mode. I have tried to do one big script, two different scripts but nothing works.

With one script:
1. import .model
2. save it as .tin file
3. run a script file that will generate topology, global and surface mesh and density.

With two scripts:
1. The first script imports .model file and save it as a .tin file
2. The next script does the point nr 3 in the "with one script"..

Is there any way to run replay file when the geometry is .model?
Does it works for you or is it just me that experience problems when the geometry is not a .tin from the beginning?

Thanks in advance!
froztbear is offline   Reply With Quote

Old   October 18, 2011, 05:11
Default
  #4
New Member
 
Join Date: Sep 2011
Posts: 9
Rep Power: 14
froztbear is on a distinguished road
Haha! This is a thread with just me and it feels strange.
Just to let you know, I have now solved my problem.

When I ran the script file in the GUI, everything was working.
When I ran the script in batch mode I got the answer that "no tetin database available"

When you load a .model -file inside the GUI, it saves automatically a .tin file on your hard-drive.
Inside the script it was saved in a different way, more like the .tin-file was loaded before the conversion.
Therefor, in batch mode, the .tin file (that still not existed) was asked and therefor I got the output "no tetin database available".

To solve this, I just went in to the script-file and changed the beginning rows so that the conversion and saving of the .tin file was before the loading part.

I hope you got it!

Good luck out there fellows!
froztbear is offline   Reply With Quote

Old   May 13, 2014, 08:00
Smile
  #5
Member
 
Join Date: Apr 2012
Location: Mainz, Germany
Posts: 60
Rep Power: 14
juzer_700 is on a distinguished road
In my case I want to load the geometry .tin file from matlab and then play the script(reply) file from matlab. Any idea how to load the goemetry file.

thanks.



Quote:
Originally Posted by froztbear View Post
Haha! This is a thread with just me and it feels strange.
Just to let you know, I have now solved my problem.

When I ran the script file in the GUI, everything was working.
When I ran the script in batch mode I got the answer that "no tetin database available"

When you load a .model -file inside the GUI, it saves automatically a .tin file on your hard-drive.
Inside the script it was saved in a different way, more like the .tin-file was loaded before the conversion.
Therefor, in batch mode, the .tin file (that still not existed) was asked and therefor I got the output "no tetin database available".

To solve this, I just went in to the script-file and changed the beginning rows so that the conversion and saving of the .tin file was before the loading part.

I hope you got it!

Good luck out there fellows!
juzer_700 is offline   Reply With Quote

Reply

Tags
batch mode, icem mesh, replay script


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
double precision for batch mode Lawrence STAR-CD 2 April 7, 2010 19:10
need to run in batch amazdeh Main CFD Forum 0 September 14, 2009 14:18
DPM model in parallel batch mode Prashanth FLUENT 2 March 6, 2009 07:54
A Loop problem when running UDF in the batch mode Jun Geng FLUENT 3 July 16, 2008 08:34
CatiaV5 + UNIX + batch mode JB Main CFD Forum 0 March 23, 2005 04:28


All times are GMT -4. The time now is 06:48.