--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/CACqPjWG8dMO9mO_LP7GAbDy6yk7F%2B3OEd9hS%2BHXTPdQnswkgpg%40mail.gmail.com.
Hi Akshay,
The implementation of BCs consists of at least two parts for Nek cases, that is, the specification of (i) BC tags and (ii) the BC values.
The BC values can be specified in userbc, such as the velocity vectors for inlet velocity BC (with tag ‘v ‘, note that the BC tag is always a character with a length of 3, and it is v + 2 spaces here).
If you generated the mesh from genbox, the BC tags should be specified in your box file. such as the periodic hill example in Nek online tutorial (https://nek5000.github.io/NekDoc/tutorials/perhill.html)
-2 spatial dimension (will create box.re2)
1 number of fields
#
# comments: two dimensional periodic hill
#
#========================================================
#
Box hillp
-22 8 Nelx Nely
0.0 9.0 1. x0 x1 ratio
0.0 0.1 0.25 0.5 1.5 2.5 2.75 2.9 3.0 y0 y1 ratio
P ,P ,W ,W BC's: (cbx0, cbx1, cby0, cby1)
If the mesh is generated from GMSH, the periodic BC will be handled by gmsh2nek, and all other BC’s can be implemented in user file. The BC tags can be specified in usrdat2 and BC values be given in userbc. To do that, you should first tag your boundary faces with “Physical group” ids in GMSH. That information will be saved in bc(5,ifc,iel,1). An example in usrdat2 can be like
do iel=1,nelv
do ifc=1,2*ndim
id_face = bc(5,ifc,iel,1)
if (id_face.eq.1) then ! surface 1 for inlet
cbc(ifc,iel,1) = 'v '
elseif (id_face.eq.2) then ! surface 2 for outlet
cbc(ifc,iel,1) = 'O '
elseif (id_face.eq.3) then ! surface 3 for wall
cbc(ifc,iel,1) = 'W '
endif
enddo
enddo
Here I give tags of inlet BC to the face in “Physical group” 1 and outlet to 2 and wall to 3. In your case, you also have symmetry BC, of which the tag is ‘SYM’.
Please let us know if you have any further questions.
Best,
Jun
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/CACqPjWE_ZDaoP92CcyLp0y%2BGJ8t-V_19eBGEaqE4YSObJjTfhA%40mail.gmail.com.
Hey all,Is there anything in particular you are looking for in terms of tutorials or documentation? We can add it to a list of things to try and develop as a community.
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/f159aa95-b14f-4921-ad4c-6bb596841dec%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/f159aa95-b14f-4921-ad4c-6bb596841dec%40googlegroups.com.
--Regards,Akshay Patil