|
[Sponsors] |
April 29, 2019, 12:17 |
forceCoeffs plot error
|
#1 |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Hi Foamers, I used pimpleFoam to simulate an external flow, then I used the command:
Code:
foamMonitor ./postProcessing/forceCoeffs1/0/forceCoeffs.dat 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!! |
|
April 29, 2019, 13:52 |
|
#2 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
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... |
|
April 29, 2019, 15:02 |
|
#3 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
I am just simply typing in Code:
foamMontion /.postProcessing/forceCoeffs1/0/forceCoeffs.dat |
||
April 30, 2019, 07:58 |
|
#4 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
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. |
|
April 30, 2019, 13:42 |
|
#5 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
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! |
||
May 8, 2019, 10:39 |
|
#6 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
||
May 11, 2019, 12:59 |
|
#7 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 |
Quote:
|
||
Tags |
forcecoeffs, graph, pimplefoam, plotting |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." | sega | OpenFOAM Community Contributions | 12 | February 17, 2010 10:30 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |