|
[Sponsors] |
March 14, 2016, 06:25 |
Face normal vector at the boundary
|
#1 |
New Member
Maximilian Transinger
Join Date: Nov 2015
Posts: 2
Rep Power: 0 |
Dear all,
I am trying to implement a new contact angle model in a cylindrical sloshing tank. Therefore, I introduce the x-component at the boundary as a kind of damping factor on my curved boundary. Meaning, boundary cells with a normal vector perpendicular to the x-axis should have a x-component of 0, cells with a normal vector parallel to the x-axis have a x-component, and so on. I try to get the x-component as following: Code:
scalarField normal_x=patch().Sf().component(0)/patch().magSf(); Does anyone know different ways how to get the face normal vector? Thank you! |
|
March 14, 2016, 13:27 |
|
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
http://openfoam.com/documentation/cp...ml/a00930.html
patch().nf () const - Return face normals. patch().Sf () const - Return face area vectors. |
|
October 21, 2019, 22:11 |
|
#3 |
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 8 |
Hi!
When I am writing the above code I am receiving error: " ‘patch’ was not declared in this scope " Can anyone help me to understand the reason for this error. |
|
July 12, 2020, 16:18 |
|
#4 |
New Member
Brian
Join Date: Feb 2020
Posts: 4
Rep Power: 6 |
Hello, have you resolved this issue? I ran into the same problem.
|
|
Tags |
boundary condition, normal vector, patch field |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
[General] Problem in the calculation of the normal gradient on a boundary face | N1colas | ParaView | 1 | June 28, 2013 10:38 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |