|
[Sponsors] |
Using snGard (T) on coupled patch for conjugateHeatFoam solver!!! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 12, 2011, 19:20 |
Using snGard (T) on coupled patch for conjugateHeatFoam solver!!!
|
#1 |
New Member
babak kamkari
Join Date: Dec 2010
Posts: 26
Rep Power: 16 |
Hi
I am using conjugate heat foam and I tried to calculate wall temperature gradient on the coupled patch using snGrad(). label patchi = mesh.boundaryMesh().findPatchID("right"); gradT.boundaryField()[patchi]=T.boundaryField()[patchi].snGrad(); The case is two adjacent cavities, one is solid and the other is liquid with natural convection. But the result of wall gradient is much smaller than it should be!!! I think there should be something wrong with using snGrad on the coupled patch since I did the same for boussinesqBuoyantFoam solver and it works correctly. Fvsceme of snGrad is “corrected” and may be it uses the solid cells for calculating snGrad instead of using the cell value of boundary and its neighbor cell in fluid region and it results to wrong answer. I would appreciate any help Thanks in advance |
|
May 13, 2011, 10:14 |
|
#2 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
I don't know what the solution to your problem is, but have you tried comparing the results before and after attaching the patches?
Also, I've found that it can help to use a harmonic interpolation scheme. In divSchemes, I have Gauss harmonic corrected. |
|
May 13, 2011, 11:55 |
|
#3 |
New Member
babak kamkari
Join Date: Dec 2010
Posts: 26
Rep Power: 16 |
Hi Benk
thank you for your reply, I take your advice and tested both off and on for attached case in boundary file. also i changed fvScheme of snGral to Guass harmonic corrected but i didn't get any changes. have you got any idea how i can find wallHeatflux on coupled patch?? thank you |
|
May 13, 2011, 12:04 |
|
#4 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
Have you tried calculating it by hand?
Note: I also have ran into some trouble calculating gradients using this solver. I think you have to closely pay attention to the values of the transport coefficient and the mesh spacing for on and off patches. |
|
May 21, 2011, 11:24 |
|
#5 |
New Member
babak kamkari
Join Date: Dec 2010
Posts: 26
Rep Power: 16 |
I could finally find why calculated temperature gradient on the coupled patch is much smaller than it expected. snGrad works properly but I think that there is something wrong with conjugateheatFoam solver.
When I opened the T files (after running the program), I found that the temperature value of adjacent nodes to the couple boundary (internal field) is almost equal to the boundary value (coupled boundary)!!!!!. And science snGrad uses the difference of these two adjacent temperatures; the calculated gradient will be very small. I don’t know how I can fix it. I really appreciate any help Thanks |
|
May 26, 2011, 11:50 |
|
#6 | |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
Quote:
|
||
May 28, 2011, 01:35 |
|
#7 |
New Member
babak kamkari
Join Date: Dec 2010
Posts: 26
Rep Power: 16 |
Hi Benk
Thank you for your reply. The problem I am solving is a natural convection in a cavity heated (10*10 cm) from one side. The heated boundary is a solid region with 2 mm thickness. I have just added boussinesq approximation to the conjugateHeatFoam (rename to natFoam). It seems like that the solution of solid region propagate to the first node of fluid field!!!!!!!!!!! If you let me have your Email I will be able to send you the solver and the case Best Regards |
|
May 28, 2011, 19:03 |
|
#8 |
New Member
Jean El-Hajal
Join Date: Jun 2010
Location: Ulm
Posts: 16
Rep Power: 16 |
Dear Kamkari,
I am not sure this is the issue but ... Looking at the code, it looks like the conjugateHeatFoam solver is for laminar flow. Did you check if the flow is laminar ? regards, Jean |
|
May 29, 2011, 06:59 |
|
#9 |
New Member
babak kamkari
Join Date: Dec 2010
Posts: 26
Rep Power: 16 |
Hi jean
flow is laminar and it couldn't be the source of error. i think it is solvers bug !! |
|
May 29, 2011, 11:35 |
|
#10 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
||
May 30, 2011, 12:50 |
|
#11 |
New Member
babak kamkari
Join Date: Dec 2010
Posts: 26
Rep Power: 16 |
Hi benk
As I was searching about fvSchemes I found your explanation about harmonic interpolation scheme in the following thread: http://www.cfd-online.com/Forums/ope...efficient.html Since I have sharp changes in the transport coefficient (DT) between regions (Solid DT= 1e-2 & DT= 1e-7) it seems I have to use harmonic interpolation. Could you please let me know how to implement harmonic in fvShcemes file. Should I just use it for interpolationSchemes or …? Regards, |
|
May 30, 2011, 13:50 |
|
#12 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
I explained this in post #2 of this thread: http://www.cfd-online.com/Forums/ope...tml#post307535
"In divSchemes, I have Gauss harmonic corrected" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
segregated solver vrs coupled solver | sm | FLUENT | 0 | November 6, 2007 02:24 |
Coupled and Segregated solver | soe | FLUENT | 2 | March 8, 2007 05:37 |
switching from coupled solver to segregated | Oz | FLUENT | 2 | November 8, 2006 17:02 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |
coupled solver / uncoupled solver | Jaan Unger | Main CFD Forum | 0 | September 3, 2002 09:30 |