CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to find the height of the first cell manually

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By shiro44
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2021, 12:53
Default How to find the height of the first cell manually
  #1
New Member
 
mark
Join Date: Apr 2021
Posts: 3
Rep Power: 5
shiro44 is on a distinguished road
Hi everybody. I was wondering how can i manually calculate the value of the height of the first cell near a wall (y) , not using the equation that relates y and y+. Is there a direct method using Paraview?
kinematic_presser likes this.
shiro44 is offline   Reply With Quote

Old   June 2, 2021, 13:23
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14
Tobermory will become famous soon enough
Yes; here's one way. Start by writing the cell coordinates out as a field:

Code:
postProcess -func writeCellCentres -time 0
Now start up paraFoam and you will see that there are 4 new fields that are available to load: C (vector, cell centre coord), Cx (scalar, cell centre x-coord), Cy & Cz. If you load these in, then you can get paraview to label your vertices with the coordinates, as follows:

1. Get an appropriate view of your mesh
2. Turn on Camera Parallel Projection (on the LHS properties pane)
3. Activate Select Points On (press d key, or click one of the little icons at the top of the window - the one with the points and the arrow)
4. select a point on the boundary
5. turn on Add Selection (the little icon with a + sign and an arrow, again at the top of the window), then select another point (d, or the same icon as before) - on the other side of the same cell. If you can't find the icons, then hold ctrl while you select the nect point and it will do the same thing - add to the selection.
6. Over on the right side of the Paraview window, you should have a Selection Display Indicator pane. If it's not visible, toggle it on with the menu bar View drop down. In that pane, click on the "point labels" drop down and select either C, or perhaps Cz.

and bingo! Your points are labelled with their coords. It's pretty useful for basic level checking of the mesh.
kinematic_presser likes this.
Tobermory is offline   Reply With Quote

Reply

Tags
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
How to find downwind cells of a cell in OpenFOAM ? Fauster OpenFOAM Programming & Development 3 October 8, 2019 10:09
How to find the values of pressure and velocity into each cell? LeaIna OpenFOAM Post-Processing 2 September 23, 2018 21:06
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 05:27
interFoam running blowing up sandy13 OpenFOAM Running, Solving & CFD 2 May 5, 2015 08:16
How to find the flux through each cell in a each boundary patch? Hale OpenFOAM Pre-Processing 0 September 13, 2013 09:52


All times are GMT -4. The time now is 15:57.