|
[Sponsors] |
March 18, 2014, 15:32 |
Non-reflective inlet boundary conditions
|
#1 |
New Member
Jim
Join Date: Feb 2014
Location: UK
Posts: 22
Rep Power: 12 |
Hi,
I would like to use a boundary condition at an inlet that allows a pressure-time profile to be specified, which is also non-reflective. Currently I am using timeVaryingUniformFixedValue to create the pressure-time profile at the inlet, but I think I am getting reflections at the inlet. I have tried timeVaryingUniformInletOutlet which doesn't seem to help. Can anyone advise if a boundary condition exists which does this? thanks |
|
April 6, 2014, 10:15 |
|
#2 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
Hello James,
I am struggling with the same issue, though I am using a time-dependent U at the inlet. My domain consists of a C-grid with the outlet defined as the vertical section at the back, and the rest of the boundary as the inlet - similar to the tutorial nacaAirfoil. Since the angle of inflow is changing as a function of time, some of the time the inlet will be acting like an outlet. I think a new boundary condition might be required - a blend of uniformFixedValue and supersonicFreestream/waveTransmissive, perhaps? I will try to create a new BC that does this and post my results if I am successful. My C++ skills are not strong, but I will give it a shot. Regards, Dan |
|
April 6, 2014, 18:32 |
|
#3 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
Well trying to set up a new BC is not as straightforward as I thought. Starting from the basics, I followed the instructions at the link below just to try renaming an already-existing BC:
- I copied the waveTransmissive folder into $FOAM_USER_LIBBIN - renamed all instances of "waveTransmissive" to "waveTransmissiveTimeVarying" in the files and filenames - used the attached files in the Make directory - successfully built libwaveTransmissiveTimeVarying.so Then, in the nacaAirfoil case: - added "libs ("libwaveTransmissiveTimeVarying.so");" to controlDict - changed the pressure boundary type to "waveTransmissiveTimeVarying" When I run it sonicFoam on it, though, I get the following error: Code:
--> FOAM FATAL IO ERROR: Unknown patchField type waveTransmissiveTimeVarying for patch type patch Valid patchField types are : Any ideas what could cause this? I hope to create a new BC; right now I cannot even copy and use an existing one! Note that I added the ".txt" extension to all attachments just so they could be uploaded. Link for instructions: http://openfoamwiki.net/index.php/Ho...dary_condition Thanks in advance for any assistance. Daniel |
|
April 8, 2014, 00:47 |
|
#4 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
I made a mistake in the make/files file. Works now, will now look at combining waveTransmissive and uniformFixedValue.
Dan New make/files: Code:
$(FOAM_USER_LIBBIN)/waveTransmissiveTimeVarying/waveTransmissiveTimeVaryingFvPatchFields.C LIB = $(FOAM_USER_LIBBIN)/libwaveTransmissiveTimeVarying |
|
July 15, 2016, 13:00 |
|
#5 |
New Member
RM
Join Date: Jul 2016
Posts: 2
Rep Power: 0 |
Hi,
I know I'm a little late to ask you an answer, but now I'm just working on a similar problem. I need to have an outlet where I apply a time dependet boundary condition on pressure by a tabel, but also that allows propogation of waves, i.e. a waveTransmissive Boundary conditions where I give a table of values instead of just one fixedValue. I couldn't get very well your procedure, if you could explain to me just another time it would be very important to me (I started few weeks ago with OpenFoam ). Best regards. |
|
July 16, 2016, 10:50 |
|
#6 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
Hello Alessandro, I'm afraid I was not successful in the end, but reflection did not turn out to be much of a problem in my case so I let it go. Good luck,
Daniel |
|
Tags |
inlet and outlet pressure, non-reflecting bc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LES inlet boundary conditions | hz283 | OpenFOAM | 17 | December 29, 2019 17:59 |
ribbed channel / simpleFoam / boundary conditions | beeo | OpenFOAM Pre-Processing | 20 | July 17, 2013 09:39 |
inlet boundary conditions | mattia | Main CFD Forum | 0 | February 11, 2009 07:06 |
reflective boundary conditions on generalized coor | buaalzr | Main CFD Forum | 3 | January 2, 2008 13:43 |
Boundary conditions? | Tom | Main CFD Forum | 0 | November 5, 2002 02:54 |