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

Maimouna October 29, 2013 10:45

Hi all,

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 in gnuplot
" 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
warning: Skipping unreadable file ''
sets/100/leftPatch_sigmaxx.xy''.

I already sampled the data and I already got sets folder. Gnuplot gives me only the graph of analytical solution.


I've worked on it for several days,but still can't find what's wrong!Please somebody help me!Thanks in advance!

nanavati August 19, 2014 14:30

Quote:

Originally Posted by Maimouna (Post 459667)
Hi all,

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 in gnuplot
" 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
warning: Skipping unreadable file ''
sets/100/leftPatch_sigmaxx.xy''.

I already sampled the data and I already got sets folder. Gnuplot gives me only the graph of analytical solution.


I've worked on it for several days,but still can't find what's wrong!Please somebody help me!Thanks in advance!

Hello, Maimouna

I am also getting the same error !
If you have solved this error, then can you please tell me what was the problem ?

I have installed gnuplot with this command,

sudo apt-get install gnuplot gnuplot-x11 gnuplot-doc

nanavati August 19, 2014 15:06

Quote:

Originally Posted by Maimouna (Post 459667)
Hi all,

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 in gnuplot
" 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
warning: Skipping unreadable file ''
sets/100/leftPatch_sigmaxx.xy''.

I already sampled the data and I already got sets folder. Gnuplot gives me only the graph of analytical solution.


I've worked on it for several days,but still can't find what's wrong!Please somebody help me!Thanks in advance!

after few changes and trails I have got it right ! here is the Solution.

After running the sample command first of all go to the folder,
/postProcessing/sets/100 (not from terminal but from your folder system)

here you need to rename the file leftPatch_sigmaxx.xy as leftPatch_sigmaxx.xy.dat (here notice the extension)

now go back to the terminal and go in the folder,
/stressAnalysis/solidDisplacementFoam/plateHole/postProcessing/sets/100

(Make sure you are in the correct Folder)

then type gnuplot in the terminal, so you will enter the gnuplot.
and now type the below command,

plot [0.5:2] [0:] "leftPatch_sigmaxx.xy.dat", 1e4*(1+(0.125/(x**2))+(0.09375/(x**4)))

you should get the plot :)

Maimouna August 20, 2014 07:43

Dear Nanavati,

lots of thanks for your post.

Vignesh G October 6, 2014 14:04

Analysis of plate
 
I have started using octave and trying to analyse the plate with hole subjected to tensile load. I have to make plots of analytical and numerical solutions(ansys) which i got using gnu octave. Can anyone tell me how to start with the coding.


All times are GMT -4. The time now is 09:30.