CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to put velocity direction?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2019, 03:54
Default How to put velocity direction?
  #1
Member
 
Priyanka P
Join Date: Apr 2019
Location: Germany
Posts: 40
Rep Power: 7
priyankap is on a distinguished road
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!
Attached Images
File Type: png pipe.png (35.0 KB, 81 views)
priyankap is offline   Reply With Quote

Old   July 2, 2019, 05:24
Default
  #2
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8
yambanshee is on a distinguished road
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'
yambanshee is offline   Reply With Quote

Old   July 2, 2019, 13:32
Default
  #3
Member
 
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11
ykanani is on a distinguished road
Quote:
Originally Posted by priyankap View Post
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!
Your inlet velocity should be defined such that it is normal to the inlet patch (I guess that is what you want). The internal field is not that important as it is only an initial value, you can even start from (0 0 0).

Regards,
Yousef
ykanani is offline   Reply With Quote

Old   July 3, 2019, 04:18
Default
  #4
Member
 
Priyanka P
Join Date: Apr 2019
Location: Germany
Posts: 40
Rep Power: 7
priyankap is on a distinguished road
Thank you Yambanshee and Yousef. This solved my problem.
priyankap is offline   Reply With Quote

Old   July 7, 2019, 09:10
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
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).
jherb 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
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


All times are GMT -4. The time now is 21:59.