|
[Sponsors] |
July 2, 2019, 03:54 |
How to put velocity direction?
|
#1 |
Member
Priyanka P
Join Date: Apr 2019
Location: Germany
Posts: 40
Rep Power: 7 |
Hello everyone,
I have a question related to direction of velocity. shape of my fluid region is given in the figure attached. The inlet is in the in the x direction, but the pipe has multiple curves in it, so, I am getting confused that in which direction should I define the velocity while putting the initial values and boundary conditions for the velocity (U)? I am currently using the following: Code:
U { internalField uniform (1.33 0 0); boundaryField { inlet { type fixedValue; value uniform (1.33 0 0); } outlet { type zeroGradient; } "fluid_to_box" { type noSlip; } } } As you can see in the attached figure, the direction of flow is changing throughout the domain. So I need to know in which direction should I define my velocity in internalField and at inlet? Thank you! |
|
July 2, 2019, 05:24 |
|
#2 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 |
The direction is always relative to the global co-ordinate system. So for the case of your inlet, the way you described the pipe supports the fact that your inlet condition is correct.
For the internal field, this is mostly used as a initialisation value for the entire domain. In your case, the flow direction varies greatly through the domain, primarily in the up/down direction (y direction? I can't see based on your attached figure), and so I would think specifying a value in the x direction won't help with your simulation's convergence. I would personally rather set the internal field velocity to (0 0 0) or make use of the setFieldsDict if you really want. In the end, it is the cfd code's job to change the value of the internal field based on your boundary conditions, and so only the boundary conditions are 'set in stone' |
|
July 2, 2019, 13:32 |
|
#3 | |
Member
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11 |
Quote:
Regards, Yousef |
||
July 3, 2019, 04:18 |
|
#4 |
Member
Priyanka P
Join Date: Apr 2019
Location: Germany
Posts: 40
Rep Power: 7 |
Thank you Yambanshee and Yousef. This solved my problem.
|
|
July 7, 2019, 09:10 |
|
#5 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
If your flow enters your domain perpendicular to the surface of the inlet you can use the boundary condition surfaceNormalFixedValue. Then you do not need to specify a vector but just the scalar value (be careful with the sign, negative values are entering the domain, positive leaving it).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
kindly help me .. i have and error at line number 147.. | m zubair | Fluent UDF and Scheme Programming | 0 | February 10, 2019 12:25 |
I need help about velocity vectors direction in cylinder modeling!!! | aminepoxnet | FLUENT | 0 | March 17, 2013 18:41 |
how to draw velocity with direction in paraView? | immortality | OpenFOAM Running, Solving & CFD | 5 | January 7, 2013 16:26 |
problem defining inlet velocity direction | salman | FLUENT | 3 | January 3, 2007 12:34 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |