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

BC types in OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2007, 02:40
Default I am new to OpenFoam. Can some
  #1
New Member
 
Erik Bjørn
Join Date: Mar 2009
Location: Denmark
Posts: 5
Rep Power: 17
erik_bjorn is on a distinguished road
I am new to OpenFoam. Can someone tell where to find more information about the different boundary conditions, apart from table 6.4. in the user guide? I have already searched this forum, and I am aware that the information is available in the code. However, I cannot understand the code. Is there a plain-text description somewhere?
erik_bjorn is offline   Reply With Quote

Old   October 24, 2007, 07:27
Default I'm afraid: No
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
I'm afraid: No
maalan likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 19, 2007, 06:24
Default Hi Erik Look here for the b.c
  #3
New Member
 
Maximilian Graser
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 18
Rep Power: 17
graser is on a distinguished road
Hi Erik
Look here for the b.c.:

.../OpenFOAM/src/finiteVolume/fields/fvPatchFields/derived

There you will find the different boundary conditions - some even with a short description and example - if you open the *.C and *.H files with an editor
graser is offline   Reply With Quote

Old   November 20, 2007, 02:26
Default Thank you for the tip. However
  #4
New Member
 
Erik Bjørn
Join Date: Mar 2009
Location: Denmark
Posts: 5
Rep Power: 17
erik_bjorn is on a distinguished road
Thank you for the tip. However, I cannot see much in the way of descriptions. At least not in a form understandable to me. But then again, I'm just a simple engineer, not an expert in CFD and C++ programming.
erik_bjorn is offline   Reply With Quote

Old   November 20, 2007, 03:56
Default And I'm just a Student in the
  #5
New Member
 
Maximilian Graser
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 18
Rep Power: 17
graser is on a distinguished road
And I'm just a Student in the 2nd year and neighter a C++ expert
The description I'm talking of is not in the code; its in the "foreword" just below the GNU License written as a comment
Look at
fvPatchFields/derived/massFlowRateInletVelocity.H
(open with an editor) for example; there you can see a good description how to use this boundary in the comments
graser is offline   Reply With Quote

Old   November 20, 2007, 05:03
Default OK, I see what you mean now. T
  #6
New Member
 
Erik Bjørn
Join Date: Mar 2009
Location: Denmark
Posts: 5
Rep Power: 17
erik_bjorn is on a distinguished road
OK, I see what you mean now. Thanks. I am afraid the description is missing in many of the BC's. But at least now I know where to look for them in future versions.
erik_bjorn is offline   Reply With Quote

Old   November 20, 2007, 05:48
Default Is the shown description what
  #7
New Member
 
Maximilian Graser
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 18
Rep Power: 17
graser is on a distinguished road
Is the shown description what you're looking for?
Maybe I can help with a few of the others where the description is missing.
Also there are some descriptions of boundarys throughout this forum; you just have to search a little.
graser is offline   Reply With Quote

Old   November 20, 2007, 06:41
Default Yes, the shown description is
  #8
New Member
 
Erik Bjørn
Join Date: Mar 2009
Location: Denmark
Posts: 5
Rep Power: 17
erik_bjorn is on a distinguished road
Yes, the shown description is a great help. Right now, I am interested in finding out the differences between different boundaries to do with pressure:
totalPressure
pressureInletVelocity
pressureInletUniformVelocity
pressureInletOutletVelocity
pressureDirectedInletVelocity
pressureDirectedInletOutletVelocity
fixedFluxPressure
fixedFluxBuoyantPressure
freestreamPressure
erik_bjorn is offline   Reply With Quote

Old   November 20, 2007, 07:05
Default Have you looked at the User Ma
  #9
New Member
 
Maximilian Graser
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 18
Rep Power: 17
graser is on a distinguished road
Have you looked at the User Manual?
pressureInletVelocity
totalPressure
pressureInletOutletVelocity
pressureDirectedInletVelocity
pressureDirectedInletOutletVelocity
are explained in Cahpter 6.2/Table 6.4/ page U-141

fixedFluxPressure
I'd guess is a BC where you set the Flux as a fixedValue an the Pressure is calculated according to the Flux

fixedFluxBuoyantPressure
should be almost the same with additional heattransfer (->buoyant) but i realy dont know it exactly

additional info:
http://www.cfd-online.com/OpenFOAM_D...tml?1175063998

there are a lot more BC topics in the forum...search it
graser is offline   Reply With Quote

Old   November 20, 2007, 07:06
Default Maybe I should describe the pr
  #10
New Member
 
Erik Bjørn
Join Date: Mar 2009
Location: Denmark
Posts: 5
Rep Power: 17
erik_bjorn is on a distinguished road
Maybe I should describe the problems I am presently working with. Maybe somebody can tell me what to do:

Problem 1:
Cross-contamination (or short-circuit) from a ventilation exhaust to an intake (on the outside of a building), under influence of wind. The exhaust and intake can both be either constant velocity or mass flow boundaries. Wind must be velocity boundary. I need a "far field" boundary, which I think should be "constant pressure". How do I implement this in OF?

Problem 2:
A fan blows air through a heat exchanger via an irregular duct geometry. The heat exchanger consists of very many fine plates, which I don't want to simulate. I know how the heat exchanger behaves with regard to pressure drop. I imagine I can simulate it as a pressure boundary, I am just unsure which is appropriate.
erik_bjorn is offline   Reply With Quote

Old   November 20, 2007, 07:10
Default I'd say "far field" is the sam
  #11
New Member
 
Maximilian Graser
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 18
Rep Power: 17
graser is on a distinguished road
I'd say "far field" is the same as "freestream"
graser is offline   Reply With Quote

Old   March 24, 2008, 17:33
Default Hi I am new OpenFoam user is
  #12
New Member
 
Onur Dundar
Join Date: Mar 2009
Location: Davis, CA, US
Posts: 7
Rep Power: 17
onurdundar is on a distinguished road
Hi
I am new OpenFoam user is there any Boundary condition which represents uniform flow in Open channel. I tried fixed velocity but caused problem just connected to the atmosphere patch.
In fact I saw many different type of boundary condition in field library. For example I tried massFlowRateInletVelocity in 0/U file
type massFlowRateInletVelocity
value 12.849
but this gave error
How can I understand the correct information from .C file of .H file of that boundary condition.
onurdundar is offline   Reply With Quote

Old   April 14, 2008, 03:50
Default Hi try inlet { type mas
  #13
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi
try

inlet
{
type massFlowRateInletVelocity
massFlowRate 0.2// 0.2kg s^-1

}
waynezw0618 is offline   Reply With Quote

Old   April 17, 2008, 10:32
Default Hi, Section 6.2.3 of the us
  #14
Member
 
Jason Dale
Join Date: Mar 2009
Location: UK
Posts: 80
Rep Power: 17
jason is on a distinguished road
Hi,

Section 6.2.3 of the user guide tells me that there is a boundary type called 'calculated' where the boundary field is derived from other fields. I have tried searching the forum but cannot really find anything about how to use this. I'm curious about two things.

1/ I want to set the flowrate at an inlet to a certain value that is found from a polynomial that relates the flowrate and pressure, eg a polynomial fitted to a centrifugal pump Flowrate-Pressure curve. So, based on the pressure at the last timestep, I adjust the flowrate at the boundary in order to mimic the response of a centrifugal pump.

2/ Is it possible to have a pair of boundaries in unconnected meshes where the fluid flowing into one boundary is set from the fluid flowing out of the other boundary. So, that if I managed to do No 1 I could adjust the flowrates in the unconnected meshes automatically.

Is this possible or do I have to do some programming.

Thanks

Jason
jason is offline   Reply With Quote

Old   August 11, 2009, 03:56
Default
  #15
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17
prapanj is on a distinguished road
Hey,

there is something called the directMapped boundary, where you can set your inlet as the flow at another patch witch is x distance in front or behind it.
prapanj is offline   Reply With Quote

Old   August 11, 2009, 09:38
Default
  #16
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17
prapanj is on a distinguished road
Hey,

there is something called the directMapped boundary, where you can set your inlet as the flow at another patch witch is x distance in front or behind it.
prapanj is offline   Reply With Quote

Old   October 24, 2009, 12:21
Default Robin B.C
  #17
New Member
 
Kaveh Sookhak Lari
Join Date: Oct 2009
Location: London
Posts: 2
Rep Power: 0
ksookhak is on a distinguished road
Send a message via Yahoo to ksookhak
Hi

Does anyone know how shall I model the following Robin B.C?

dC/dY=alpha*C

where C is the scalar concentration, alpha is constant and Y is the wall-normal direction.
It means the gradient is proportional to the concentration which is not known a priori.

Thanks in advance
Kaveh
ksookhak is offline   Reply With Quote

Old   December 16, 2009, 04:01
Default
  #18
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17
idrama is on a distinguished road
Hey folks!

I created a geometry and a mesh in salome. My mesh contains patches in the interior of the geometry. Does anybody know how to set a "continuity patch" in OpenFOAM?
idrama is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Boundary types CHILL FLUENT 0 August 25, 2008 11:44
zone types Naghman Khan FLUENT 5 July 24, 2007 03:02
Mesh types Masood Kamal FLUENT 1 December 10, 2004 03:03
Boundary types pravir kumar rai Main CFD Forum 0 April 18, 2001 20:15
udf for boundary types?? Kai Kang FLUENT 0 March 17, 2000 12:42


All times are GMT -4. The time now is 21:12.