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

Freestream BC, HELP PLEASE!

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

Like Tree2Likes
  • 1 Post By TypeR
  • 1 Post By TypeR

Reply
 
LinkBack Thread Tools Display Modes
Old   March 28, 2016, 11:47
Default Freestream BC, HELP PLEASE!
  #1
New Member
 
Join Date: Mar 2016
Posts: 13
Rep Power: 2
Mike_star is on a distinguished road
Hello everyone,

I am pretty new to Openfoam and I am trying to model a 2d airfoil in a time varying free stream velocity. From the airfFoil2D tutorial I got I need to set the type of the boundaries to "freestream" for all inlet,outlet, top and bottom patches and the wind velocity in the tutorial has been set as follows:
type freestream;
freestreamValue uniform (25.75 3.62 0);

is there any way that I can change the freestreamValue to a time varying value using the same boundary type (freestream)?
(I should mention that for some reason I prefer to keep the type of the boundaries as freestream)
Thank you.
Mike_star is offline   Reply With Quote

Old   March 28, 2016, 15:16
Default
  #2
New Member
 
soichiro
Join Date: Jun 2015
Posts: 5
Rep Power: 3
TypeR is on a distinguished road
Example from groovyBC instruction page(mimics inletOutlet):

outlet
{
type groovyBC;
valueExpression "vector(0,0,0)";
gradientExpression "vector(0,0,0)";
fractionExpression "(phi > 0) ? 0 : 1";
value uniform (0 0 0);
}

fractionExpression: Direchlet(1) or Neumann(0) BC
gradientExpression: for Neumann BC
valueExpression: for Direchlet BC

You can change the expressions to be time varying
Mike_star likes this.
TypeR is offline   Reply With Quote

Old   March 28, 2016, 15:29
Default
  #3
New Member
 
Join Date: Mar 2016
Posts: 13
Rep Power: 2
Mike_star is on a distinguished road
Thank you for your reply. Could you please send me the link of the page?
what does "phi" stand for?
Mike_star is offline   Reply With Quote

Old   March 28, 2016, 15:29
Default
  #4
New Member
 
Join Date: Mar 2016
Posts: 13
Rep Power: 2
Mike_star is on a distinguished road
Quote:
Originally Posted by TypeR View Post
Example from groovyBC instruction page(mimics inletOutlet):

outlet
{
type groovyBC;
valueExpression "vector(0,0,0)";
gradientExpression "vector(0,0,0)";
fractionExpression "(phi > 0) ? 0 : 1";
value uniform (0 0 0);
}

fractionExpression: Direchlet(1) or Neumann(0) BC
gradientExpression: for Neumann BC
valueExpression: for Direchlet BC

You can change the expressions to be time varying
Thank you for your reply. Could you please send me the link of the page?
what does "phi" stand for?
Mike_star is offline   Reply With Quote

Old   March 28, 2016, 15:31
Default
  #5
New Member
 
soichiro
Join Date: Jun 2015
Posts: 5
Rep Power: 3
TypeR is on a distinguished road
https://openfoamwiki.net/index.php/Contrib/groovyBC

phi is the flux
Mike_star likes this.
TypeR is offline   Reply With Quote

Old   March 28, 2016, 15:40
Default
  #6
New Member
 
Join Date: Mar 2016
Posts: 13
Rep Power: 2
Mike_star is on a distinguished road
Quote:
Originally Posted by TypeR View Post
Awesome. Actually the good thing about the "freestream" is that it treats each cell as a single patch, therefore instead of having inlet/outlet/bottom/top a circular boundary can be considered and the freestream can be applied. However for groovyBC it is necessary to have inlet and outlet.( please correct me if I am wrong)

Thank you for your help.
Mike_star is offline   Reply With Quote

Reply

Tags
airfoil, freestream, time varying, unsteady

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-species plasma test case jentink SU2 6 August 5, 2016 02:04
SU2 cfg file and runtime problems hedley SU2 19 January 26, 2016 05:17
parallel code samiam1000 SU2 3 March 25, 2013 05:55
singularity? mihaipruna OpenFOAM Running, Solving & CFD 5 April 24, 2012 17:18
Freestream Setup in an External Flow Simulation phathomie27 STAR-CCM+ 0 October 20, 2009 18:38


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