CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

plot over line in stress analysis of a plate with a hole

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Maimouna

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2012, 09:45
Default plot over line in stress analysis of a plate with a hole
  #1
New Member
 
hust
Join Date: Jan 2012
Posts: 12
Rep Power: 14
kebi112358 is on a distinguished road
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!
kebi112358 is offline   Reply With Quote

Old   March 11, 2012, 05:55
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
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
bigphil is offline   Reply With Quote

Old   March 11, 2012, 06:14
Default
  #3
New Member
 
hust
Join Date: Jan 2012
Posts: 12
Rep Power: 14
kebi112358 is on a distinguished road
Thank you for your help.I found that I didn't run gnuplot command in the terminal.I solved the problem as you said.
kebi112358 is offline   Reply With Quote

Old   October 29, 2013, 09:45
Default
  #4
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
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 likes this.
Maimouna is offline   Reply With Quote

Old   August 19, 2014, 14:30
Default
  #5
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 11
nanavati is on a distinguished road
Quote:
Originally Posted by Maimouna View Post
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 is offline   Reply With Quote

Old   August 19, 2014, 15:06
Default
  #6
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 11
nanavati is on a distinguished road
Quote:
Originally Posted by Maimouna View Post
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
nanavati is offline   Reply With Quote

Old   August 20, 2014, 07:43
Default
  #7
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Dear Nanavati,

lots of thanks for your post.
Maimouna is offline   Reply With Quote

Old   October 6, 2014, 14:04
Default Analysis of plate
  #8
New Member
 
Vignesh
Join Date: Oct 2014
Posts: 1
Rep Power: 0
Vignesh G is on a distinguished road
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.
Vignesh G is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modal Analysis of a Submerged Plate in Water Zhang ming Wu CFX 2 June 29, 2010 08:55
errors Fahad Main CFD Forum 0 March 23, 2004 13:20
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 20:16.