|
[Sponsors] |
February 5, 2015, 18:39 |
buoyantSimpleFoam: fixed wall heat flux
|
#1 |
New Member
Join Date: Sep 2012
Posts: 6
Rep Power: 14 |
Dear all cfd-online members,
my question involves two parts. First of all I am using buoyantSimpleFoam solver and I would like: 1) to include a fixed heat flux wall boundary condition. Is that possible in OF and if yes how? 2) in case that is possible to have a fixed wall heat flux boundary condition, I would like that I dont have to specify the heat transfer coefficient, so that I calculate it in post-processing using the temperature difference solution field. Is it possible? thanks and cheers, TaPantaRei |
|
February 6, 2015, 07:12 |
|
#2 |
Member
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15 |
Hi,
Yes, it is possible. I think what you want something is a boundary condition of type fixedGradient (see sec. 5.2 of OF Users Guide). What you want then is to calculate a convection heat transfer coeficient h [W/mēK]? |
|
February 6, 2015, 08:07 |
|
#3 |
New Member
Join Date: Sep 2012
Posts: 6
Rep Power: 14 |
So thiagopl you mean that in the file T for the temperature, for this wall, I should set a fixedGradient boundary condition? Yes my aim is to calculate a heat transfer coefficient, assuming a heat flux value.
|
|
February 6, 2015, 17:45 |
|
#4 |
Member
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15 |
Yes. You'll need to define your Nusselt number and then calculate the h coeficient.
I don't know how to do this in OF. I usually export data and do all the post processing outside OF. |
|
February 8, 2015, 07:16 |
|
#5 |
New Member
Join Date: Sep 2012
Posts: 6
Rep Power: 14 |
Thiago there is a misunderstanding, I didn't clearly mentioned it, but I want to calculate the material's conductivity k [W/mK]. So, from the equation: q = -k*dT/dx, I need k. I was thinking if it was possible to fix a value q, and then from the temperature solution field I compute dT/dx and then I just find k. In Ansys i know thats possible. I don't know if I fix a gradient dT/dx how can i find k?
|
|
February 8, 2015, 09:12 |
|
#6 |
Member
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15 |
You already gave the answer
You know the flux and you calculated the temperature field, so, use some discretisation scheme for dTdx and then you can find k. It is still (for me) a post processing issue. |
|
February 8, 2015, 17:37 |
|
#7 |
New Member
Join Date: Sep 2012
Posts: 6
Rep Power: 14 |
hmm i don't see how exactly I gave the answer because you say that I have to use fixedGradient in the T file, so this means I will give a value for dT/dx which is -q/k. Then from the temperature field how I get k? what I wanted is that I give in T file a fixedValue for q if that's possible? and then from the temperature field I can solve for k.
|
|
February 5, 2016, 10:01 |
|
#8 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
Did you ever solve this problem? Like you I just want to specify q but don't know k or T... What do you think? Cheers, |
||
February 5, 2016, 14:56 |
|
#9 |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Maybe what you need is externalWallHeatFluxTemperature or turbulentHeatFluxTemperature BC's.
Hope it helps. Best regards Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
|
May 26, 2017, 23:41 |
externalWallHeatFluxTemperature with buoyantPimpleFoam
|
#10 |
Member
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15 |
Hi,
I have to use heat flux at the boundary and convective (robin) boundary condition at the other one as heat loss. I tried using externalWallHeatFluxTemperature, but it doesn't seem to work with buoyantPimpleFoam but turbulentHeatFluxTemperature works. Can anyone explain the reason. In principle both are same and during debugging I found both are getting solved and both are giving same output, but externalWallHeatFluxTemperature fails with some library error message: Code:
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 PIMPLE: iteration 1 DILUPBiCG: Solving for Ux, Initial residual = 0.99845272, Final residual = 4.411321e-07, No Iterations 11 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 3.8992528e-07, No Iterations 11 #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::heThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectFluid<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::he(Foam::Field<double> const&, Foam::Field<double> const&, int) const at ??:? #4 Foam::mixedEnergyFvPatchScalarField::updateCoeffs() at ??:? #5 Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) at ??:? #6 Foam::tmp<Foam::fvMatrix<double> > Foam::fv::optionList::operator()<double>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::word const&) at ??:? #7 ? at ??:? #8 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #9 ? at ??:? Floating point exception (core dumped) Kindly suggest -- Tarang |
|
May 27, 2017, 07:54 |
|
#11 |
Member
Join Date: Jul 2013
Posts: 39
Rep Power: 13 |
I am little bit confused what the problem is but, using fixedGradient you can define constant heat flux. So, as I know if you define q = 1000 then you need to give OpenFoam the result of dT/dx by dividing your q into k and you will define k in your thermophysical properties file.
|
|
May 28, 2017, 09:30 |
|
#12 |
Member
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15 |
That is a way I am solving the problem right now but further ahead, my k will change with temperature and also during turbulence, k will be replaced by k+keff.
|
|
December 26, 2018, 04:37 |
|
#13 | |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Quote:
|
||
December 26, 2018, 04:51 |
externalWallHeatFluxTemperature
|
#14 | |
Member
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15 |
Quote:
This will work with buoyantSimpleFoam or buoyantPimpleFoam because they use thermophysical properties. *BossinesqFoam do not use thermophysical properties. |
||
December 26, 2018, 07:16 |
|
#15 | |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Quote:
|
||
December 26, 2018, 07:21 |
|
#16 | |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Quote:
|
||
December 26, 2018, 08:00 |
|
#17 |
Member
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15 |
Leave the thicknessLayers, kappaLayers as it is (0 and empty). These are use if you want to put liner(s).
kappaMethod denotes tells the way to calculate kappa (thermal conductivity). I generally leave it as fluidThermo. If you spend some time with the code and go layer by layer, you will get an idea how to change it. For my incompressible heat transfer simulations, I leave it as fluidThermo. For compressible flows, thermodynamics is slightly different, so some different method may be used. Check thermophysical properties in constant folder, you may get some hint. |
|
December 26, 2018, 09:19 |
|
#18 |
Senior Member
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17 |
||
December 26, 2018, 11:15 |
|
#19 | |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Quote:
Kappa in my simulation in a little different. I use tabulated tables to provide thermal properties. So Kappa is read from "Kappa" table. In thermophysicalProperties: ....... transport { mu { file "constant/mu"; outOfBounds clamp; } kappa { file "constant/kappa"; outOfBounds clamp; } |
||
Tags |
boundary condition, buoyanboussinesqsimple, buoyant solver, heat flux, heat flux coefficient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viewfactors - specified fixed radiation wall heat flux | kuczmas | OpenFOAM Running, Solving & CFD | 1 | June 12, 2014 08:27 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
User wall heat flux coefficient specification | crevoise | STAR-CCM+ | 0 | January 15, 2014 09:26 |
wall heat flux in openfoam | hz283 | OpenFOAM | 1 | January 4, 2014 08:51 |
Basic question: UDF for wall heat flux | Carl | FLUENT | 1 | August 5, 2006 20:01 |