|
[Sponsors] |
[swak4Foam] Implementation of Robin BC by groovyBC : difference wrt. theoretic solution |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 9, 2012, 11:24 |
Implementation of Robin BC by groovyBC : difference wrt. theoretic solution
|
#1 |
New Member
Tianyi LI
Join Date: Mar 2012
Posts: 4
Rep Power: 14 |
Hello everyone, we consider the following stationary heat equation:
Laplacian(T)=0 Code:
-----------T(x)---------- a bar with length L=0.4 m, mesh Delta x=1 mm x=0 x x=L (patch outlet) At x=0 : T(0)=T0=273 K At x=L : kT'(x)=h*(T(L)-Tinf) with k=237 W/mK, h=-100 W/m^2K, Tinf=873 K We have implemented this BC using swak4Foam, in 0/T for the patch outlet: Code:
type groovyBC; variables "k=237;h=-100;Tinf=873;"; valueExpression "Tinf"; fractionExpression "1/(1-k/(mag(delta())*h))"; value $internalField; However, the OF solution differs a little from the theoretic solution : CL.jpg |
|
April 11, 2012, 16:20 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
April 12, 2012, 10:33 |
|
#3 |
New Member
Tianyi LI
Join Date: Mar 2012
Posts: 4
Rep Power: 14 |
After we changed the gradient scheme to leastSquares, everything is fine !! However we still don't know why...
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFL Condition | Matt Umbel | Main CFD Forum | 19 | June 30, 2020 08:20 |
[swak4Foam] A way to update groovyBC variables during the solution | immortality | OpenFOAM Community Contributions | 10 | February 4, 2013 00:56 |
[swak4Foam] no change in solution by change in groovyBC variables | immortality | OpenFOAM Community Contributions | 2 | January 28, 2013 07:34 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 02:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 18:07 |