CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   forceCoeffs plot error (https://www.cfd-online.com/Forums/openfoam/217080-forcecoeffs-plot-error.html)

Jinjolee April 29, 2019 11:17

forceCoeffs plot error
 
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:
https://i.ibb.co/RzyWCsV/24.png
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!!

mzzmrt April 29, 2019 12:52

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...

Jinjolee April 29, 2019 14:02

Quote:

Originally Posted by mzzmrt (Post 732165)
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:)

mzzmrt April 30, 2019 06:58

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.

Jinjolee April 30, 2019 12:42

Quote:

Originally Posted by mzzmrt (Post 732255)
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!

mzzmrt May 8, 2019 09:39

This kind of scripting is easy. I guess this thread will help:


https://www.cfd-online.com/Forums/op...residuals.html

Jinjolee May 11, 2019 11:59

Quote:

Originally Posted by mzzmrt (Post 733074)
This kind of scripting is easy. I guess this thread will help:


https://www.cfd-online.com/Forums/op...residuals.html

Thanks a lot. I will look into it


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