overlay of graphics with transparency

5 views
Skip to first unread message

matei

unread,
Dec 10, 2009, 10:33:49 AM12/10/09
to amrita-ebook
I would like to be able to overlay different components of the
solution vector on the same image, while using some transparency in
order to visualize both fields. Can this be done with the current
machinery?
Thanks,
matei

James Quirk

unread,
Dec 10, 2009, 11:59:33 AM12/10/09
to matei, amrita-ebook
Matei,
The answer is a qualified yes. The attached scripts show it
is possible to position two plots on top of one another and
vary the opacity of the top most script. You run them in order:

amrita my.script
amrita my.doc

but the result is not too useful.

It's also worth noting that plot image can layer plots directly.
For when using an rgb shading function a cell is treated as
fully transparent when one of the r,g,b components is less than zero.
Thus one could plot a schlieren and then plot on top the regions where
fuelel was greater than some threshold. You might do this say when
looking at the unburnt pockets of fuel in a cellular detonation.

James
> Thanks,
> matei
>
> --
>
> You received this message because you are subscribed to the Google Groups "amrita-ebook" group.
> To post to this group, send email to amrita...@googlegroups.com.
> To unsubscribe from this group, send email to amrita-ebook...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/amrita-ebook?hl=en.
>
>
my.script
my.doc

Matei Radulescu

unread,
Dec 10, 2009, 12:16:05 PM12/10/09
to James Quirk, amrita-ebook

James,
This is very helpful, thanks.
matei

matei

unread,
Dec 10, 2009, 12:25:42 PM12/10/09
to amrita-ebook
James, this is very nice. I got goosebumps when toggling through the
pages with my mouse roller. Now add a slider bar to that and you got
a pretty nifty tool to analyze the flow. Beats my old approach of
importing the images to gimp and manually changing the transparency to
see the correlation among the fields (better yet than printing them on
light paper and looking against a luminous background!)
>  my.script
> 4KViewDownload
>
>  my.doc
> 1KViewDownload

James Quirk

unread,
Dec 11, 2009, 3:33:19 PM12/11/09
to matei, amrita-ebook
Matei,

On Thu, 10 Dec 2009, matei wrote:

> James, this is very nice. I got goosebumps when toggling through the
> pages with my mouse roller. Now add a slider bar to that and you got
> a pretty nifty tool to analyze the flow. Beats my old approach of
> importing the images to gimp and manually changing the transparency to
> see the correlation among the fields (better yet than printing them on
> light paper and looking against a luminous background!)
Attached are some more goosebumps! :-)

This time I'm using Adobe Reader's flash engine. You can plot either the
density or pressure fields and when both fields are plotted you can use
the opacity slider to fade from the pressure field to the density field.
If you look carefully, you'll see some plotting artifacts. Ignore these
for now, I know how to get rid of them, but it will take more time than I
have at present.

Indeed, for the sake of some elbow grease, there's no reason
why the simulation itslef could not be run directly in the document.

James
goosebumps.pdf

matei

unread,
Dec 11, 2009, 4:30:15 PM12/11/09
to amrita-ebook
> This time I'm using Adobe Reader's flash engine. You can plot either the
> density or pressure fields and when both fields are plotted you can use
> the opacity slider to fade from the pressure field to the density field.

That's very impressive!

James Quirk

unread,
Dec 11, 2009, 4:35:59 PM12/11/09
to matei, amrita-ebook
It will be more impressive when I figure out how to allow
the interested reader to symolically program what they
want to plot. That way people won't be stuck with the
pre-supplied functions.
Reply all
Reply to author
Forward
0 new messages