|
[Sponsors] |
May 25, 2017, 03:23 |
|
#21 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
You can edit the expression of wallHeatFlux correspond parameters in material properties and result.
Last edited by hiuluom; May 25, 2017 at 23:47. |
|
May 25, 2017, 13:56 |
Query
|
#22 |
Member
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9 |
Dear Huynh:
I have modified the BC wallHeatFlux as follows. M Code:
FoamFile { Version 2.0; Format ascii; Class volScalarField; Location "0"; Object wallHeatFlux; } // * * * * * * * * * * * * * * Dimensions [1 0 -3 0 0 0 0]; InternalField uniform 0; BoundaryField { Inlet1 { Type calculated; Value uniform 0; } Inlet2 { Type calculated; Value uniform 0; } Inlet3 { Type calculated; Value uniform 0; } Inlet4 { Type calculated; Value uniform 0; } Wall { Type calculated; Value uniforms 0; } Outlet1 { Type calculated; Value uniform 0; } WallTemperature { Type fixedValue; Value uniform 308; } } Last edited by wyldckat; May 27, 2017 at 10:17. Reason: Added [CODE][/CODE] markers |
|
May 25, 2017, 23:35 |
|
#23 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
What heat flux do you want?
You can assign a heat flux or power, convection on a boundary. Reference here: https://github.com/OpenFOAM/OpenFOAM...hScalarField.H about wallHeatFlux tool that it is used to calculate heat flux on wall when you have a result. It is not a BCs. |
|
May 26, 2017, 08:34 |
Query
|
#24 |
Member
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9 |
The heat flow that I want to assign to a wall is 104 W / m2. I have searched the forum and it is not so easy to find. Regarding turbulentHeatFluxTemperature, I do not want to get a fixed temperature gradient. As you comment that wallTransfer is this case is not valid, what other way do you recommend ?. I guess Ansys this BC is already activated, but in OpenFoam 2.3 is difficult to find, I hope your help.
|
|
May 26, 2017, 09:35 |
|
#25 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
I do not get clearly your idea but the heat flux only assign for wall. If you do not want to use it, I can refer other wall heat that:
https://github.com/OpenFOAM/OpenFOAM...hScalarField.H Otherwise, if you want to distribute non-uniform heat heat flux on the wall, you just change uniform to non-uniform like that: Code:
myPatch { type externalWallHeatFluxTemperature; kappa fluidThermo; // fluidThermo, solidThermo or // lookup q nonuniform List<scalar> <number face here> (value here); Ta uniform 300.0; // ambient temperature /[K] h uniform 10.0; // heat transfer coeff /[W/K/m2] thicknessLayers (0.1 0.2 0.3 0.4); // thickness of layer [m] kappaLayers (1 2 3 4) // thermal conductivity of // layer [W/m/K] value uniform 300.0; // initial temperature / [K] kappaName none; } |
|
May 26, 2017, 09:57 |
Query
|
#26 |
Member
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9 |
I just need to assign a constant (uniform) heat flux to a wall and that this heat flow comes through the wall in the simulation and is taken into account in the energy equation. This heat is the heat energy of people delivered to the environment. I need something like:
Code:
FoamFile { Version 2.0; Format ascii; Class volScalarField; Location "0"; Object wallHeatFlux; } // * * * * * * * * * * * * * * Dimensions [1 0 -3 0 0 0 0]; InternalField uniform 0; BoundaryField { Wall1 { Type fixedValue; Value uniform 100; } Wall2 { Type calculation; Value uniform 0; } Wall3 { Type calculated; Value uniform 0; } Wall4 { Type calculated; Value uniform 0; } Floor { Type calculated; Value uniform 0; } Ceiling { Type calculated; Value uniform 0; } Last edited by wyldckat; May 27, 2017 at 10:17. Reason: Added [CODE][/CODE] markers |
|
May 26, 2017, 10:15 |
Query
|
#27 |
Member
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9 |
Find this paper, where you configure the constant heat flux in a wall through a temperature gradient. It's not exactly what I want, I need a heat out the wall:
http://www.tfd.chalmers.se/~hani/kur...ingmingLiu.pdf |
|
May 27, 2017, 13:00 |
|
#28 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all,
AFAIK, "turbulentHeatFluxTemperature" is the closest possibility I know of and setting wall heat flux based on a gradient into the temperature field is a must, because with the Boussinesq approach there is no energy equation, at least in OpenFOAM 2.3.x and when using buoyantBoussinesqPimpleFoam or buoyantBoussinesqSimpleFoam. You can find more specific details in the source code file, which you can get the path to it by running this command: Code:
echo $FOAM_SRC/turbulenceModels/incompressible/turbulenceModel/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.H I've also had to do another bug fix to the custom utility wallHeatFluxIncompressible for it to work properly with this boundary condition, so if you had an old build, then you need to update your existing build, as instructed here: https://github.com/wyldckat/wallHeatFluxIncompressible Attached is the package "modified_hotRoom_example_23x_v1.tar.gz" which provides a modified tutorial case, based on the "tutorials" from OpenFOAM 2.3.x, namely:
If you run this example case by running the script Allrun, at the end it will also run the utility that checks the calculated heat flux exchanged, for which an example for the time step 200, has the customized wallHeatFluxIncompressible giving the following values: Code:
Wall heat fluxes floor: Total 10431.5 [W] over 100 [m2] (104.315 [W/m2]) ceiling: Total -4001.14 [W] over 100 [m2] (-40.0114 [W/m2]) fixedWalls: Total 0 [W] over 200 [m2] (0 [W/m2]) Best regards, Bruno
__________________
|
|
May 29, 2017, 00:40 |
Answer
|
#29 |
Member
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9 |
I found the answer. OpenFoam is not available to configure a constant heat flow. What is done is to impose this condition indirectly, applying the Fourier law and applying a fixed temperature gradient in the Temperature file (This is the response of the previously described Anton Kidess user). Investigate for several days and the first option of imposing a heat flow is not possible. The discussion is over, I hope this information will be beneficial to OpenFoam users on heat transfer issues.
|
|
May 29, 2017, 02:34 |
|
#30 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Congratulations. Indeed all you need to to is specify a fixed temperature gradient of ~ 4.16 K/m2. Really surprised by the other answers you've been getting here.
Quote:
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
||
May 30, 2017, 00:36 |
Query
|
#31 |
Member
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9 |
Dear Bruno, I use the OpenFoam version 2.3.0. With respect to the energy equation in heat transfer solver with the Boussinesq approximation, if there is an energy equation defined as a function of temperature. Analyzing the case, it is interesting to impose a temperature gradient with "TurbulentHeatFluxTemperature", on the other hand, the use of wallHeatFluxIncompressible is a reinforcement study to calculate the heat flux in the wall to be studied. I think this last step is not necessary. By the way, the shared case does not run me, I will solve this.
|
|
June 4, 2017, 19:35 |
|
#32 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answers:
@akidess: Quote:
@jeanpinto24: Then the bug I pointed out is in that version. The fix is described in the report I indicated. Quote:
Quote:
As I mentioned, the shared case was tested with 2.3.x. I expect it might work with 2.3.1, but will definitely not work with 2.3.0. |
||||
June 6, 2017, 03:07 |
|
#33 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Quote:
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
||
June 8, 2017, 04:38 |
Query
|
#34 |
Member
jeanpinto24@hotmail.com
Join Date: Feb 2017
Posts: 44
Rep Power: 9 |
Dear Bruno, I have a query regarding the BC of the temperature on the walls in the classroom. Currently placed as zeroGradient. Attached the case file temperature file:
Code:
FoamFile { Version 2.0; Format ascii; Class volScalarField; Location "0"; Object T; } // * * * * * * * * * * * * * * Dimensions [0 0 0 1 0 0 0]; InternalField uniform 300; BoundaryField { Inlet1 { Type fixedValue; Value uniform 303; } Inlet2 { Type fixedValue; Value uniform 303; } Inlet3 { Type fixedValue; Value uniform 291; } Inlet4 { Type fixedValue; Value uniform 291; } Wall { Type zeroGradient; } Outlet1 { Type zeroGradient; } WallTemperature { Type fixedValue; Value uniform 308; } } Last edited by wyldckat; June 25, 2017 at 09:04. Reason: Added [CODE][/CODE] markers |
|
June 8, 2017, 16:13 |
|
#35 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15 |
Hello,
maybe I'm repeating something introduced before, but why don't you use "turbulentHeatFluxTemperature"? If you know already your heat flux, you can set alphaEff in your solver and get a proper BC. |
|
June 25, 2017, 09:08 |
|
#36 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Quote:
Quote:
|
|||
Tags |
bc for people heat flow |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 05:21 |
heat conduction in solid and convection in flow | kunal | FLUENT | 3 | February 29, 2012 04:42 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 12:02 |
Inviscid Drag at subsonic, subcritical Mach # | Axel Rohde | Main CFD Forum | 1 | November 19, 2001 12:19 |
time averaged heat transfer in oscillating flow | Matthieu Ubas | Main CFD Forum | 2 | November 5, 1999 14:20 |