CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Help me with sonicFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2005, 00:42
Default Hello... I'm a new user of
  #1
marcelo
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   December 9, 2005, 06:33
Default You most likely forgot to init
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 692
Rep Power: 18
niklas will become famous soon enough
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
niklas is offline   Reply With Quote

Old   December 9, 2005, 14:48
Default I can't run setShock. I did no
  #3
marcelo
Guest
 
Posts: n/a
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
  Reply With Quote

Old   December 9, 2005, 16:52
Default Doh! setShock
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,742
Rep Power: 20
hjasak will become famous soon enough
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
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   December 10, 2005, 01:46
Default Even errors appears... I don't
  #5
marcelo
Guest
 
Posts: n/a
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
  Reply With Quote

Old   December 10, 2005, 01:57
Default Hi. In sonicFoam directory, t
  #6
New Member
 
Charles Ju
Join Date: Mar 2009
Posts: 15
Rep Power: 7
ploceus is on a distinguished road
Hi.
In sonicFoam directory, type
$ blockMesh . shockTube
if you have not done this yet.

Then type
$ sonicFoam . shockTube

Hope this helps.
ploceus is offline   Reply With Quote

Old   December 10, 2005, 02:57
Default OK, you did exactly what i sus
  #7
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 692
Rep Power: 18
niklas will become famous soon enough
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
niklas is offline   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
SonicFoam stvtiegh OpenFOAM Running, Solving & CFD 1 June 26, 2008 09:30
PISO in sonicFoam srinath OpenFOAM Running, Solving & CFD 0 June 20, 2008 03:21
SonicFoam and SIMPLE lgriffiths OpenFOAM Running, Solving & CFD 1 March 8, 2008 10:28
SonicFoam error 21kalee OpenFOAM Running, Solving & CFD 6 January 2, 2008 14:00
SonicFoam 141dev changes what do they mean mike_jaworski OpenFOAM Running, Solving & CFD 0 December 30, 2007 15:55


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