|
[Sponsors] |
Trouble creating an injection pulse (interFoam) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 28, 2012, 23:03 |
Trouble creating an injection pulse (interFoam)
|
#1 |
New Member
Join Date: Nov 2010
Posts: 18
Rep Power: 16 |
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! |
|
October 10, 2012, 06:52 |
|
#2 |
Member
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 16 |
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)) ); } |
|
October 10, 2012, 13:26 |
|
#3 | |
New Member
Join Date: Nov 2010
Posts: 18
Rep Power: 16 |
Quote:
Thank you so much! That's exactly what I was looking for. Thanks again, Scott |
||
|
|
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 |