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

Freestream BC, HELP PLEASE!

Register Blogs Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2016, 12:47
Default Freestream BC, HELP PLEASE!
  #1
New Member
 
Join Date: Mar 2016
Posts: 15
Rep Power: 10
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, 16:16
Default
  #2
New Member
 
soichiro
Join Date: Jun 2015
Posts: 6
Rep Power: 11
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, 16:29
Default
  #3
New Member
 
Join Date: Mar 2016
Posts: 15
Rep Power: 10
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, 16:29
Default
  #4
New Member
 
Join Date: Mar 2016
Posts: 15
Rep Power: 10
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, 16:31
Default
  #5
New Member
 
soichiro
Join Date: Jun 2015
Posts: 6
Rep Power: 11
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, 16:40
Default
  #6
New Member
 
Join Date: Mar 2016
Posts: 15
Rep Power: 10
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

Old   July 19, 2017, 05:42
Default
  #7
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Hi

I want to use freestreampressure but combined with having the pressure prescribed as a value:
"Prescribed pressure; with allowed in/outflow reversal"
Is this possible in OpenFoam? Thanks,

PS: more details:
It is a wind engineering in-compressible flow simulation.
I have a prescribed inlet velocity BC (Fluctuating Inlet). We usually combine this with a zeroGradient Pressure BC on the inlet.
I want to have Inlet/Outlet condition on the Top, Sides and Outlet. However, a pressure value should be described on some boundary. Usually we use a fixedValue 0 for pressure. Is there a way to combine this with freestreampressure?
hfs is offline   Reply With Quote

Reply

Tags
airfoil, freestream, time varying, unsteady


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
Freestream Setup in an External Flow Simulation phathomie27 STAR-CCM+ 1 January 6, 2017 08:00
multi-species plasma test case jentink SU2 6 August 5, 2016 03: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 18:18


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