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

Superimposing Sinusoidal Perturbations at Inlet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By HenningW

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2016, 06:11
Question Superimposing Sinusoidal Perturbations at Inlet
  #1
New Member
 
Harnoor Singh
Join Date: Jan 2016
Posts: 14
Rep Power: 10
Harnoor is on a distinguished road
Hi all,

I am trying to simulate a hot rising plume inside a cylindrical domain using buoyantBoussinesqPimpleFoam. But, the plume fails to transition inside the computational domain (since my Re is not very large). I read in a NASA research paper that you need to superimpose sinusoidal perturbations (corresponding to the most unsteady mode as per stability analysis) at the inlet velocity/temperature in order to achieve faster transition. This way I can capture turbulent regime inside my computational domain.

I am a beginner in OpenFoam and request someone to please tell me in detail "How I can superimpose sinusoidal perturbations at inlet velocity/temperature".

Tnx in advance.
Harnoor is offline   Reply With Quote

Old   August 23, 2016, 06:18
Default
  #2
New Member
 
Harnoor Singh
Join Date: Jan 2016
Posts: 14
Rep Power: 10
Harnoor is on a distinguished road
I basically want to get an unsteady inlet BC as follows -

U_z = U_z + A sin(omega * t)
Harnoor is offline   Reply With Quote

Old   August 25, 2016, 11:49
Default
  #3
Member
 
Join Date: Feb 2015
Posts: 39
Rep Power: 11
HenningW is on a distinguished road
I think what you are looking for is swak4foam and more specifik the groovyBC package it includes.

If installed (do not remember if it always is included), you should insert

Code:
libs (
      "libOpenFOAM.so"
      "libsimpleSwakFunctionObjects.so"
      "libswakFunctionObjects.so"
      "libgroovyBC.so"
     );
in your system/controlDict.

In your 0/U you should set your BC (lets say its named "inlet") like:

Code:
   inlet           
   {
     type            groovyBC;
     variables (
                       "U_x=10;"
                       "U_y=10;"
                       "U_z=10;"
                       "A=20;"
                       "f=50;"
                       "omega=2*pi*f;"
        );
     valueExpression "vector(U_x, U_y, U_z+A*sin(omega*time()))";
     value           uniform (0 0 0); // As far as I remember, this has to be here, but does nothing and can be ignored
   }
Of course you have to adapt your values. I haven't tested it, due to the lack of time, but it should set you up to a good start, I think. However, let me know if it worked or if you need additional help.

Also check out the following pages on the use of swak4foam/groovyBC:

https://openfoamwiki.net/index.php/Contrib/swak4Foam
http://openfoamwiki.net/index.php/Contrib/groovyBC
dkjiao likes this.
HenningW is offline   Reply With Quote

Reply

Tags
buoyantboussinesqpimple, inlet bc, perturbation, plume, sinusoidal


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 09:03
Total pressure and mass flow boundary condition at inlet bscphil OpenFOAM Pre-Processing 3 July 9, 2017 15:39
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 19:42
Diffusion component at inlet Balaji FLUENT 2 August 8, 2005 08:37
length scales at inlet for internal flows Anne-Marie Giroux Main CFD Forum 3 July 5, 1999 22:28


All times are GMT -4. The time now is 17:40.