Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2267

Re: Plotting pressure in 3d

From Michael <proximum@land.ru>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plotting pressure in 3d
Date 2014-01-23 02:09 +0700
Organization A noiseless patient Spider
Message-ID <lbp51f$974$1@dont-email.me> (permalink)
References <f280722c-79ee-4947-be55-288630c325bd@googlegroups.com>

Show all headers | View raw


22.01.2014 16:11, marco.campe@gmail.com пишет:
> Hi all,
>
> I'm trying to do the following using gnuplot:
>
> I have a file that contains the 3d data (x,y,z columns) of a geometry (basically a pipe).
>
> In another file, I have to whole pressure distribution for each point p(x,y,z). In order to visualize the pressure in this geometry, I want to plot both the geometry and the pressure in one graph (anything like that http://journal.fluid-power.net/journal/issue6/number8.jpg for instance).
>
> Can somebody help me out here?
>
> Thank you!
>

Hello,

I tried to plot 2d data over the surface with filledcurves, but it seems 
that gnuplot can't do it. So here is another solution with polygons:


set term png enh size 1024,1024
set out 'pipe.png'
set nokey
set style fill solid 1.0
set size ratio 0.8
set pm3d at b interpolate 100,100
set view map
set grid x
set grid y
set grid mxtics
set grid mytics
set object 1 polygon from 30,0 to 30,30 to 80,30 to 85,35 to 85,100 to 
130,100 to 130,0 to 30,0 front
set object 1 polygon fc rgb "white" fillstyle solid 1.0 border rgb "black"
set object 2 polygon from 30,0 to 30,50 to 60,50 to 65,55 to 65,100 to 
30,100 to 30,0 front
set object 2 polygon fc rgb "white" fillstyle solid 1.0 border rgb "black"
splot [30:130][0:100] 'surface.dat' with pm3d notitle

Here is resulting picture:
http://s006.radikal.ru/i214/1401/33/f3ab113a6d99.png


It's an awkward solution, but if you will have enough points on the 
curved area, it would look pretty smoothly.

Best regards,
Michael.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Plotting pressure in 3d marco.campe@gmail.com - 2014-01-22 01:11 -0800
  Re: Plotting pressure in 3d Michael <proximum@land.ru> - 2014-01-23 02:09 +0700

csiph-web