|
[Sponsors] |
July 6, 2015, 08:12 |
Heat transfer Boundary Condition
|
#1 |
Member
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 14 |
Hi All,
I am trying to model a heat transfer problem for an adjacently placed meshes contacting through a patch. I need to define a heat transfer boundary condition on this patch to enhance the heat transfer between Mesh 1 and Mesh 2. I have also worked with chtMultiRegionFoam previously. This experience didnot help me as i am trying to solve incompressible flow and also using different meshes and volume scalar field. chtMultiRegionFoam helps in modelling heat transfer through mappedPatchBase called baffle between the meshes considered as boundaries. My geometries are complicated so i cannot use baffles. I have searched some probabilties in interpolating or mapping volScalarField of one mesh to another. Can some body help me in modelling heat transfer using GroovyBC or by some other method by using meshToMesh etc. Did somebody work on such complications. Thanks in Advance. Rohith |
|
July 27, 2017, 06:34 |
|
#2 |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Could u solve ur problem?
|
|
July 28, 2017, 17:46 |
|
#3 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 22 |
What's wrong with chtMultiRegionFoam? It seems to be ok in solving that kind of problem. And yes, "coupled" meshes shouldn't even be perfectly conformal - mapped boundary conditions can care for this.
|
|
July 29, 2017, 09:49 |
|
#4 |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
There are not problems with chtMultiRegionFoam, but how to use GroovyBC with differents regions is my key question. Do u know how to use it?
|
|
July 29, 2017, 15:04 |
|
#5 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 22 |
The thread starter said they want to model heat transfer between two mesh regions but they couldn't use chtMultiRegionFoam as the geometry they dealt with was very complex. I don't see how complexity of geometric model can prevent anyone from using chtMultiRegionFoam. Moreover, I can't see why bother with groovyBC, why not use turbulentTemperatureRadCoupledMixedFvPatchScalarFi eld as boundary conditions.
|
|
July 29, 2017, 17:02 |
|
#6 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
1) I am using a simplified version of that solver, then turbulentTemperatureRadCoupledMixedFvPatchScalarFi eld is to complex and slow. If i use groovyBC with fluxa=fluxb and Ta=Tb, is converging far faster for a 1D problem. 2), I need to use another BC, Fluxa=fluxb but Ta a non linear function of Tb. the problem with groovyBC is that i can not use it for a 2d or 3d problem, since it is taken an average flux and temperature in the complete boundary patch between 2 regions. Do u know how to solve that? |
||
July 30, 2017, 16:46 |
|
#7 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 22 |
What turbulentTemperatureRadCoupledMixedFvPatchScalarFi eld basically does is equalizing the fluxes from the left and right sides of an interface between regions. Poor performance (slow convergence) is caused by the fact that equalizing the fluxes is done in a segregated way: solve equations in regions alternately, one after another with explicit coupling on boundaries. I don't think groovyBC can help you overcome it.
Maybe you can adapt the code to your needs: https://cpp.openfoam.org/v3/a10477_source.html#l00174 |
|
July 30, 2017, 17:34 |
|
#8 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
Addapting the code to my needs will take a lot of time TO ME. Is something that I will TRY to do just if i can not do what i need in an easy and fast way (groovyBC). But thanks for the suggestion and for the time. I will try to improve my c++ undertanding.... |
||
July 30, 2017, 17:47 |
|
#9 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 22 |
How do you setup boundary conditions with groovyBC? What's in your 0/T file?
update: now i see your other thread where you explained the problem with groovyBC: https://www.cfd-online.com/Forums/op...r-regions.html Unfortunatly, I have near to zero experience with groovyBC. You could probably ask Bernhard Gschaider (the core developer of groovyBC) for some help. |
|
July 31, 2017, 04:53 |
|
#10 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
fluid BC in 0/Fluid/T: Code:
"fluid_to_.*" { type groovyBC; gradientExpression "0"; fractionExpression "1"; valueExpression "Ts"; variables "Ts{solid_to_fluid/solid}=Tsolid;"; value $internalField; }; Code:
"solid_to_.*" { type groovyBC; gradientExpression "der"; fractionExpression "0"; valueExpression "0"; variables "der{fluid_to_solid/fluid}=-1/40*snGrad(Tfluid);"; value $internalField; }; |
||
Tags |
chtmultiregionfoam, coupled meshes, coupled patches, groovybc, heat and mass transfer |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Radiation heat transfer boundary condition | natrask | OpenFOAM Programming & Development | 0 | February 8, 2015 10:05 |
CFX13 Post Periodic interface | EtaEta | CFX | 7 | December 8, 2011 18:15 |
natural convection | mehrdadeng | CFX | 10 | February 25, 2011 06:25 |
Implications for heat transfer when outlet pressure boundary condition used | Blob | CFX | 2 | March 26, 2009 07:22 |