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

defining and using varibales in velocity boundary file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By anon_q

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2018, 14:04
Default defining and using varibales in velocity boundary file
  #1
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi;

I am aware independently of the "partialSlip" and "groovyBC" boundaries.

For my velocity boundary, I would like to use a partialSlip condition like:
Code:
wall
{
type partialSlip;
valueFraction uniform 0.3;
}
The value fraction is given by: D/(D+2l) where D is the cell size in normal direction and l is the slip length.

However, my cell normal distance is not a constant and varies along the length of the channel. In short, I would like to use groovyBC with the following expression "mag(delta)/(mag(delta)+slip)" where delta is distance between face center on boundary to the cell center.

Unfortunately, this would not capture the tangential component then.

Is it possible to specify variables in the velocity boundary file for "slip=1" and "cellDist=mag(delta)" and use the above mentioned equation?
Saideep is offline   Reply With Quote

Old   April 6, 2018, 15:27
Default
  #2
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
If I understood you question well, then yes you can use inline calculations (See Section 4.2.13 of the User Guide version 5.0).
Here is an example:
Say I want to calculate a variable
Code:
A = A0 * sin(omega * t)
; then

Code:
A0     2.0;  //
omega  12.0;
t      7.0;
A    #calc "$A0 * sin($omega * $t)";
Saideep likes this.
anon_q is offline   Reply With Quote

Reply

Tags
boundary condition u, partial slip, variable definition


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



All times are GMT -4. The time now is 11:27.