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

Trouble creating an injection pulse (interFoam)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2012, 23:03
Default Trouble creating an injection pulse (interFoam)
  #1
New Member
 
Join Date: Nov 2010
Posts: 18
Rep Power: 16
smschnob is on a distinguished road
Greetings,

I am very new to OF. I've been using it for only a couple weeks now, and I'm runnning into some issues. I went through the interFoam/les/nozzleFlow2D tutorial (using OpenFOAM v2.1) and would like to make some changes to it. In the tutorial liquid is ejected from the nozzle through the entire simulation. I would like to change the model so only a short pulse of liquid is ejected from the nozzle. Basically, I would like to specify an injection duration. Does anyone have any thoughts on how I can accomplish this? I should also mention that I made one change to the tutorial. I wanted to specify the inlet using total pressure instead of velocity. Listed below is the code.

In 0/p_rgh ...

inlet
{
type totalPressure;
p0 1e6;
U U;
rho none;
phi phi;
psi none;
gamma 1;
value uniform 1e6
}

In 0/U ...

inlet
{
type pressureInletVelocity;
value uniform (0 0 0);
}

In addition, I tried to add a table to create the pulse of liquid but that didn't seem to work. Listed below is the code I used.

inlet
{
type uniformTotalPressure;
pressure table
(
(0 1e6)
(5e-6 0)
);
p0 1e6;
U U;
rho none;
phi phi;
psi none;
gamma 1;
value uniform 1e6
}

Thank you!
smschnob is offline   Reply With Quote

Old   October 10, 2012, 06:52
Default
  #2
Member
 
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 16
michielm is on a distinguished road
You could use something like this:

Code:
inlet
    {   
        type            uniformFixedValue;
        uniformValue    table 
        (    
                (0      (0.05 0 0)) 
                (0.05   (0.05 0 0)) 
                (0.1    (0 0 0)) 
        );    
    }
That will give you an x-velocity of 0.05 m/s from t=0 to t=0.05 which then decreases linearly to 0 from t=0.05 to t=0.1
michielm is offline   Reply With Quote

Old   October 10, 2012, 13:26
Default
  #3
New Member
 
Join Date: Nov 2010
Posts: 18
Rep Power: 16
smschnob is on a distinguished road
Quote:
Originally Posted by michielm View Post
You could use something like this:

Code:
inlet
    {   
        type            uniformFixedValue;
        uniformValue    table 
        (    
                (0      (0.05 0 0)) 
                (0.05   (0.05 0 0)) 
                (0.1    (0 0 0)) 
        );    
    }
That will give you an x-velocity of 0.05 m/s from t=0 to t=0.05 which then decreases linearly to 0 from t=0.05 to t=0.1

Thank you so much! That's exactly what I was looking for.

Thanks again,
Scott
smschnob 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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
[swak4Foam] Trouble setting groovyBC interFoam Inlet BC mgdenno OpenFOAM Community Contributions 4 July 1, 2012 09:16
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 18:51
[blockMesh] Trouble with blockMesh kupiainen OpenFOAM Meshing & Mesh Conversion 40 January 10, 2009 18:44
error when creating an injection matt FLUENT 0 July 9, 2007 18:18


All times are GMT -4. The time now is 16:18.