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

source term in near wall cell

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 4
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 Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   September 30, 2013, 09:29
Default
  #3
Member
 
Join Date: Apr 2013
Posts: 32
Rep Power: 4
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: 4
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: 3,915
Rep Power: 40
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

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 23 July 10, 2015 09:44
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
Water subcooled boiling Attesz CFX 7 January 5, 2013 04: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 08:05.