|
[Sponsors] |
September 26, 2013, 07:25 |
source term in near wall cell
|
#1 |
Member
Join Date: Apr 2013
Posts: 32
Rep Power: 13 |
Hello foamers,
I need to add source terms specific only to the near wall cells. Can anyone suggest a way to do it? regrads, Raj |
|
September 28, 2013, 10:05 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
three hints:
1- if its on patch then you should modify your boundary condition or may using funkySetFields 2- if its in internalField, then you would want to modify your solver and using setField or funkySetFields to defines that region 3- you may want to try Swak4Foam Best Regards
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
September 30, 2013, 10:29 |
|
#3 | |
Member
Join Date: Apr 2013
Posts: 32
Rep Power: 13 |
Quote:
Thanks nimasam. Will try and then get in touch with you... regards, Raj |
||
October 2, 2013, 05:53 |
|
#4 |
New Member
JM
Join Date: Jul 2013
Posts: 7
Rep Power: 13 |
hello foamers:
I have a boundary condition which I need use groovy bc. I set it as: Code:
type groovyBC; gradientExpression "gradT"; variables "gradT=h&k;"; value uniform 0; fractionExpression "0"; Code:
Starting time loop Time = 0.002 Courant Number mean: 0 max: 0.018457 velocity magnitude: 1.0013 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 3.34725e-08, No Iterations 2 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 3.46171e-08, No Iterations 2 DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 5.18204e-08, No Iterations 2 DICPCG: Solving for p, Initial residual = 1, Final residual = 9.56645e-07, No Iterations 456 time step continuity errors : sum local = 4.24956e-11, global = 1.10631e-13, cumulative = 1.10631e-13 DICPCG: Solving for p, Initial residual = 0.0001707, Final residual = 9.46825e-07, No Iterations 266 time step continuity errors : sum local = 1.00183e-08, global = 3.48549e-12, cumulative = 3.59613e-12 DICPCG: Solving for p, Initial residual = 1.53399e-06, Final residual = 9.69365e-07, No Iterations 213 time step continuity errors : sum local = 1.02131e-08, global = 1.92931e-10, cumulative = 1.96527e-10 [1] swak4Foam: Allocating new repository for sampledGlobalVariables [12] swak4Foam: Allocating new repository for sampledGlobalVariables [2] swak4Foam: Allocating new repository for sampledGlobalVariables [7] swak4Foam: Allocating new repository for sampledGlobalVariables [13] swak4Foam: Allocating new repository for sampledGlobalVariables [15] swak4Foam: Allocating new repository for sampledGlobalVariables [10] swak4Foam: Allocating new repository for sampledGlobalVariables [4] swak4Foam: Allocating new repository for sampledGlobalVariables [0] swak4Foam: Allocating new repository for sampledGlobalVariables [9] swak4Foam: Allocating new repository for sampledGlobalVariables [3] swak4Foam: Allocating new repository for sampledGlobalVariables [5] swak4Foam: Allocating new repository for sampledGlobalVariables [11] swak4Foam: Allocating new repository for sampledGlobalVariables [14] swak4Foam: Allocating new repository for sampledGlobalVariables [6] swak4Foam: Allocating new repository for sampledGlobalVariables [8] swak4Foam: Allocating new repository for sampledGlobalVariables Code:
swak4Foam: Allocating new repository for sampledGlobalVariables Does it mean that the boundary condition is not "h&k"? Thank you very much! regards! xiaof |
|
October 8, 2013, 20:37 |
|
#5 | |
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 |
||
February 1, 2016, 11:31 |
|
#6 |
Member
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11 |
Hi
I meet the same situation that a source term is needed in the momentum equation only near the wall cell centres. Have you find a how to add such a source term? Xinguang |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 11:03 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |