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

non uniform vector's component in BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2012, 11:08
Default non uniform vector's component in BC
  #1
Member
 
Tom
Join Date: Jan 2012
Location: France
Posts: 43
Rep Power: 14
sawyer86 is on a distinguished road
Hi there,

I know this topic is very famous and I heard also nice quote about it here . And i am asking for help not because I am lazy. Believe me, i read all the posts about topic. It's just I don't know too much about C++ to manage the right stuff! I am sorry to ask again but since the new release openfoam 2.1.0 has the "polynomial" boundary condition could anyone help me doing what follows...?

I need to set a vector U=(a 0 0) with a=a_0*y^2+a_1*y as BC in the inlet of the "pitzdaily" case (everything is given in the function). Is there someone could give me the exact way to insert that in the 0/U file?

I really appreciate your help in advance!

ps: Later I will post the modified file for a future use!

Last edited by sawyer86; January 23, 2012 at 13:48.
sawyer86 is offline   Reply With Quote

Old   January 24, 2012, 04:08
Default swak4foam
  #2
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 124
Rep Power: 19
eelcovv is on a distinguished road
Hi
Download and install the swak4foam library of Bernard Gschaider:

http://openfoamwiki.net/index.php/Contrib/swak4Foam

and look at the pulsedPitzDaily example. It show's exactly what you want.

Regards

Eelco
eelcovv is offline   Reply With Quote

Old   January 24, 2012, 05:25
Default
  #3
Member
 
Tom
Join Date: Jan 2012
Location: France
Posts: 43
Rep Power: 14
sawyer86 is on a distinguished road
Hi Eelc,

thank you very much! I am having a look at the files and I am waiting for the informatic staff will install them...but they seem to be what I need! I really appreciate, thank again!

Now we are debating on it...do you know if does it exist a case with a "real" 3D mesh for the Pitzdaily case? One with a real thicknees in the spanwise direction...

Anyway thank again you solved a very hard problem (I hope...) !

Regards and good luck!
sawyer86 is offline   Reply With Quote

Old   October 27, 2012, 10:21
Default
  #4
New Member
 
Join Date: Apr 2011
Posts: 28
Rep Power: 15
pepe.aero is on a distinguished road
Hi all,

I'm looking for a way to assign spatial non uniform boundary condition at inlet, for example a parabolic velocity profile. Nevertheless, boundary conditions are steady in time.
I have found this page with your comments, do you think the swak4foam library is what I need?
And also if yes, is it possible to assign the velocity profile of any shape tabulated from a csv or any other kind of text file?

Thank you for your help.

Regards,

Andrea
pepe.aero is offline   Reply With Quote

Old   November 21, 2012, 05:49
Default
  #5
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
Quote:
Originally Posted by pepe.aero View Post
Hi all,

I'm looking for a way to assign spatial non uniform boundary condition at inlet, for example a parabolic velocity profile. Nevertheless, boundary conditions are steady in time.
I have found this page with your comments, do you think the swak4foam library is what I need?
And also if yes, is it possible to assign the velocity profile of any shape tabulated from a csv or any other kind of text file?

Thank you for your help.

Regards,

Andrea
Yep. If they're steady in time then you might consider using funkySetBoundaryFields instead of groovyBC
__________________
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

Reply

Tags
boundary condition u, pitzdaily, polynomial


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
Free jet simulation msarkar OpenFOAM Running, Solving & CFD 39 May 11, 2021 14:21
chtMultiRegionSimpleFoam javad814 OpenFOAM 1 September 26, 2011 14:30
Need help with boundary conditions: open to atmosphere Wolle OpenFOAM 2 April 11, 2011 08:32
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 05:32
RasInterFoam STRANGE RESULTS AT BOUNDARY kumar2 OpenFOAM Running, Solving & CFD 8 March 24, 2008 19:38


All times are GMT -4. The time now is 06:49.