forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Visualisation library
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
jcherw



Joined: 27 Sep 2018
Posts: 27
Location: Australia

PostPosted: Thu Oct 11, 2018 10:21 am    Post subject: Visualisation library Reply with quote

Hello: could anyone advise me on a visualisation library to make a 3D plot a a 3D data array (basically a data cube) and do some basic manipulation like plot a slice perpendicular to one of the axes? I looked a Simdem but could not identify an adequate routine. Ideally I'd prefer an open source / free package such as Simdem, but if need be I can bar some reasonable costs for a commercial package (100s of $s)
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 1878
Location: South Pole, Antarctica

PostPosted: Thu Oct 11, 2018 5:53 pm    Post subject: Reply with quote

You will never find what you want sometimes for any money you can bar. Use FTN95 with OpenGL and write such programs yourself. This is easy. I can send you demo written 20 years ago still with FTN77.
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 959
Location: Aerospace Valley

PostPosted: Fri Oct 12, 2018 1:51 am    Post subject: Reply with quote

can you post us an example picture of what you want to achieve ?
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
jcherw



Joined: 27 Sep 2018
Posts: 27
Location: Australia

PostPosted: Sat Oct 13, 2018 6:53 am    Post subject: Reply with quote

See file in this link [url]https://1drv.ms/u/s!AuTT_gAwgmEIhIp_R3CHjfR2JQDeDw[/url] This is a visualization of a 50*25*10 array with the 3rd (z-layer) index as value. This visualization was obtained via exporting a file to Paraview (OS visualisation software, excellent btw). I'd just want to do something basic like this internal in my program so that I can QA before exporting it.
Back to top
View user's profile Send private message
jcherw



Joined: 27 Sep 2018
Posts: 27
Location: Australia

PostPosted: Mon Oct 15, 2018 2:01 am    Post subject: Native %pl Reply with quote

Hello - I saw some discussions in this forum on 'Native %pl', which seems partly to go into a direction I could use. However, I could not work out what it exactly is and how to use is. Would appreciate if someone could explain.

Last edited by jcherw on Mon Oct 15, 2018 2:04 am; edited 1 time in total
Back to top
View user's profile Send private message
jcherw



Joined: 27 Sep 2018
Posts: 27
Location: Australia

PostPosted: Mon Oct 15, 2018 2:04 am    Post subject: PlotPL Reply with quote

I also went ahead and dabbleb with plotPL, only to find out that it currently does not jive very well with Ftn95. I saw an old discussion and downloaded a DLL that makes some routines of an older plotPL version work, which is already useful for a quick fix right now. However, does anyone have perhaps an update of the use of plotPL wioth Ftn95??
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 959
Location: Aerospace Valley

PostPosted: Mon Oct 15, 2018 4:13 am    Post subject: Reply with quote

G'day jcherw Smile

1. 'Native' %pl has a 2-D X-Y plotting capability only. So no good for your specific problem.

2. I've never heard of 'plotPL' - do you mean PLPlot ? or if not what ?
Could you please post a link to this 'discussion' you saw and the .dll which works with ftn95 ? Thanks

3. with SIMFIT, the capability you want is probably surface plotting. you'd have to arrange the definition of data corresponding to the 3 visible faces of your 'cuboid' as 3 seperate 'surfaces'. For 'cutting' you could do that by limiting the data to be plotted to that within the cut 'cuboid' by interactively specifying a co-ordinate in the 3rd direction to define the plaběne, Then dynamically replotting it. Alternatively you could also directly call your Paraview program from within your ftn95 code and use that directly for your pre-visualisation task.

JohnSilver
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "


Last edited by John-Silver on Mon Oct 15, 2018 4:35 am; edited 2 times in total
Back to top
View user's profile Send private message
jcherw



Joined: 27 Sep 2018
Posts: 27
Location: Australia

PostPosted: Mon Oct 15, 2018 10:47 am    Post subject: Reply with quote

John -

1- a good 2D contour plot would already be very helpful. So I would appreciate if someone could point me to 'native %pl'

2- I meant indeed PLplot. The discussion on this forum was under http://forums.silverfrost.com/viewtopic.php?t=3469&highlight=cmake
Download the zipped DLL for old PLplot version from https://www.dropbox.com/s/cu2zpjffai99o7j/plpltSal.zip?dl=0 .

3- I have tried some of the simfit routines using a 'slice' or 'layer' of the data cube. I found the options on simfit quite limited though. For example, I used the surd2s routine but was unable to pass x and y vectors for my 2d data array.
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1024

PostPosted: Mon Oct 15, 2018 11:47 am    Post subject: Re: PlotPL Reply with quote

jcherw wrote:
I also went ahead and dabbleb with plotPL, only to find out that it currently does not jive very well with Ftn95. I saw an old discussion and downloaded a DLL that makes some routines of an older plotPL version work, which is already useful for a quick fix right now. However, does anyone have perhaps an update of the use of plotPL wioth Ftn95??


JCherW: I built and posted the DLLs and examples for PLPlot on 28 March 2017, in the thread http://forums.silverfrost.com/viewtopic.php?t=3469 .

There is no possibility at present for updating PlotPL with FTN95. As I wrote in that thread,
mecej4 wrote:
After posting the DLL, I tried running some of the examples included in the current distribution. Not a single one worked, because in the new versions they have added a dependency on the ISO_FORTRAN_ENV module, which we do not (yet) have in FTN95.
The last statement remains true today (October 2018).
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 959
Location: Aerospace Valley

PostPosted: Mon Oct 15, 2018 10:48 pm    Post subject: Reply with quote

Gosh I compleely forgot about that 18 months ago post and I started it !!!

I remember I was put off pushing it further because of the obvious linux-entric slant to the development community.
That and the fact you couldn'0t actually build the ltest version from source because of the need to use CMAKE which wasn't/isn't available in ftn95.

A pity. It looks like another of those promising but so near yet so far (as far as ftn95 is concerned) offerings.

Still (a parthian shot this one Smile ) not bad having yet another potential string to the bow for SF when the 3-D plotting capability implementation is started Wink
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1024

PostPosted: Tue Oct 16, 2018 2:24 am    Post subject: Reply with quote

The ISO_FORTRAN_ENV bits in the Plplot sources are not likely to be essential. It is up to someone to decide that it is worth putting in the effort to back-port the sources to Fortran 95, and do so.

But then, why bother? You could build a Plplot DLL using Gfortran and link your FTN95 driver programs to that DLL.
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 189
Location: Glasgow, Scotland.

PostPosted: Tue Oct 16, 2018 8:07 am    Post subject: Reply with quote

You could use %pl to set up the x and y coordinates. Then since %pl is a graphics region you can simply draw your contour lines on the drawing surface via a call back function. I've got this to work, using Paul Bourke's CONREC routine.

http://paulbourke.net/papers/conrec/

Basically before the call to %pl, I call CONREC and write all the pen movements to file, then after the %pl frame is drawn, I use the call back to read and draw the pen movements on graphics region.
Back to top
View user's profile Send private message Visit poster's website
John-Silver



Joined: 30 Jul 2013
Posts: 959
Location: Aerospace Valley

PostPosted: Wed Oct 17, 2018 9:05 pm    Post subject: Reply with quote

This post is all very interesting.

After looking around myself I can't find anything either to do what's really wanted (contours on 3-D cuboid.
Plenty that do what is intuitively harder - contours as the Z displaced from the 2-D plane. But nothing much resembling what is ideally required, namely this:



What's needed is an adapted FE contouting code !
JohnC - over to you maybe ?

Ken, your linked code is very interesting, although it only does line contours as it stands doesn't it, not shaded contours.

_______________________________________________

Amusing Diversion ...

I tracked down the original article and that's even more interesting ! Not for the code but for the ads back in '87 !!! .. .when I was still 6 yrs from using my first PC !!!
Have a look I guarantee it'll amuse, thrill and amaze al at the same time !!!!
https://www.dropbox.com/s/wgl5lf8jrdz65v3/CONREC%20ORIGINAL%20Article%20%21%20%28p.143-154%29%20%28%20p.%20175-186%20of%20.pdf%29%20from%20%20...%201987_06_BYTE_12-06_CAD_Mice_12-MHz_ATs_IBM_PS2_Family.pdf?dl=0

There's another article too in the same issue of BYTE magazine, which has even more amazing hardware ads !!!!!

https://www.dropbox.com/s/bigzkrvx79yifg6/Polynomial%20Curve%20Fitter%20ARTICLE%20%28p.155-160%29%20%20%28p.187-200%20in%20pdf%29%20from%20...%201987_06_BYTE_12-06_CAD_Mice_12-MHz_ATs_IBM_PS2_Family.pdf?dl=0

Careful, I guarantee you won't stop looking at those ads once you start !

From an advertisers point of view it's a golden format. Modern internet advertising has nothing on it, despite reaching millions, because the intelligenci just switch AdBlock on Smile

Look out for the 'Tandon Computers' at 30% lower price thanany other competitor, with the state of the art 70Mb hard disk (no I don't have a keyboard which auto-switches 'G' and 'M' !!! LOL)

There are also some obtuse nods in there to ftn95 ! (a reference to mention of the super-est debugger in the world (M$); and a strangely 'native-%PL-ish' plot too at the end of one of the articles posted !!! ... without the gremlins! LOL)

Oh and don't fall of your seat or spill your kipper tie when you spot the leading portable computers of the era !!!
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 959
Location: Aerospace Valley

PostPosted: Wed Oct 17, 2018 11:32 pm    Post subject: Reply with quote

icherw,

for a 2-D contouring 'stop-gap' option you might be able to use the Simpleplot (that's ye olde %pl (without the '[native]' option) !!!!!!

You may, or may not, encounter some of the niggly restrictions seen on 3-d plotting which are not fixable (because SF have only the dll not the source code - this is why they spent so much effort creating native %pl for X-Y plotting, but it's worth a try initially.

For your simple application it should work like a dream (he said putting the curse of the damned on it Smile )

read all about it initially here:- https://www.silverfrost.com/manuals/fmanual3d.pdf
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 1999
Location: Sydney

PostPosted: Sun Oct 21, 2018 7:52 am    Post subject: Reply with quote

John-S,

Thanks to the curve-fitter link.
I certainly remember being impressed by the 40-mb disk.
We called it the "Compaq luggable". It went well with the brick portable phone.
Remember the joys of extended and expanded memory ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group