bview2D assistance

189 views
Skip to first unread message

qi li

unread,
Nov 15, 2021, 6:30:18 AM11/15/21
to basilisk-fr
Dear all,
I want to use bview2D to open dump. Follow the recommendations of the official website ,I successfully saw the scalar list in the terminal . But when I type 'box();' in the terminal,no separate window appears .dump.png
Could someone help me please?
Sincerely,
Qi

gabri...@gmail.com

unread,
Nov 15, 2021, 11:00:47 AM11/15/21
to basilisk-fr
Hi Qi,

you should open the link at the bottom of the field list within your web browser. Please, have a look a this page for a tutorial on Basilisk View (http://basilisk.fr/src/jview/README).

Best,
Gabriele

qi li

unread,
Nov 15, 2021, 9:19:06 PM11/15/21
to basilisk-fr
Hello  Gabriele,
Thank you for your reply. In fact,  I cannot use the interactive basilisk view normally. I can open the URL normally in the browser, but I cannot perform other operations, such as viewing the streaming field. Can't I use the offline Basilisk View now? I am confused.
Regards,
Qi

qi li

unread,
Nov 15, 2021, 10:33:55 PM11/15/21
to basilisk-fr
Selection_007.png
Attach a screenshot.

gabri...@gmail.com

unread,
Nov 16, 2021, 4:52:58 AM11/16/21
to basilisk-fr
Hi Qi,

your screenshot looks fine to me. In order to display a scalar field, you must specify which field you want to plot with the squares function. After you select the squares object from the scene menu, just go to geometry -> color and type the name of the field you want to visualize.

Hope this helps.

Best,
Gabriele

qi li

unread,
Nov 16, 2021, 9:03:04 PM11/16/21
to basilisk-fr
Hi  Gabriele,
Thanks! It works perfectly.  But now I neet a new problem about bview3D . I output the dump file in my flat plate example .   It cannot be opened with bview3D but can be opened with bview2D .In order to reproduce my problem, I uploaded the code of the minimal example . And the terminal command is as follows :
---------------------------------------------------------------------------------------------------------------------------

qcc -autolink -O2 -g -Wall -pipe -D_FORTIFY_SOURCE=2 -DDUMBGL -o dump platedump.c -lm

./dump &

 **new terminal**

liqi@liqi-HP-Laptop-14s-fr0xxx:~/dump$ bview3D dump-20

Segmentation fault (core dumped)

liqi@liqi-HP-Laptop-14s-fr0xxx:~/dump$ bview2D dump-20

# t = 0.0121776, fields = { p u.x u.y u.z g.x g.y g.z l2 }

#         name:          min          avg       stddev          max

#            p:            0     0.203948     0.124076     0.388663

#          u.x:            0     0.732698     0.442607      1.02798

#          u.y:   -0.0131146  -3.8013e-05   0.00165593   0.00903561

#          u.z:    -0.012955  0.000167285   0.00203148    0.0125395

#          g.x:     -6.58191     0.824181      1.59706      10.7705

#          g.y:      -11.218   -0.0173857      1.08589      13.6229

#          g.z:     -9.54631      1.20759      1.55195      16.4689

#           l2:     -12.9462   -0.0313382      2.11824      11.6588

 

http://basilisk.fr/three.js/editor/index.html?ws://liqi-HP-Laptop-14s-fr0xxx:7101

-----------------------------------------------------------------------------------------------------------------------
Hope someone can help me, very grateful! ! !
platedump.c

qi li

unread,
Nov 16, 2021, 10:11:34 PM11/16/21
to basilisk-fr
Answer myself. It is because I used the mask function with dump. Problem with snapshot in bview2D (google.com)
How can I implement a three-dimensional cuboid computational domain? Any tips? I am considering using embedded conditions ...
Reply all
Reply to author
Forward
0 new messages