|
[Sponsors] |
![]() |
![]() |
#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!! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 13 ![]() |
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... |
|
![]() |
![]() |
![]() |
![]() |
#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 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 13 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#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! |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 13 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#7 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 8 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
Tags |
forcecoeffs, graph, pimplefoam, plotting |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |