bubbles

506 views
Skip to first unread message

Stephane Popinet

unread,
Oct 13, 2016, 3:17:48 AM10/13/16
to basilisk-fr
Dear all,

If you are interested in bubbles, you may like the new example here:

http://basilisk.fr/src/examples/bubble.c

cheers

Stephane

jose.lopez...@gmail.com

unread,
Oct 13, 2016, 4:48:39 AM10/13/16
to basilisk-fr, pop...@basilisk.fr
Very nice example!

Antoon van Hooft

unread,
Dec 1, 2016, 4:33:03 AM12/1/16
to basilisk-fr, pop...@basilisk.fr
Hallo Stephane, great example indeed!
I also want to use GSF view for an extra 'wow-factor' in presentations.
I think the bubble.c example contains al the features i need but i have a question regarding the usage of gsfview.

In the snapshot event you specify thay you want to output the f, u, omegay and lambda2 fields but some fields do not appear in the vizualization.
Furthermore, you provide an example script to obtain the animated gifs. But i feel there is an important step missing here:
How did you specify the value of the lambda 2 iso surface? where did you specefiy the color for the different fields? where did you specefiy the appearant zooming in?

I think it would be valueable if the complete vizualization procress is exemplified.

Stephane Popinet

unread,
Dec 1, 2016, 5:03:25 AM12/1/16
to basil...@googlegroups.com
> In the snapshot event you specify thay you want to output the f, *u*,
> omegay and lambda2 fields but some fields do not appear in the
> vizualization.
> Furthermore, you provide an example script to obtain the animated gifs.
> But i feel there is an important step missing here:
> How did you specify the value of the lambda 2 iso surface? where did you
> specefiy the color for the different fields? where did you specefiy the
> appearant zooming in?

All these parameters are specified in the *.gfv files. These files are
created by running GfsView interactively (i.e. without the -batch
extension), using the menus/mouse to display isosurfaces etc..., zoom,
pan etc... and saving the resulting visualisation parameters using the
"Save" option and the "gfv" file format.

cheers

Stephane

felixh...@hispeed.ch

unread,
Dec 1, 2016, 5:43:20 AM12/1/16
to basilisk-fr, pop...@basilisk.fr
Stephane, do you have somewhere a description of the sequence command (I had already a look into this somehow cryptic :-) script), it seems to me that it can do some soft transitions from one .gfv-file to another, so a little help or some more examples would be verz appreciated :-)

tnx a lot & cheers
felix 
Message has been deleted

Antoon van Hooft

unread,
Dec 2, 2016, 8:20:28 AM12/2/16
to basilisk-fr, pop...@basilisk.fr
Hallo Stephane, i really like GFSview!

Now i want to make a movie and i try to create a .gfv like you suggested. However it remains unclear to me. 
can you provide me with an example syntax line? 

i can run interactively if i create an empty file sphere.gfv and add
static FILE * fp = popen("gfsview3D sphere.gfv" , "w");
output_gfs (fp, t = t);

to the script.

But i do not know how "Save"-ing my setup is done'
Antoon
  

Stephane Popinet

unread,
Dec 2, 2016, 11:37:53 AM12/2/16
to basil...@googlegroups.com
> But i do not know how "Save"-ing my setup is done'

In gfsview, use the menu "File->Save" and type "mysetup.gfv" in the
"Path" box (or use the "Browse" button), the click on "Save".

Stephane


Message has been deleted

Antoon van Hooft

unread,
Dec 4, 2016, 9:09:19 AM12/4/16
to basilisk-fr, pop...@basilisk.fr


Works like a charm!

The gif below shows the development of initial convective instability and resulting turbulence. You see the Lambda2 vortex detection iso surfaces that are colored according to the local temperature (blue is cold, red is hot) .

Furthermore, a slice of the adaptive grid and magnitude of gradient in temperature is drawn in the 'rear' of the domain (red is large gradient, white is gradient of background stratification, blue is neutral stratification).


Hossain Chizari

unread,
Feb 24, 2017, 5:15:58 AM2/24/17
to basilisk-fr
Hello,

I am Hossain, and I am new with Basilisk code, I finished the tutorial part. I am trying this bubble example. But I can not compile it, I use the base compiling command as,

qcc -O2 -Wall bubbles.c -o bubbles -lm

Would you please tell me your suggestions
Thank you for your help

Stephane Popinet

unread,
Feb 24, 2017, 5:27:36 AM2/24/17
to basil...@googlegroups.com
Hi Hossain,

We would be happy to help, but your message does not include enough
information:

1) which bubbles.c example? where is the source code?
2) what error message do you get?

Stephane

Hossain Chizari

unread,
Feb 24, 2017, 8:19:44 AM2/24/17
to basilisk-fr, pop...@basilisk.fr
Hello again!

I attach the code and the error I am dealing with. Kindly, let me know your suggestions.

Regards 
curvature.txt
curvature-error.jpg

Stephane Popinet

unread,
Feb 24, 2017, 8:42:15 AM2/24/17
to basilisk-fr
This test case requires the Vofi library, as clearly mentioned in the
description here:

http://basilisk.fr/src/test/curvature.c

You need to install it before running the test. There is a link for
downloading on the page above.

cheers

Stephane

Hossain Chizari

unread,
Feb 24, 2017, 8:44:38 AM2/24/17
to basilisk-fr
Thank you for your help. I should be more careful!! ;)

Hossain Chizari

unread,
Feb 26, 2017, 8:13:10 PM2/26/17
to basilisk-fr
Dear prof. Popinet,

I install the VOFI, then I try to compile the code with the same instruction. But I get an error again, this time is a different kind of error. Kindly, find the attachment for the error and please let me know your suggestions.

It might be good to mention that I had the same error message when I want to try the Cavity test case on the line contains MU.

Thank you again!
Regards
curvature-error-2.jpg

josé López-Herrera

unread,
Feb 26, 2017, 8:36:08 PM2/26/17
to basilisk-fr, pop...@basilisk.fr
Hi Hossain,

The problem reside in the c file. It seems you get it by "cut & paste" from the formated wiki page. So you have the Delta greek letters, etc which are not understood by the compiler.

The solution is to cut & paste the file but the "raw version". To do this you have available the option "raw page version" in the left panel.

Cheers

Jose
.

El jueves, 13 de octubre de 2016, 9:17:48 (UTC+2), Stephane Popinet escribió:

Hossain Chizari

unread,
Feb 26, 2017, 10:07:02 PM2/26/17
to basilisk-fr, pop...@basilisk.fr
Dear Herrera,

Thank you for the useful help. :)

Cheers
Hossain

Robson Nazareth

unread,
Jun 8, 2017, 10:12:07 AM6/8/17
to basilisk-fr, pop...@basilisk.fr
Hi Stephane,

I'm trying to create a gif like this one in bubble.c, but when I change the position of the camera from one .gfv file to another it doesn't work.
For instance, in the bubble.c example, using the script described there to create the gif, it works from 19:bubble.19.gfv to 50:bubble.19.gfv, but when the position of the camera changes (from 50:bubble.19.gfv to 60:bubble.19.gfv) I only get the blue background.

Do you know what can be my problem?

I'm using gfsview: 3D version 0.5.0

Regards,
Robson

jose.lopez...@gmail.com

unread,
Jun 9, 2017, 8:01:18 AM6/9/17
to basilisk-fr, pop...@basilisk.fr
Hi Robson,

I dare to give you a reason despite it could not be the real one. When using gfsview with basilisk you have to be careful with the size of the domain and the origin since those set in the basilisk are not those set by gfsview  Check how the gfv file varies when you move the point of view in gfsview. This can give you some hint.

Cheers

Jose



I do not know if 
Message has been deleted

Robson Nazareth

unread,
Jun 9, 2017, 8:49:59 AM6/9/17
to basilisk-fr, pop...@basilisk.fr
Hi Jose,

Thanks for your reply. I start to have a look into the .gfv file and it looks that it works when I do small changes in the point of view.
So, I'm thinking in use a bash script to change the point of view in small steps while it compile the .gif. It may be possible to do with the command "sed". I'll give a try!

Best,
Robson

Reply all
Reply to author
Forward
0 new messages