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

Non-reflective inlet boundary conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2014, 15:32
Default Non-reflective inlet boundary conditions
  #1
New Member
 
Jim
Join Date: Feb 2014
Location: UK
Posts: 22
Rep Power: 12
jimteb is on a distinguished road
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
jimteb is offline   Reply With Quote

Old   April 6, 2014, 10:15
Default
  #2
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17
dancfd is on a distinguished road
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
dancfd is offline   Reply With Quote

Old   April 6, 2014, 18:32
Default
  #3
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17
dancfd is on a distinguished road
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 :
etc. Complete error in the attached log file.

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
Attached Files
File Type: txt log.sonicFoam.txt (3.7 KB, 7 views)
File Type: txt options.txt (218 Bytes, 12 views)
File Type: txt files.txt (172 Bytes, 13 views)
dancfd is offline   Reply With Quote

Old   April 8, 2014, 00:47
Default
  #4
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17
dancfd is on a distinguished road
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
dancfd is offline   Reply With Quote

Old   July 15, 2016, 13:00
Default
  #5
New Member
 
RM
Join Date: Jul 2016
Posts: 2
Rep Power: 0
alessandroB is on a distinguished road
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.
alessandroB is offline   Reply With Quote

Old   July 16, 2016, 10:50
Default
  #6
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17
dancfd is on a distinguished road
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
dancfd is offline   Reply With Quote

Reply

Tags
inlet and outlet pressure, non-reflecting bc


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
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


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