CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

buoyantSimpleFoam: fixed wall heat flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2015, 18:39
Default buoyantSimpleFoam: fixed wall heat flux
  #1
New Member
 
Join Date: Sep 2012
Posts: 6
Rep Power: 14
TaPantaRei is on a distinguished road
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
TaPantaRei is offline   Reply With Quote

Old   February 6, 2015, 07:12
Default
  #2
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15
thiagopl is on a distinguished road
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]?
thiagopl is offline   Reply With Quote

Old   February 6, 2015, 08:07
Default
  #3
New Member
 
Join Date: Sep 2012
Posts: 6
Rep Power: 14
TaPantaRei is on a distinguished road
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.
TaPantaRei is offline   Reply With Quote

Old   February 6, 2015, 17:45
Default
  #4
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15
thiagopl is on a distinguished road
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.
thiagopl is offline   Reply With Quote

Old   February 8, 2015, 07:16
Default
  #5
New Member
 
Join Date: Sep 2012
Posts: 6
Rep Power: 14
TaPantaRei is on a distinguished road
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?
TaPantaRei is offline   Reply With Quote

Old   February 8, 2015, 09:12
Default
  #6
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15
thiagopl is on a distinguished road
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.
thiagopl is offline   Reply With Quote

Old   February 8, 2015, 17:37
Default
  #7
New Member
 
Join Date: Sep 2012
Posts: 6
Rep Power: 14
TaPantaRei is on a distinguished road
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.
TaPantaRei is offline   Reply With Quote

Old   February 5, 2016, 10:01
Default
  #8
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 18
kingjewel1 is on a distinguished road
Quote:
Originally Posted by TaPantaRei View Post
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.
Dear TaPantaRei,

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,
kingjewel1 is offline   Reply With Quote

Old   February 5, 2016, 14:56
Default
  #9
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
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!
zfaraday is offline   Reply With Quote

Old   May 26, 2017, 23:41
Default externalWallHeatFluxTemperature with buoyantPimpleFoam
  #10
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15
gtarang is on a distinguished road
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)
It shows that Ux and Uy are getting solved but during T solution there is some mistake.
Kindly suggest

--
Tarang
gtarang is offline   Reply With Quote

Old   May 27, 2017, 07:54
Default
  #11
Member
 
Join Date: Jul 2013
Posts: 39
Rep Power: 13
cfdsolver1 is on a distinguished road
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.
cfdsolver1 is offline   Reply With Quote

Old   May 28, 2017, 09:30
Default
  #12
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15
gtarang is on a distinguished road
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.
gtarang is offline   Reply With Quote

Old   December 26, 2018, 04:37
Default
  #13
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by cfdsolver1 View Post
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.
I need the fixed wall flux q in wall BC. If kappa is changing with T, and now I know the value of fixed wall flux q, but kappa is not constant, how should the fixedGradient be set?
calf.Z is offline   Reply With Quote

Old   December 26, 2018, 04:51
Default externalWallHeatFluxTemperature
  #14
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15
gtarang is on a distinguished road
Quote:
Originally Posted by calf.Z View Post
I need the fixed wall flux q in wall BC. If kappa is changing with T, and now I know the value of fixed wall flux q, but kappa is not constant, how should the fixedGradient be set?


This will work with buoyantSimpleFoam or buoyantPimpleFoam because they use thermophysical properties. *BossinesqFoam do not use thermophysical properties.
gtarang is offline   Reply With Quote

Old   December 26, 2018, 07:16
Default
  #15
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by gtarang View Post
This will work with buoyantSimpleFoam or buoyantPimpleFoam because they use thermophysical properties. *BossinesqFoam do not use thermophysical properties.
Thank you, I have noticed the boundary BC. But I am confused with some parameters in it, such as: thicknessLayers 、kappaLayers and kappaMethod. Do you have a good understanding of it?
calf.Z is offline   Reply With Quote

Old   December 26, 2018, 07:21
Default
  #16
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by gtarang View Post
This will work with buoyantSimpleFoam or buoyantPimpleFoam because they use thermophysical properties. *BossinesqFoam do not use thermophysical properties.
Thank you, I have noticed the boundary BC. But I am confused with some parameters in it, such as: thicknessLayers 、kappaLayers and kappaMethod. Do you have a good understanding of it?
calf.Z is offline   Reply With Quote

Old   December 26, 2018, 08:00
Default
  #17
Member
 
Tarang
Join Date: Feb 2011
Location: Delhi, India
Posts: 47
Rep Power: 15
gtarang is on a distinguished road
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.
gtarang is offline   Reply With Quote

Old   December 26, 2018, 09:19
Default
  #18
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
https://drive.google.com/file/d/1d-e...ew?usp=sharing

see 4.7. - 4.9.

Regards

Peter
peterhess is offline   Reply With Quote

Old   December 26, 2018, 11:15
Default
  #19
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by gtarang View Post
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.
Thank you for the hints. I am now using compressible solver, so should I use other method instead of fluidThermo?

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;
}
calf.Z is offline   Reply With Quote

Reply

Tags
boundary condition, buoyanboussinesqsimple, buoyant solver, heat flux, heat flux coefficient


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


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


All times are GMT -4. The time now is 16:18.