CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   plot over line in stress analysis of a plate with a hole (http://www.cfd-online.com/Forums/openfoam-post-processing/98421-plot-over-line-stress-analysis-plate-hole.html)

kebi112358 March 10, 2012 09:45

plot over line in stress analysis of a plate with a hole
 
I'm now studying the part of stress analysis of plate with a hole according to the tutorial.When I was plotting both the numerical data and analytical solution exactly using the command line
" plot [0.5:2] [0:] 'sets/100/leftPatch_sigmaxx.xy',
1e4*(1+(0.125/(x**2))+(0.09375/(x**4)))".

It always ended up like this
"plot: sets/100/leftPatch_sigmaxx.xy,1e4*(1+(0.125/(x**2))+(0.09375/(x**4))): No such file or directory
plot: ignoring this file"
I've worked on it for several days,but still can't find what's wrong!Please somebody help me!Thanks in advance!

bigphil March 11, 2012 06:55

Hi,

Are you running the solidDisplacement tutorial?

After running the solver, you sample the data with:
Code:

sample
sample should create a sets directory with the sampled data inside in time steps. Do you have this sets directory?

If you do have these sampled files, you can plot them using gnuplot. To use gnuplot, type the command:
Code:

gnuplot
This brings you to the gnuplot command line.

Then you can plot the sampled stresses against the analytical solution using the command:
Code:

plot [0.5:2] [0:] 'sets/100/leftPatch_sigmaxx.xy', 1e4*(1+(0.125/(x**2))+(0.09375/(x**4)))
Philip

kebi112358 March 11, 2012 07:14

Thank you for your help.I found that I didn't run gnuplot command in the terminal.I solved the problem as you said.


All times are GMT -4. The time now is 21:25.