Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

AV Camera:ViewXY setting?

jbschroeder20
Beginner
921 Views
I am trying to get a streamline plot of a 2-D flow visualization. My best solution, so far, is to compute the stream function, and then produce a contour plot using the array visualizer witha rainbowbanded pallette. I'd like to produce an X-Y view plot, like the Camera:ViewXY setting, but cannot seen to achieve it with the **bleep**l & fav calls. I've set the camera angles as suggested in the documentation, but do not get the same result (the depth is still apparent).
Any help?
Also any better sugestions for a flow visualization? A quiver plot, such as MATLAB can produce, might be ideal.
A clip from the plot generating routine:
Code:
      USE AVDEF
      USE AVVIEWER
      
      IMPLICIT NONE

	INTEGER     :: iAVStatus, iT_handle, iStream_Handle, iStreamVZ
      
      CHARACTER   :: RunDate*8, RunTime*10
	CHARACTER   :: GraphTitle*32, GraphAnnotation*255, CRCHAR*1
	REAL(4)     :: camX, camY, camZ
	REAL(4)     :: CamCOI_X, CamCOI_Y, CamCOI_Z

	CRCHAR = CHAR(11)

! set camera Center Of Interest (COI) and viewing position
	CamCOI_X = 0.5
	CamCOI_Y = 0.5
	CamCOI_Z = 0.0
      camX = 0.499
	camY = 0.50
	camZ = 3.00

!   Generate STREAM function plot (streamlines are contours)
	write(GraphTitle,'(A24,F6.1)') 'Stream Function for Ra=',Ra
	write(GraphAnnotation,'(A3,F6.2,A1, A6,F6.4,A1, I3,A16,A1,
     &                       I3,A12,A1, I3,A7)')
     &      'Ra=', Ra,CRCHAR,
     &      'gamma=',gamma,CRCHAR,
     &      Kmax, ' Galerkin modes,',CRCHAR, 
     &      NYmax, ' discrete y,',CRCHAR,
     &      Nmax, ' z nodes'

	call **bleep**lStartWatch(STREAM, iAVStatus)
      call favStartViewer(iStream_Handle, iAVStatus)
      call favSetArray(iStream_Handle, STREAM, iAVStatus)

      call favSetArrayName(iStream_Handle, GraphTitle, iAVStatus)
	call favSetAnnotation(iStream_Handle, GraphAnnotation, iAVStatus)
	call favSetRowColDim (iStream_Handle, 2, 1, iAVStatus)
      call favSetDimName (iStream_Handle, 1, 'Y index', iAVStatus)
      call favSetDimName (iStream_Handle, 2, 'Z index', iAVStatus)
      call favSetAxisLabel(iStream_Handle,Z_axis,
     &                      'Stream Function',iAVStatus)

	call favSetGraphType(iStream_Handle, HeightPlot, iAVStatus) ! or ImageMap or HeightPlot
	call favSetRoi(iStream_Handle, 1, 1, NYMax, iAVStatus)
	call favSetRoi(iStream_Handle, 2, 1, NMax, iAVStatus)
	call favSetPaletteId (iStream_Handle, Rainbow_Banded, iAVStatus)
      call favSetCameraCoi(iStream_Handle,CamCOI_X,CamCOI_Y,CamCOI_Z,
     &             iAVStatus)
      call favSetCameraPosition(iStream_Handle,camX,camY,camZ,
     &             iAVStatus)

      call favUpdate (iStream_Handle, 0, iAVStatus)

      call favShowWindow(iStream_Handle, AV_TRUE, iAVStatus)
	call **bleep**lEndWatch(STREAM, iAVStatus)

Message Edited by jbschroeder20 on 03-23-2005 09:29 AM

0 Kudos
6 Replies
jbschroeder20
Beginner
921 Views
Oh my... I did't realize that some of the Array Visualizer routine names were so offensive :(.

Message Edited by jbschroeder20 on 03-23-2005 09:28 AM

0 Kudos
Steven_L_Intel1
Employee
921 Views
sigh....
0 Kudos
ipattielgc
Beginner
921 Views
I for one, think **bleep** is a very odd prefix for a function name. Sorry, this is the funniest thing I've seen all day! :)
0 Kudos
Steven_L_Intel1
Employee
920 Views
For those who don't know, the dreaded routine prefix is f-a-g.
0 Kudos
Intel_C_Intel
Employee
920 Views

The Intel Array Visualizer supports quiver plots. The attached image is from the sample data file Adriatic.h5. Is this what you are looking for?


John

Message Edited by JohnReadey on 03-23-2005 02:27 PM

Message Edited by JohnReadey on 03-23-2005 02:39 PM

0 Kudos
Intel_C_Intel
Employee
920 Views
For some reason the png attachment shows up fine in Firefox but not in IE. Here's a jpeg version...
John
0 Kudos
Reply