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

FoamLog for my case

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 13, 2006, 23:04
Default Hi friends, I am trying to
  #1
Senior Member
 
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 8
liugx212 is on a distinguished road
Hi friends,

I am trying to get the plot of the case. After I used "foamJob buoyantFoam . hotRoom" and got computing result, but when I used the foamLog to plot, I was told as follows error, Could any friend do me a help?

Thanks a lot.

Error:
[liu@liu buoyantFoam]$ foamLog . hotRoom logFile
foamLog: Cannot read log logFile
or
[liu@liu buoyantFoam]$ foamLog . hotRoom log
foamLog: Cannot read log log
liugx212 is offline   Reply With Quote

Old   June 14, 2006, 01:16
Default Did you create the log file in
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
Did you create the log file in the first place: this is the stuff that the solver writes on the screen (stored in a file). You should do somehing like

icoFoam <root> <case> | tee log

or similar: that will leave you a log file.


Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   June 14, 2006, 09:29
Default Hi Hrvoje Jasak, Many thank
  #3
Senior Member
 
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 8
liugx212 is on a distinguished road
Hi Hrvoje Jasak,

Many thanks for your advice. I got some files in logs directory. But I also want to get the plot figure as your given on http://www.cfd-online.com/OpenFOAM_D...ages/1/17.html

Could you please give more advice?

Thanks again.
liugx212 is offline   Reply With Quote

Old   June 14, 2006, 09:37
Default Aha. Go to the logs directory
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
Aha. Go to the logs directory and type

xmgrace Ux_0 Uy_0 p_0 k_0 epsilon_0

If you haven't got xmgrace, please install it - it will be one of the rpm packages or downloaded free off the web. You can then play with the legend and axes to get the picture you want.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   June 27, 2006, 22:42
Default Hi Hrvoje Jasak, Thanks so
  #5
Senior Member
 
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 8
liugx212 is on a distinguished road
Hi Hrvoje Jasak,

Thanks so much. But I still have a question. I have some components such as p (pressure), rho (density) and T (temperature) etc which were defined in createFields file. But after running: icoFoam <root> <case> | tee log &
foamLog . hotRoom log. I only get some files as Ux_0 Uy_0 p_0 k_0 etc. Actually, I want to get the values for each components because I want to plot them with time. Could you please give some advice?

Thanks in advance.
liugx212 is offline   Reply With Quote

Old   June 28, 2006, 11:03
Default Hi friends, Could you pleas
  #6
Senior Member
 
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 8
liugx212 is on a distinguished road
Hi friends,

Could you please give advice how to plot multi-component?

Thanks so much.
liugx212 is offline   Reply With Quote

Old   June 18, 2008, 08:16
Default Hi everybody, Sorry for dig
  #7
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 8
fw407 is on a distinguished road
Hi everybody,

Sorry for digging out this old thread. I am also trying to make OF to plot the residual history for my case. As a test, I try to plot the residuarl history for plateHole. Afte having created the "logs" file, I cd into the "logs" directory and type

snail@snail-laptop:~/OpenFOAM/snail-1.3/run/tutorials/stressedFoam/plateHole/logs$ xmgrace UxFinalRes_0

I always get something like "xmgrace: Symbol `_XmStrings' has different size in shared object, consider re-linking" in the terminal, and there is not graph drawn in the grace. Does anybody know how to fix it?

(PS: I am using Ubuntu 7.10)

Thanks in advance!

feng
fw407 is offline   Reply With Quote

Old   June 18, 2008, 08:27
Default Looks like a mismatch in the m
  #8
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Looks like a mismatch in the motif versions.
If you try a plain "xmgrace" (without any arguments) and see the same error, you can be sure that it has nothing to do with OpenFOAM.

Take a look through Ubuntu or other Linux forums to see why the library and executable aren't matching.
olesen is offline   Reply With Quote

Old   June 18, 2008, 08:27
Default It seems that your xmgrace sof
  #9
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
It seems that your xmgrace software is not properly installed. Can you ran it at all?

Dragos
dmoroian is offline   Reply With Quote

Old   June 18, 2008, 13:12
Default Hi Mark, Dragos, Thanks for
  #10
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 8
fw407 is on a distinguished road
Hi Mark, Dragos,

Thanks for your quick reply!

I try a plain "xmgrace" and see the same error. There are some errors about compatibility in the process of installation,maybe "xmgrace" is not compatible with ubuntu 7.10.

Is there an alternative method of plotting the graph in OF?

feng
fw407 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
Using foamLog liamm OpenFOAM Running, Solving & CFD 14 August 29, 2010 05:12
Help! Should I use LES in this case. Thanks. Feng FLUENT 4 April 25, 2008 17:04
Cloning a case or creating a new case for 16 processes mellanoxuser OpenFOAM Running, Solving & CFD 0 February 8, 2008 17:52
Problems with foamLog and interFoam OF 14 sinusmontis OpenFOAM Bugs 2 June 1, 2007 08:57
Problem seeing new case in case browser alan_fergus OpenFOAM Pre-Processing 9 June 22, 2006 03:46


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