[Nek5000-users] How to create mesh?
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Thu Dec 8 13:08:28 CST 2016
Hi Jian,
There are multiple ways to visualize a mesh (let’s say your mesh is in a1.rea):
1. Visit - You could run your case with Nek with lx1 set to 3 (or even 2 for a 2D case) in the SIZE file and in usrdat2 in a1.usr copy the following two lines:
call outpost(vx,vy,vz,pr,t,’ ‘)
call exitt
This will outpost a fld file and exit Nek. You can then run Visit as usual to visualize the mesh (please note that if you use lx1 = 3, your mesh that you see will be twice as dense as the actual mesh). Also to my knowledge, lx1=2 will work only for 2D mesh if you take this route.
2. Prenek - go to the folder that has a1.rea and run prenek:
a. When it asks for a name of the session, type in a dummy case name (for example: zz) and hit enter.
b. Click on “READ PREVIOUS PARAMETERS” and write “a1”
c. Click on “BUILD FROM FILE” and write “a1”
d. If the mesh is not shown on the screen in prenek, hit “REDRAW MESH”
e. You can then use the zoom option to setup your view
You can also use postnek to get vector plots of your mesh if you are trying to get a high-quality picture of your mesh for an article. Let us know if you need help with that.
Hope this helps,
Ketan
More information about the Nek5000-users
mailing list