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

Swirled inlet

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2015, 06:45
Default Swirled inlet
  #1
Member
 
Join Date: Jul 2015
Location: Aalborg
Posts: 83
Rep Power: 10
Gerrit is on a distinguished road
Hi everyone,

I have some cases with straight, coaxial pipes where I would like to have swirl at the inlet.
In the incompressible/simpleFoam tutorials I found this inlet condition, that is supposed to create swirl.
Code:
    type            codedFixedValue;
        redirectType    swirl;

        code
        #{
            const vector axis(0, 0, 1.5);

            vectorField v(2.0*this->patch().Cf() ^ axis);
            v.replace(vector::Z, -1);
            operator==(v);
        #};
        value           $internalField;
I used this code and it works quite fine for me. I have a magnitude velocity of 1 m/s as wished.

Only the swirl is strange. Instead 1.5 m/s the absolute velocity maximal is only 0.0115 m/s.

I would like to understand the definition of the 1.5 m/s which are obviously not 1.5 m/s.

Best
Gerrit
Attached Images
File Type: png Absolute_velo_x.png (21.7 KB, 35 views)
Gerrit is offline   Reply With Quote

Old   November 18, 2015, 05:13
Default
  #2
Member
 
Join Date: Jul 2015
Location: Aalborg
Posts: 83
Rep Power: 10
Gerrit is on a distinguished road
Hi,

By try and error, I found it my self.

Code:
 {
    type            codedFixedValue;
        redirectType    swirl;

        code
        #{
            const vector axis(0, 0, 1);            // Axis of rotation

            vectorField v = 20.0*this->patch().Cf() ^ axis;    // Angular velocity in rad/s
            v.replace(vector::Z, -1);                                    // Velocity of mainflow
            operator==(v);
        #};
        value           $internalField;
     }
Gerrit is offline   Reply With Quote

Old   March 11, 2022, 23:58
Default
  #3
lth
Member
 
lth's Avatar
 
lth
Join Date: Mar 2009
Location: Madison, WI, USA
Posts: 37
Blog Entries: 45
Rep Power: 17
lth is on a distinguished road
Thank you Gerrit for sharing what you figured out.
lth is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
setting the correct format of nonuniform List<vector> for inlet in 0 Folder cfdonline2mohsen OpenFOAM Running, Solving & CFD 8 July 18, 2019 08:03
multiple inlet as one inlet amin_gls CFX 2 October 2, 2013 08:59
velocity inlet and ideal gas simultaneously-what's wrong? preetam69 FLUENT 0 September 28, 2013 04:51
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 18:42
Diffusion component at inlet Balaji FLUENT 2 August 8, 2005 07:37


All times are GMT -4. The time now is 22:06.