CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

Star-CD batch mode error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 8, 2008, 00:18
Default Star-CD batch mode error
  #1
Karl
Guest
 
Posts: n/a
Hi all,

I am trying to run a simulation using star-cd in batch mode. I use the command prompt and type the command "star" when in the correct directory, and i get the error "'star' is not recognized as an internal or external command, operable program or batch file."

I believe i have installed all the fortran compilers correctly, does anyone have any suggestion of anything i could try?

Regards.

Karl
  Reply With Quote

Old   June 8, 2008, 03:45
Default Re: Star-CD batch mode error
  #2
TG
Guest
 
Posts: n/a
This has nothing to do with fortran compilers. You need to place the directory with the "star" command in it ($STARDIR/bin) in your path so that the computer knows where that command is located. Actually a better solution is to source $STARDIR/etc/setstar which will set your environment up approriately so that this doesn't happen.
  Reply With Quote

Old   June 8, 2008, 04:03
Default Re: Star-CD batch mode error
  #3
Karl
Guest
 
Posts: n/a
I've tried putting $STARDIR/bin in the command and running it, but still nothing.

What do i have to do to source $STARDIR/etc/setstar?

And just to be sure i'm doing this properly, i'm in the command prompt, the current directory is where my star files are kept (C:\star\) and i tried just typing star to start the batch mode, which didn't work, now i've tried placing the directory in as well, but still the same problem.

I'm new to Star-CD so i don't yet know all the ins and outs. So be patient with me, i do appreciate the help.

  Reply With Quote

Old   June 8, 2008, 10:16
Default Re: Star-CD batch mode error
  #4
Pauli
Guest
 
Posts: n/a
Your StarCD installation is not properly configured. The information TG provided is for a UNIX/Linux installation.

Sounds like you are on Windows. You need to set path and environment variables. The installation notes provide the details. I don't know them.

  Reply With Quote

Old   June 8, 2008, 10:21
Default Re: Star-CD batch mode error
  #5
Karl
Guest
 
Posts: n/a
Yes, i am a windows user. and yes i realise that linux would be better to use, but i've been given windows.

i've set up the environmental variables as they say, wondering if there are any windows star users who could help.

thanks
  Reply With Quote

Old   June 8, 2008, 12:18
Default Re: Star-CD batch mode error
  #6
Andrea
Guest
 
Posts: n/a
Hi
sometimes I use Star-Cd on windows but I've never recognized such error...do you use the Star-Launch utility or you write commands in a "cmd" shell?
With the star-launch utility you can check that the starDIR is properly configured...it must looks like C:\Programs\CD Adapco\Star-Cd
And also...set the working directory to the right one and try to launch the sim from the star-launch utility...is MKSTOOLKIT (or the other one) is properly configured and in his directory there mustn't be problem...
  Reply With Quote

Old   June 8, 2008, 13:12
Default Re: Star-CD batch mode error
  #7
Pauli
Guest
 
Posts: n/a
You original post indicates the DOS shell doesn't know where to find the solver executable. So the path and/or environment variable stuff is the likely problem.

Do the simulations run from the GUI? If so then you indeed have the install correct. So the problem must be with the command line approach. One idea is to check that the environment variables & path information get propagated to the DOS shell (use the set command).

I've played with StarCD on Windows. However I've never tried running solves from a DOS shell. So my comments are somewhat generic in nature.

  Reply With Quote

Old   June 8, 2008, 22:01
Default Re: Star-CD batch mode error
  #8
Karl
Guest
 
Posts: n/a
Hi, my GUI mode works, i can run star interactively there, but as i'm using a moving mesh i have to use batch mode, the only way i know how is from the cmd.

i used the set command, and my STARDIR comes up correctly, should star be in there already as a batch file or something? its not.

ok, just back to basics here, this is what i have been told i am to do. 1. Save my star model in a working directory (close to the root, with folders containing no spaces), in this case c:\d1\ 2. use the command prompt, change current directory to the working directory 3. type 'star' and it should be away. this is where it tells me star is not a batch file.

if i am doing it wrong, i'd appreciate the help.

is there a way i can set the 'star' file to be a batch file? i've tried using set star=c:\program files\cd-adapco\star-cd\bin\star.exe doesn't work though
  Reply With Quote

Old   June 8, 2008, 22:58
Default Re: Star-CD batch mode error
  #9
windows user
Guest
 
Posts: n/a
On windows, when you have problems, always use the star-shell from

Help -> STAR-Shell

This way you will revert to a linux type system.

Try to type "which star" or "setstar" in this shell. What happens?

  Reply With Quote

Old   June 8, 2008, 23:05
Default Re: Star-CD batch mode error
  #10
Karl
Guest
 
Posts: n/a
The star shell doesn't open, i'm guessing you mean from the star-launch window. it flashes up for a split second but then closes. i can't see that its displaying anything before it closes either.

i appreciate you all helping me out too. thanks heaps
  Reply With Quote

Old   June 9, 2008, 22:04
Default Re: Star-CD batch mode error
  #11
Kloth Boder
Guest
 
Posts: n/a
Hi

If the shell crashes, this is a problem with your installation. It is certainly related to your batch error actually. The software is certainly missing some components. You stop running and re-install.

Kloth
  Reply With Quote

Old   June 11, 2008, 23:11
Default Re: Star-CD batch mode error
  #12
Karl
Guest
 
Posts: n/a
I re installed, still no STAR shell. Any idea as to what it could be missing??
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel Fluent Error in Batch Mode Justin FLUENT 2 October 27, 2011 15:13
Star-ccm+ batch mode on SGE Karl Jensen CD-adapco 0 February 4, 2009 16:54
fluent stops batch mode on error Ralf Schmidt FLUENT 1 March 1, 2008 11:35
ParaView batch mode error michael OpenFOAM Paraview & paraFoam 0 August 3, 2006 03:04
run star-applications in batch mode thomas CD-adapco 6 November 14, 2004 10:19


All times are GMT -4. The time now is 17:07.