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

How to set the requirements for a boundray condition

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

Like Tree2Likes
  • 1 Post By anishtain4
  • 1 Post By anishtain4

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2016, 03:10
Default How to set the requirements for a boundray condition
  #1
Member
 
Janry
Join Date: Oct 2015
Posts: 46
Rep Power: 10
qjh888 is on a distinguished road
Hi Foamers,

I've faced with a general problem, that is how to know what the requirements for a boundary condition?
For example, in the "surfaceNormalFixedValue" boundary condition in 0/U:

{
type surfaceNormalFixedValue;
refValue 10;
Value (10 10 0);
}

And for the temperatureDirectedInletVelocity:
{
type temperatureDirectedInletVelocity;
inletDirection uniform (-1.0 0.0 0.0);
phi phi; dimensions
T T;
T0 uniform 293.0;
cylindricalCS yes;
omega (0.0 0.0 -10.);
value uniform 0;
}

If I want to use a new boundary condition, such like "pressureInletOutletVelocity" without any tutorial, how can I know how to set the boundary conditions?


Thanks in advance,
Janry
qjh888 is offline   Reply With Quote

Old   May 10, 2016, 09:11
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
There are two ways that usually are available
1. look at the original code, usually there's a comment section in header file that explains what does this boundary do, or how to use it (unfortunately not the case in your interested BC). Yet you can always go through the file and see what has been done. If you have general knowledge of OF it's not going to be overwhelming, just a little time.
check:
https://github.com/OpenFOAM/OpenFOAM...OutletVelocity

2. Use the banana method, write banana where you don't know what to write, and OF complains that it doesn't recognizes your keyword, then it suggests a list of available keywords and you'll get to see what options are available.
qjh888 likes this.
anishtain4 is offline   Reply With Quote

Old   May 10, 2016, 12:28
Default
  #3
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
oh, and I forgot, you can search the tutorials to see if there's any similar case,

Quote:
cd $FOAM_TUTORIALS
grep -nr pressureInletOutletVelocity
for your case there's plenty of examples. I know you mentioned without any tutorial, but you gotta know that since OF is opensource, there's not an extensive document for it out there, and tutorials are a precious part of the documentation.
qjh888 likes this.
anishtain4 is offline   Reply With Quote

Old   May 10, 2016, 20:06
Default
  #4
Member
 
Janry
Join Date: Oct 2015
Posts: 46
Rep Power: 10
qjh888 is on a distinguished road
Hi Mahdi,
Thanks for your directions!
With your help I've got the information and known how to set up the boundary conditions!

Thanks again.
Janry
qjh888 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
setting of level set method as initial condition sooroo3 FLUENT 4 July 31, 2018 04:20
how to set complex boundary condition, namely a developed velocity in inlet of pipe? milad653279 OpenFOAM Pre-Processing 3 January 4, 2016 09:46
How to set boundary condition in supersonic airflow sailor FLUENT 0 December 14, 2011 01:44
How to set the fixheatflux boundary condition LijieNPIC OpenFOAM 7 December 10, 2010 12:16
can i set boundary condition in fluent? edongliang FLUENT 3 October 9, 2008 03:15


All times are GMT -4. The time now is 15:14.