|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Jul 2015
Location: Aalborg
Posts: 83
Rep Power: 11 ![]() |
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; 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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: Jul 2015
Location: Aalborg
Posts: 83
Rep Power: 11 ![]() |
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; } |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 09:03 |
multiple inlet as one inlet | amin_gls | CFX | 2 | October 2, 2013 09:59 |
velocity inlet and ideal gas simultaneously-what's wrong? | preetam69 | FLUENT | 0 | September 28, 2013 05:51 |
Inlet Velocity in CFX | aeroman | CFX | 12 | August 6, 2009 19:42 |
Diffusion component at inlet | Balaji | FLUENT | 2 | August 8, 2005 08:37 |