CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

forceCoeffs plot error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2019, 11:17
Default forceCoeffs plot error
  #1
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Hi Foamers, I used pimpleFoam to simulate an external flow, then I used the command:
Code:
foamMonitor ./postProcessing/forceCoeffs1/0/forceCoeffs.dat
to plot my coefficients.
However, while my coefficient looks fine inside forceCoeffs.dat and log.pimpleFoam, the plot looks absolutely different from the data.
Here is the plot:

It seems all the value lies on the line only at time 0.

May I know how to fix this?

In case you need the whole case, I uploaded to google drive:
https://drive.google.com/open?id=1EO...XIBP5iN33xp3rW

Thank you very much!!
Jinjolee is offline   Reply With Quote

Old   April 29, 2019, 12:52
Default
  #2
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
This is an axis scaling issue on the gnuplot script part.


Disable the auto scaling and use a manual one ranging for such as 0 < y < 1 for plotting...
mzzmrt is offline   Reply With Quote

Old   April 29, 2019, 14:02
Default
  #3
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Quote:
Originally Posted by mzzmrt View Post
This is an axis scaling issue on the gnuplot script part.


Disable the auto scaling and use a manual one ranging for such as 0 < y < 1 for plotting...
May I know how to set the scaling?
I am just simply typing in
Code:
foamMontion /.postProcessing/forceCoeffs1/0/forceCoeffs.dat
I am not using any script, so I don't know how to regulate the scaling .. Thanks
Jinjolee is offline   Reply With Quote

Old   April 30, 2019, 06:58
Default
  #4
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
I seems you are using a tool named foamMonitor and it uses gnuplot for drawing graphs automatically. I have no idea what foamMonitor is doing anyway so you have dig in the code.
Or you can directly import the *.dat file into any spreadsheet software and draw the graph manually.
mzzmrt is offline   Reply With Quote

Old   April 30, 2019, 12:42
Default
  #5
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Quote:
Originally Posted by mzzmrt View Post
I seems you are using a tool named foamMonitor and it uses gnuplot for drawing graphs automatically. I have no idea what foamMonitor is doing anyway so you have dig in the code.
Or you can directly import the *.dat file into any spreadsheet software and draw the graph manually.
Thank you. I think it will import it in spreadsheet then.
By the way, may I know if I have to use a script, how should I construct it? Is there any example coding? Thanks a lot!
Jinjolee is offline   Reply With Quote

Old   May 8, 2019, 09:39
Default
  #6
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
This kind of scripting is easy. I guess this thread will help:


Tutorial of how to plot residuals !
mzzmrt is offline   Reply With Quote

Old   May 11, 2019, 11:59
Default
  #7
Member
 
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 7
Jinjolee is on a distinguished road
Quote:
Originally Posted by mzzmrt View Post
This kind of scripting is easy. I guess this thread will help:


Tutorial of how to plot residuals !
Thanks a lot. I will look into it
Jinjolee is offline   Reply With Quote

Reply

Tags
forcecoeffs, graph, pimplefoam, plotting


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 09:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


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