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

source term in near wall cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2013, 06:25
Default source term in near wall cell
  #1
Member
 
Join Date: Apr 2013
Posts: 32
Rep Power: 13
rajcfd is on a distinguished road
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
rajcfd is offline   Reply With Quote

Old   September 28, 2013, 09:05
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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)
nimasam is offline   Reply With Quote

Old   September 30, 2013, 09:29
Default
  #3
Member
 
Join Date: Apr 2013
Posts: 32
Rep Power: 13
rajcfd is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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

Thanks nimasam. Will try and then get in touch with you...


regards,
Raj
rajcfd is offline   Reply With Quote

Old   October 2, 2013, 04:53
Default
  #4
New Member
 
JM
Join Date: Jul 2013
Posts: 7
Rep Power: 13
xiaof is on a distinguished road
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";
After I run my solver,I got the following messages:
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
what does this
Code:
swak4Foam: Allocating new repository for sampledGlobalVariables
mean?

Does it mean that the boundary condition is not "h&k"?

Thank you very much!

regards!

xiaof
xiaof is offline   Reply With Quote

Old   October 8, 2013, 19:37
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by xiaof View Post
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";
After I run my solver,I got the following messages:
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
what does this
Code:
swak4Foam: Allocating new repository for sampledGlobalVariables
mean?

Does it mean that the boundary condition is not "h&k"?
No. This is just an informative output. Ignore it
__________________
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
gschaider is offline   Reply With Quote

Old   February 1, 2016, 10:31
Default
  #6
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
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
JasonWang3 is offline   Reply With Quote

Reply


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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40


All times are GMT -4. The time now is 01:28.