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

unit normal vector

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2015, 12:25
Default unit normal vector
  #1
New Member
 
Marta
Join Date: Jul 2015
Location: Rome
Posts: 7
Rep Power: 10
Marta_ is on a distinguished road
Hi everyone,

I'm running a Les of a turbulent flow around a square cylinder. I would need to evaluate, at every time step, this quantity: p*(n_x + n_y + n_z).

p pressure
(n_x, n_y, n_z) unit normal vector to surfaces

Could anyone help me?


Really thank you
Marta
Marta_ is offline   Reply With Quote

Old   November 12, 2015, 15:58
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Perhaps swak4foam can help you (https://openfoamwiki.net/index.php/Contrib/swak4Foam). Especially this example uses the normals of faces:
https://openfoamwiki.net/index.php/C...ectionalForces
jherb is offline   Reply With Quote

Old   November 13, 2015, 08:39
Default
  #3
New Member
 
Marta
Join Date: Jul 2015
Location: Rome
Posts: 7
Rep Power: 10
Marta_ is on a distinguished road
Thanks a lot,

actually I would prefer to evaluate that quantity during the time loop, because I than take its divergence and I add other terms coming from the velocity U.

But for sure I'm having a look on what you sent me.


Thanks again
Marta
Marta_ is offline   Reply With Quote

Reply


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
Unit normal vector of nearest wall l_r_mcglashan OpenFOAM Programming & Development 3 May 13, 2014 17:06
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
Normal vector, slope and aspect angle g_niro Main CFD Forum 0 February 2, 2011 17:24
normal unit outward vector to the wall xiaoyoyo FLUENT 1 January 31, 2011 08:46
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 15:57


All times are GMT -4. The time now is 07:24.