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

BC for inlet angle for velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2019, 04:17
Default BC for inlet angle for velocity
  #1
New Member
 
BC
Join Date: Feb 2019
Posts: 2
Rep Power: 0
Tarun BC is on a distinguished road
Hi guys,

I'm facing a problem in fixing the boundary conditions to set up inlet angle for velocity. I'm using bouyantBousinesqiSimpleFoam as the solver.

I kindly request you to help me out on this.

Thank You
Tarun BC is offline   Reply With Quote

Old   February 20, 2019, 09:25
Default
  #2
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8
yambanshee is on a distinguished road
for a flow velocity of U and angle t, calculate: Ux = U*cos(t) and Uy = U*sin(t) and use those values in a fixedValue inlet velocity.
yambanshee is offline   Reply With Quote

Old   March 7, 2020, 20:14
Default
  #3
Member
 
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 8
Gang Wang is on a distinguished road
Quote:
Originally Posted by Tarun BC View Post
Hi guys,

I'm facing a problem in fixing the boundary conditions to set up inlet angle for velocity. I'm using bouyantBousinesqiSimpleFoam as the solver.

I kindly request you to help me out on this.

Thank You
Hi!

Have you solved this problem? I also want to find a solution to define the inlet velocity direction with the inlet boundary. How to define it?

Best regards,
Gang Wang
Gang Wang is offline   Reply With Quote

Old   March 16, 2020, 20:46
Default
  #4
New Member
 
Hesam Tofighian
Join Date: Mar 2019
Posts: 11
Rep Power: 7
H.Tofighian is on a distinguished road
You can use the line below to find the normal vector of any patch:
Code:
tmp<vectorField> n = patch().nf();
Be aware that the direction of this normal vector is outside the domain. So multiply it by the negative of magnitude of velocity in the updateCoeffs function of your new boundary condition.
If you don't like coding, use the flowRateInletVelocity Boundary condition.
H.Tofighian 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
Dynamic contact angle calculation in multiphaseInterFoam rajeshchem OpenFOAM 3 December 23, 2022 15:00
Dynamic contact angle issue: fluent UDF couldn't set the correct contact angle FelixJJ FLUENT 2 October 20, 2021 03:39
inaccurate contact angle capturing in high shear/viscousity flow chery1986 OpenFOAM Running, Solving & CFD 0 October 23, 2015 01:14
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
Normal vector, slope and aspect angle g_niro Main CFD Forum 0 February 2, 2011 18:24


All times are GMT -4. The time now is 23:13.