|
[Sponsors] |
September 16, 2014, 05:58 |
groovyBC for extrapolation
|
#1 |
Senior Member
|
Dear ALL,
I wish to extrapolate internal fields on to the Wall Boundary condition instead of zeroGradient condition. The following extrapolation I wish to use: Code:
tau[wall] = average(tau) - average(normal)*(Sum( (normal[i]-average(normal))*(tau[i]-average(tau)) )/ Sum (pow((normal[i]-avg(normal)),2) ) normal[i] are the distance of face centres (tau[i]); Sum depends on the i; average(tau) is the mean of tau[i]; average(normal) is the mean of normal[i]; How would I progress for the same? Thanks in Advance! |
|
September 17, 2014, 17:22 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
September 19, 2014, 00:56 |
|
#3 | |
Senior Member
|
Quote:
You mean to say I should use the following expression { type groovyBC; variables "taui=internalField(tau);normali=internalField(nor mal());"; valueExpression "tau = average(tau) - average(normal())*(Sum( (normali-average(normal()))*(taui-average(tau)) )/ Sum (pow((normali-average(normal())),2) )"; ... } Please correct me if I am wrong |
||
September 23, 2014, 13:48 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
March 14, 2015, 03:09 |
|
#5 | |
New Member
Ehsan Mahravan
Join Date: Dec 2014
Location: Tehran, Iran
Posts: 9
Rep Power: 11 |
Quote:
I want to use extrapolation you explained here, but when i use the following code: variables "pi=internalField(p); normali=internalField(normal());"; i get the following error: --> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.15-20" :"syntax error, unexpected TOKEN_normal" "internalField(normal())" ^^^^^^ ----------------| |
||
September 23, 2015, 16:14 |
|
#6 |
New Member
Join Date: Jul 2014
Posts: 26
Rep Power: 11 |
Hello,
I want to impose on my boundary something like: Code:
T_b = T_s/5 T_b is the temperature at my boundary T_s is the temperature at the position S . Is there a way to extrapolate that value at S, and impose it at the boundary? Thank you in advance, Cheers |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC for oscillatory flow | liybzd | OpenFOAM Community Contributions | 5 | November 12, 2018 07:53 |
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC | zanilu70 | OpenFOAM Community Contributions | 4 | December 13, 2016 06:46 |
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam | dani2702 | OpenFOAM Community Contributions | 0 | November 17, 2016 03:30 |
[swak4Foam] groovyBC issue - k and epsilon | sagnikmazumdar | OpenFOAM Community Contributions | 24 | March 1, 2015 07:16 |
[swak4Foam] groovyBC and Eqn.setReference() | benk | OpenFOAM Community Contributions | 3 | June 2, 2011 08:49 |