CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Star-CD batch mode error (https://www.cfd-online.com/Forums/siemens/56653-star-cd-batch-mode-error.html)

Karl June 8, 2008 00:18

Star-CD batch mode error
 
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

TG June 8, 2008 03:45

Re: Star-CD batch mode error
 
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.

Karl June 8, 2008 04:03

Re: Star-CD batch mode error
 
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.


Pauli June 8, 2008 10:16

Re: Star-CD batch mode error
 
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.


Karl June 8, 2008 10:21

Re: Star-CD batch mode error
 
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

Andrea June 8, 2008 12:18

Re: Star-CD batch mode error
 
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...

Pauli June 8, 2008 13:12

Re: Star-CD batch mode error
 
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.


Karl June 8, 2008 22:01

Re: Star-CD batch mode error
 
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

windows user June 8, 2008 22:58

Re: Star-CD batch mode error
 
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?


Karl June 8, 2008 23:05

Re: Star-CD batch mode error
 
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

Kloth Boder June 9, 2008 22:04

Re: Star-CD batch mode error
 
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

Karl June 11, 2008 23:11

Re: Star-CD batch mode error
 
I re installed, still no STAR shell. Any idea as to what it could be missing??


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