CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Help me with sonicFoam (http://www.cfd-online.com/Forums/openfoam-solving/60388-help-me-sonicfoam.html)

marcelo December 9, 2005 01:42

Hello... I'm a new user of
 
Hello...

I'm a new user of foam... I have been studying the tutorials. I'm trying to make run the shockTube of sonicFoam, but from the beginning appears nan when run the program...

Can you help me to run the program?... Please.

Regards
Marcelo.

niklas December 9, 2005 07:33

You most likely forgot to init
 
You most likely forgot to initialize the fields.

Go to the setShock directory and compile the code with wmake.

and then run setShock before you run sonicFoam
if you get an error message from running setShock you probably forgot to rehash (update the executables in your $PATH).

N

marcelo December 9, 2005 15:48

I can't run setShock. I did no
 
I can't run setShock. I did not understand that I had to do to avoid the error...

foam@linux:~/OpenFOAM/foam-1.2/run/tutorials/sonicFoam/shockTube> shockTube . setShock
bash: shockTube: command not found
foam@linux:~/OpenFOAM/foam-1.2/run/tutorials/sonicFoam/shockTube>

Marcelo

hjasak December 9, 2005 17:52

Doh! setShock
 
Doh!

setShock <root> <case>

setShock $FOAM_RUN shockTube

You will, of course, need to compile it first - it lives in the tutorial directory.

Better?

Hrv

marcelo December 10, 2005 02:46

Even errors appears... I don't
 
Even errors appears... I don't know what I am doing badly...

when I write

setShock $FOAM_RUN shockTube

appear

--> FOAM FATAL ERROR : setShock: Cannot open case directory "/home/FOAM/OpenFOAM/foam-1.2/run/shockTube"

and when I write

~/OpenFOAM/foam-1.2/run/tutorials/sonicFoam/shockTube> setShock . shockTube

appear

-> FOAM FATAL ERROR : setShock: Cannot open case directory "/home/FOAM/OpenFOAM/foam-1.2/run/tutorials/sonicFoam/shockTube/shockTube"


Marcelo

ploceus December 10, 2005 02:57

Hi. In sonicFoam directory, t
 
Hi.
In sonicFoam directory, type
$ blockMesh . shockTube
if you have not done this yet.

Then type
$ sonicFoam . shockTube

Hope this helps.

niklas December 10, 2005 03:57

OK, you did exactly what i sus
 
OK, you did exactly what i suspected, but you obviously dont know enough unix to understand what the problem is, so I suggest you close ALL your terminal windows and open a new terminal window and try in that.

N


All times are GMT -4. The time now is 22:08.