bview Installation

758 views
Skip to first unread message

Mohammad Hashemi

unread,
Jun 17, 2018, 5:16:02 PM6/17/18
to basilisk-fr


Hello everyone, 

First, I appreciate for your previous hints. 

I tried to install bview and followed all the instructions. However, I could not get any executable named "bview2D" and "bview3D". Instead  of that, I have "bview-server2D" and "bview-server3D".  When I tried the command in the website, I can not get the GUI window.  This is what happen, when I run the following command:


touch view.bv && emacs view.bv & ./bview-server3D snapshot-0.7 view.bv

[3]  12173

# t= 0.7, fields = { u.x u.y u.z g.x g.y g.z f rhov f0 pid }
 
and emacs is open for editing. There is no GUI window like the one on the basilisk website. 




What should I do to have bview GUI? Is there any other way through vtk file or other formats to see the 3D results of basilisks simulations????


Thanks, 
Mohammad



Mani Chandan Naru

unread,
Jun 18, 2018, 1:31:49 AM6/18/18
to basilisk-fr
Hello Mohammad,

Here when the emacs editor opens, you will need to put commands in that, like box(), cells() ... and save the file, which will automatically opens the GUI. Its same for animating the field, you can use the commands mentioned in the website (http://basilisk.fr/src/view.h#load-read-drawing-commands-from-a-file-or-buffer) in the emacs editor file. Observe the commands in the white box next to GUI image in the bview page. 

Regards,





Naru Mani Chandan





--
You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr+unsubscribe@googlegroups.com.
To post to this group, send email to basil...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/basilisk-fr/837d1cb6-7d9b-4e73-a2ca-a2fc9eae9d93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephane Popinet

unread,
Jun 18, 2018, 3:12:10 AM6/18/18
to basil...@googlegroups.com
Hi Mohammad,

Try to do:

cd $BASILISK
make all bview-servers

Then you should have the bview2D and bview3D executables.

cheers,

Stephane

Mohammad Hashemi

unread,
Jun 18, 2018, 2:28:34 PM6/18/18
to basilisk-fr

Thanks,

I tired that command but it does not work.
Now, I found another option to save the output of commands (cells(), box().....) in bview-server3D in a ".ppm" file and see the images there with the following command: 
 
./bview-server3D >  out.ppm 

 
If there is any other options, please inform me. Can I use a open source 3D parallel VTK outputfile generator for basilisk or write one by myself?

Thanks, 
Mohammad 

Wojciech Aniszewski

unread,
Jun 18, 2018, 4:13:10 PM6/18/18
to Mohammad Hashemi, basilisk-fr
You also need to go into $BASILISK/gl and make chosen GL libraries as described here (http://basilisk.fr/src/view.h).

There exists a simple output_vtk() function in basilisk, that writes ASCII vtk files (http://basilisk.fr/vtk_v3.h).

As for the "it doesn't work" compilations, you need to be more specific. If anything doesn't work, include the
outputs, error messages, with your post. Otherwise we're left in the dark with behaviour we have no way of reproducing.
best
w
> --
> You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
> To post to this group, send email to basil...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/basilisk-fr/f899ffea-7521-4415-bd8f-fe88460875de%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
/^..^\ Wojciech (Wojtek) ANISZEWSKI ► Post-doctoral Researcher
( (••) ) [Fr: vôitek anichévsky] ► Sorbonne University
(|)_._(|)~ [Eng: voyteck aanishevsky] ► Institut ∂'Alembert
GPG key ► Web [English] https://tinyurl.com/y73t4xsg [2015]
ID:AC66485E ► [Polish ] https://tinyurl.com/yckark7n [2014]
signature.asc

Mohammad Hashemi

unread,
Jun 18, 2018, 4:19:51 PM6/18/18
to basilisk-fr

Thanks for your response. Can this new VTK version produce 3D output file ?

Antoon van Hooft

unread,
Jun 19, 2018, 12:07:14 AM6/19/18
to basilisk-fr
Hallo Mohammad,

Eventough there is no build-in check for 2D, It appears the function is hard-coded to only output 2D data. This may cause confusion, and the function should be extended.

I have used the following function by Adreas Acastillo is the past to visualize a snapshot of a tree-grid in Paraview (using the unstructured option)

you may want to review more output options he implemented:

This function worked like a charm. However, with the advent of bview, I now prefer the option that does not crash so much, actually understands trees, is convinient to use and really saves a lot of hasse with Output.

Antoon

Mohammad Hashemi

unread,
Jun 19, 2018, 5:01:13 PM6/19/18
to basilisk-fr


Thanks, for your hints. 

When I call output_vtk, the output file is 2D (not 3D), while my simulation was 3D. Can you help me with that?

Thanks, 
Mohammad

On Monday, June 18, 2018 at 4:13:10 PM UTC-4, Wojciech Aniszewski wrote:
Reply all
Reply to author
Forward
0 new messages