|
[Sponsors] |
defining and using varibales in velocity boundary file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 6, 2018, 14:04 |
defining and using varibales in velocity boundary file
|
#1 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
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; } 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? |
|
April 6, 2018, 15:27 |
|
#2 |
Senior Member
Join Date: Mar 2018
Posts: 115
Rep Power: 8 |
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) Code:
A0 2.0; // omega 12.0; t 7.0; A #calc "$A0 * sin($omega * $t)"; |
|
Tags |
boundary condition u, partial slip, variable definition |
|
|