CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] what does this syntax mean?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2021, 23:48
Default what does this syntax mean?
  #1
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
Hallo, im pretty new to openFoam and when doing the tutorial of incompressible steady turbulent flow over a backward-facing step, the following syntax in the BlockMeshDict comes up. Can someone explain how to understand this?


This is the code:


hex (0 3 4 1 11 14 15 12)
69 (18 30 1)
70 simpleGrading (0.5 $posY 1)
71
72 hex (2 5 6 3 13 16 17 14)
73 (180 27 1)
74 edgeGrading (4 4 4 4 $negY 1 1 $negY 1 1 1 1)




what do the $negY and $posY mean? Thanks!
qutadah.r is offline   Reply With Quote

Old   July 2, 2021, 01:21
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 695
Rep Power: 12
AtoHM is on a distinguished road
These are variables declared somewhere else, probably within the blockMeshDict itself (at the top?), or, maybe in another file in your case. In the latter case, then this file would be included in the blockMeshDict at the top by an include statement.
AtoHM is offline   Reply With Quote

Old   July 2, 2021, 10:10
Default
  #3
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
Hello, yes they are defined in my file, but what do they represent? this is only mentioned in the grading... thanks


negY
(
(2 4 1)
(1 3 0.3)
);

posY
(
(1 4 2)
(2 3 4)
(2 4 0.25)
);

posYR
(
(2 1 1)
(1 1 0.25)
);
qutadah.r is offline   Reply With Quote

Old   July 2, 2021, 10:21
Default
  #4
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
Quote:
Originally Posted by AtoHM View Post
These are variables declared somewhere else, probably within the blockMeshDict itself (at the top?), or, maybe in another file in your case. In the latter case, then this file would be included in the blockMeshDict at the top by an include statement.

plus i have noticed the hex block vertices are defined weirdly, (not like previous examples... even looking at the mesh I am not able to follow which block is which... and there are no 3d vertices)


blocks
(
hex (0 3 4 1 11 14 15 12)
(18 30 1)




any idea how is this exactly defined? thanks
qutadah.r is offline   Reply With Quote

Reply

Tags
mesh 2d, openfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF syntax error Ratel Fluent UDF and Scheme Programming 4 May 23, 2015 05:15
what is syntax error : missing ')' before ';' aleisia Fluent UDF and Scheme Programming 8 March 10, 2015 15:42
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 00:16.