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

logarithmic profile velocity - inlet BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2013, 10:58
Unhappy logarithmic profile velocity - inlet BC
  #1
Member
 
Pedro Ramos
Join Date: Mar 2012
Location: Belgium
Posts: 81
Rep Power: 14
pedroxramos is on a distinguished road
Hello Openfoamers,

I want to define a logarithmic velocity profileto my open channel flow (like this:
What do you suggest? Groovy BC? I have some problems to install it with OF 2.0.

There is a simpler way?

Best regards,
pedroxramos is offline   Reply With Quote

Old   June 14, 2013, 16:06
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
If you are working with a RANS turbulence model, you should be able to use the atmBoundaryLayerInletVelocity which simply imposes the logarithmic velocity profile.

Cheers,

L
Lieven is offline   Reply With Quote

Old   June 15, 2013, 06:09
Default
  #3
Member
 
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14
shash is on a distinguished road
hi pedro,

What about expanding the log and using codedFixedValue (http://www.cfd-online.com/Forums/ope...condition.html) , as i am a newbie my knowhow is limited too. Expect this may help
shash is offline   Reply With Quote

Old   June 15, 2013, 12:25
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Pedro: OpenFOAM 2.0 or 2.2.0?
Quote:
Originally Posted by pedroxramos View Post
Groovy BC? I have some problems to install it with OF 2.0.
If it's OpenFOAM 2.2.0, read the instructions on this post: http://www.cfd-online.com/Forums/ope...tml#post415028 post #16

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 17, 2013, 06:08
Default
  #5
Member
 
Pedro Ramos
Join Date: Mar 2012
Location: Belgium
Posts: 81
Rep Power: 14
pedroxramos is on a distinguished road
Hello.

Thanks. Yes, It's OF 2.2.0. I'll try install it and input the log profile with swak4foam.

Regards,
pedroxramos is offline   Reply With Quote

Old   June 17, 2013, 06:30
Default
  #6
Member
 
Pedro Ramos
Join Date: Mar 2012
Location: Belgium
Posts: 81
Rep Power: 14
pedroxramos is on a distinguished road
Quote:
Originally Posted by Lieven View Post
If you are working with a RANS turbulence model, you should be able to use the atmBoundaryLayerInletVelocity which simply imposes the logarithmic velocity profile.

Cheers,

L
Thanks, but I'm using InterFoam with LES model.
pedroxramos is offline   Reply With Quote

Old   June 17, 2013, 11:49
Default
  #7
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
Ok, completely different situation.

The logarithmic velocity profile is the profile a time averaged profile. This profile does not exist as instantaneous profile so it is physically not correct to impose the log-profile directly at the inlet.

the most correct thing to do is use an 'infinite inlet' to generate profiles which result in the log-profile when they are time averaged. Two ways to do this:
1. Do a separate simulation of a cyclic channel and store every inlet
2. Increase the length of the inlet and use the mapped BC at the inlet.

Cheers,

Lieven
Lieven is offline   Reply With Quote

Old   June 19, 2013, 07:06
Unhappy
  #8
Member
 
Pedro Ramos
Join Date: Mar 2012
Location: Belgium
Posts: 81
Rep Power: 14
pedroxramos is on a distinguished road
Quote:
Originally Posted by Lieven View Post
Ok, completely different situation.

The logarithmic velocity profile is the profile a time averaged profile. This profile does not exist as instantaneous profile so it is physically not correct to impose the log-profile directly at the inlet.

the most correct thing to do is use an 'infinite inlet' to generate profiles which result in the log-profile when they are time averaged. Two ways to do this:
1. Do a separate simulation of a cyclic channel and store every inlet
2. Increase the length of the inlet and use the mapped BC at the inlet.

Cheers,

Lieven
Hi Lieven, thanks for your help.

Which boundary condition should I put in the bed to to the second suggestion that you gave me? I put the no slip condition, like this:

bed - U
{
type fixedValue;
value uniform (0 0 0);
}

U.txt

And the contour of the velocity in the midplane of the channel is: http://d.pr/i/ZWvo


The distance between the inlet and the pille is 1 meter. Should I keep the bed boundary condition and increase that distance?

Best regards.
pedroxramos is offline   Reply With Quote

Old   June 19, 2013, 09:22
Default
  #9
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
Hi Pedro,


You should use the 'mapped' boundary condition for that. Have for example a look at
http://www.cfd-online.com/Forums/ope...condition.html
If you google a bit or search this forum, I'm sure you will find more information on it if the link about is not enough.

Cheers,


Lieven
Lieven is offline   Reply With Quote

Reply

Tags
boundary condition, inlet, logarithmic, profile, velocity


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
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 05:58
How to apply an outlet velocity profile to another inlet? siw FLUENT 4 April 10, 2013 12:19
How to prescribe fully developed turbulent velocity profile at inlet? nore5 OpenFOAM Running, Solving & CFD 1 February 22, 2013 10:30
Export & Import Velocity profile as Inlet eRzBeNgEl STAR-CCM+ 6 March 26, 2012 06:16
inlet velocity profile in Polyflow srinu FLUENT 0 January 16, 2003 21:25


All times are GMT -4. The time now is 22:16.