Convective Heat transfer in laplacianFoam
Hallo everyone
i'm simulating some fins in laplacianfoam, and would like to make a convective boundary condition, but i can't seem to find the right one to impose. Does anybody have any experience with such a BC - and can push me in the right direction ? - Fridrik Magnusson |
Further investigation
Tobi [1] suggest to use "laserConvection"[2] but i dont really know what all the fields mean, if you guys has any ideas please fill me in
Code:
myPatch [1] https://www.cfd-online.com/Forums/op...ianfoam-4.html [2] https://bitbucket.org/shor-ty/laserconvectionbc |
Hi!
Have you seen the convectiveHeatTransfer... BC? I think this is for flat plate, but if you know your equation for the nusselt number in your case (if not a flat plate), you can simply create your BC based on it (Just rewrite the equation and compile it). https://cpp.openfoam.org/v6/classFoa...d.html#details BTW the 1st unknown ("value") is the initial condition. I don't know the others, but you can check them in the code. (the beauty of OF.) |
Hi Simrego, i would like to decide the htc, then this might work. It seems like Nu, Re and Pr are calculated from a vectorfield, but im not that good at reading source files. Where does convectiveHeatTransfer get the Nu, Re and Pr from ?
|
Re and Pr are calculated from the velocity, mat props, etc.
Pr, Re: line 136, 143. https://cpp.openfoam.org/v6/convecti...8C_source.html Nu is the ration between convective and conductive heat transfer: Nu = h * L / k, which can be written as: h = Nu * k / L You use this equation in line 145-152. Where the Nu is some fancy function depending on Pr, and Re, and the end of the equation you can find that multiplication with kappa, and division with L. In the code you can find it for flat plate (i think, i'm not sure, you should check it). You can find Nu for many applications on the internet. So if you have something else (not flat plate), you should rewrite the code between line 145-152. |
Or i don't know what is your goal exactly, but maybe externalWallHeatFlux could be good for you:
https://cpp.openfoam.org/v6/classFoa...d.html#details This is a boundary condition which can operate in three modes. Details in the link. |
Fixed h
Code:
dud |
Fixed h
Hi again Simrego, thanks for your suggestions.
I think it is possible to make a rewrite the "convectiveHeatTransfer" to get the "htc" from the ./0/T BC something from: Code:
{ to Code:
{ If i use the "externalWallHeatFlux" like this Code:
i get the following error: Code:
/*---------------------------------------------------------------------------*\ |
1. what do you mean under "link to another file"?
2. You use laplacianFoam, you have no thermo package there. Now I'm a bit lost, didn't noticed it cannot be used in laplacianFoam. The not so elegant but working solution can be if you use chtMultiRegion with only one region (maybe there are other solutions too) 3. I should did it much much earlier, but what is your problem description? What do you have, what do you want, etc. |
ill start from the back
3. I want to make a code which can generate the best cross sectional fin array, which must remain closed. By utilizing topology optimization. https://imgur.com/a/kIjVbVW Since working with very limited computational power. The i think the best starting point is to just solve the steady state heat equation for a 2-D cross section. Where the boundary convective condition is based on empirical approximations [Nu(Re,Pr)]. Step one will be to solve a basic case, by applying the correct BC which is what we are discussing :) Step two will be to setup the topological stuff (which is really hard) 2. Ill look into using chtMultiRegion instead of laplacianFoam 1. i mean i want to reference to a constant maybe in transportProperties. I hope this makes sense :) |
All times are GMT -4. The time now is 03:05. |