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

externalWallHeatFluxTemperature

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2014, 05:17
Default externalWallHeatFluxTemperature
  #1
Member
 
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13
Roman1 is on a distinguished road
Hello. The function externalWallHeatFluxTemperature works differently at OF2.2 and at OF2.3 but the source code looks equal. Where one can find differences?
Roman1 is offline   Reply With Quote

Old   May 5, 2014, 05:20
Default
  #2
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
Quote:
Originally Posted by Roman1 View Post
Hello. The function externalWallHeatFluxTemperature works differently at OF2.2 and at OF2.3 but the source code looks equal. Where one can find differences?

What exactly do you mean "works differently"? Are the enumerators different in terms of words used to describe the object? Did you get different results using the same dictionary file?
massive_turbulence is offline   Reply With Quote

Old   May 5, 2014, 05:26
Default
  #3
Member
 
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13
Roman1 is on a distinguished road
Yes, I get different results at Of2.2 and OF2.3 with the same case. The function wallHeatFlux shows greater values at OF2.3 and the temperature inside the domain at OF2.2 higher that at OF2.3.
Roman1 is offline   Reply With Quote

Old   May 5, 2014, 12:46
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
hello,
Not sure here, but i think there were a bug report about this bc for OF2.2

regards,
olivier
olivierG is offline   Reply With Quote

Old   May 28, 2014, 06:57
Default
  #5
Member
 
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13
Roman1 is on a distinguished road
The bug is in OF2.3: http://www.openfoam.org/mantisbt/view.php?id=1258
Thanks to all
Roman1 is offline   Reply With Quote

Old   May 31, 2014, 16:03
Default
  #6
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
how does one get a fixed version of this in openfoam?
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   June 2, 2014, 04:17
Default
  #7
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
Just use the 2.3.x version from git repo.
Then a git pull and Allwmake will give you a up to date version.

regards,
olivier
olivierG is offline   Reply With Quote

Old   June 2, 2014, 16:48
Default
  #8
New Member
 
Jean El-Hajal
Join Date: Jun 2010
Location: Ulm
Posts: 16
Rep Power: 16
Jean El-Hajal is on a distinguished road
Dear all,

are you using the externalWallHeatFluxTemperature function with the heat flux (q) option or with the heat transfer coefficient (h) and external temperature (Ta) option ?

With the heat flux (q) it seems to work. But with the heat transfer coefficient (h) and external temperature (Ta) it works with OpenFoam 2.2.2 but not with OpenFoam 2.3.0. With OF 2.3.0 it just behave like an adiabatic wall ?! Did someone test this option with OF 2.3.0 ?

Best regards,

Jean
Jean El-Hajal is offline   Reply With Quote

Old   June 3, 2014, 01:41
Default
  #9
Member
 
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13
Roman1 is on a distinguished road
The bug is in OF2.3: http://www.openfoam.org/mantisbt/view.php?id=1258
Roman1 is offline   Reply With Quote

Old   November 20, 2014, 03:20
Default
  #10
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
I have installed openFoam by following instructions on the openFoam website. I do not wish to go through the installation process again. Is there any workaround to use the corrected boundary condition??
vasava is offline   Reply With Quote

Old   March 27, 2015, 13:19
Default
  #11
Member
 
Naresh Yathuru
Join Date: Feb 2015
Posts: 66
Rep Power: 11
Naresh yathuru is on a distinguished road
Hi Foamers,

I m also using OF 2.3.0 and I have the same problem like vasava. could someone please help me how to clear the bug with out re installing again. I m afraid if i have to reinstall openFoam again. because i m using centOS 6.5 and i struggled a lot during the previous installation. and i m not a very good user of linux os.

regards,
Naresh
Naresh yathuru is offline   Reply With Quote

Old   March 30, 2015, 07:04
Default ExternalwallHeatfluxtemperature BC in openFoam 2.3.0
  #12
Member
 
Naresh Yathuru
Join Date: Feb 2015
Posts: 66
Rep Power: 11
Naresh yathuru is on a distinguished road
Hi Foamers,
sorry for restarting the thread again. I have a similar problem with externalwallheatFluxTemperature. Could somebody help me. I have a question in this link.

http://www.cfd-online.com/Forums/ope...tml#post538568

I m using OF 2.3.0. and I read in some threads that there is a bug in 2.3.0. could someone tell me if which of the following a better idea to fix the bug.

1. make new boundary condition by copying the bounday condition from 2.3.1 into 2.3.0?
2. reinstall from git repository? if this is better then how?

3. can i use the boundary condition for incompressible solver?(buoyantboussinessqsimplefoam)

I m feel lost now.

regards,
Naresh Yathuru

[Moderator note: post moved from the thread http://www.cfd-online.com/Forums/ope...bient-air.html ]

Last edited by wyldckat; April 5, 2015 at 08:48. Reason: see "Moderator note:"
Naresh yathuru is offline   Reply With Quote

Old   April 5, 2015, 09:15
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Naresh,

Quote:
Originally Posted by Naresh yathuru View Post
1. make new boundary condition by copying the bounday condition from 2.3.1 into 2.3.0?
I don't know if you've already solved this problem or not, but the easiest is to follow these steps:
  1. Run these commands, for going to the folder for fixing the damaged boundary condition:
    Code:
    cd $FOAM_SRC/turbulenceModels/compressible/turbulenceModel/derivedFvPatchFields/externalWallHeatFluxTemperature/
  2. Backup the current file:
    Code:
    mv externalWallHeatFluxTemperatureFvPatchScalarField.C externalWallHeatFluxTemperatureFvPatchScalarField.C.old
  3. Download the file that has the fixed file:
    Code:
    wget --no-check-certificate https://raw.githubusercontent.com/OpenFOAM/OpenFOAM-2.3.x/master/src/turbulenceModels/compressible/turbulenceModel/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C
  4. Now build the library that needs to be fixed:
    Code:
    cd $FOAM_SRC/turbulenceModels/compressible/turbulenceModel
    wmake libso
  5. Run the last command again:
    Code:
    wmake libso
    it should tell you something like this:
    Code:
    '/home/ofuser/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so' is up to date.
    which means that it's fixed.
And it should now work correctly.


Best regards,
Bruno
flowAlways and Naresh yathuru like this.
__________________
wyldckat is offline   Reply With Quote

Old   April 7, 2015, 09:05
Default
  #14
Member
 
Naresh Yathuru
Join Date: Feb 2015
Posts: 66
Rep Power: 11
Naresh yathuru is on a distinguished road
hello Bruno,

thank you for the reply once again. I was interested in using the externalwallHeatFluxTemperature for incompressible flows. but as far as i have read it works only for compressible solver and in addition to that there is a bug. so i was trying something with grooveyBC but without sucess.

Now i should get back to square 1, and try to implement the b.c for incompressible solvers. I know its really hard for someone like me who doesnt have a very good knowledge of c++.However i will try it sooner or later. i have started making changes to some basic solvers. i m comparing compressible ::turbulent'WallHeatTemperature B.C with incompressible:: turbulentWallHeatfluxTemperature B.C.


May be this is not an appropriate thread to ask this question. sorry but,It would be very helpful if someone had already implemented could post the B.c or any guidence on how to implenent it.

thanks once again Bruno and other Foamers.

Best Regards,
Naresh
Naresh yathuru is offline   Reply With Quote

Old   May 22, 2015, 12:55
Default
  #15
New Member
 
Ali Kadar
Join Date: Oct 2014
Location: Delft
Posts: 25
Rep Power: 12
flowAlways is on a distinguished road
Thanks Bruno,

Your solution works when we make changes to the FOAM_SRC, however since its not a good idea to make changes to the actual source. I copy the directory $FOAM_SRC/turbulenceModels/compressible/turbulenceModel make changes to externalWallHeatFluxTemperatureFvPatchScalarField. C and update
LIB = $(FOAM_USER_LIBBIN)/libmy_compressibleTurbulenceModel in Make/files.

However the build with "wmake libso" exits with the following error
Code:
derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C:72:  error: class ‘Foam::externalWallHeatFluxTemperatureFvPatchScalarField’  does not have any field named ‘QrName_’
I think Qr for radiation was implemented in version 2.3.1 and is not present in 2.3.0 ... and therefore the make fails... can you please suggest a way, what more changes would be needed for a successful build ?








Quote:
Originally Posted by wyldckat View Post
Hi Naresh,


I don't know if you've already solved this problem or not, but the easiest is to follow these steps:
  1. Run these commands, for going to the folder for fixing the damaged boundary condition:
    Code:
    cd $FOAM_SRC/turbulenceModels/compressible/turbulenceModel/derivedFvPatchFields/externalWallHeatFluxTemperature/
  2. Backup the current file:
    Code:
    mv externalWallHeatFluxTemperatureFvPatchScalarField.C externalWallHeatFluxTemperatureFvPatchScalarField.C.old
  3. Download the file that has the fixed file:
    Code:
    wget --no-check-certificate https://raw.githubusercontent.com/OpenFOAM/OpenFOAM-2.3.x/master/src/turbulenceModels/compressible/turbulenceModel/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C
  4. Now build the library that needs to be fixed:
    Code:
    cd $FOAM_SRC/turbulenceModels/compressible/turbulenceModel
    wmake libso
  5. Run the last command again:
    Code:
    wmake libso
    it should tell you something like this:
    Code:
    '/home/ofuser/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so' is up to date.
    which means that it's fixed.
And it should now work correctly.


Best regards,
Bruno
__________________
A good solution is one which does justice to the inner nature of the problem- Cornelius Lanczos in a letter to Albert Einstein on March 9, 1947
flowAlways is offline   Reply With Quote

Old   May 24, 2015, 10:27
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings flowAlways,

Sorry, but I'll have to be quick: you're doing the right thing in not modifying the original source code directly, but you should not copy the source code for the whole library, otherwise you risk in-process memory corruption, due to having objects with the same name.

You should instead to it as explained here: http://openfoamwiki.net/index.php/Ho...dary_condition
which is to make a copy of only the relevant files you need to fix.

In addition, I guess that the fix I proposed in the previous post only repairs the ".C" file. Therefore, you should also update the ".H" file.

Best regards,
Bruno
flowAlways likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 28, 2015, 10:57
Default It works
  #17
Member
 
Matthias Hettel
Join Date: Apr 2011
Location: Karlsruhe, Germany
Posts: 31
Rep Power: 15
matthi is on a distinguished road
Hi Foamers,

if you also update externalWallHeatFluxTemperatureFvPatchScalarField. H it works.

Greetings matthi
matthi is offline   Reply With Quote

Old   April 3, 2017, 07:11
Default
  #18
New Member
 
Akshay
Join Date: Nov 2016
Location: Chennai,India
Posts: 7
Rep Power: 10
vak96 is on a distinguished road
Hi Foamers,

I want to use externalWallHeatFluxTemperature boundary condition for my own customized laplacian solver. Can anyone please explain in detail, how to apply that boundary condition? I know that it has been used in few tutorial problem but I could not get exactly how to use it.

I am using Openfoam-v1612+ and my geometry is a cylinder. I want this boundary condition for walls.

I will be very happy if someone helps me.

Thanking you in advance,
Akshay
vak96 is offline   Reply With Quote

Old   December 26, 2018, 04:05
Default
  #19
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
I am also confused about the parameters of externalWallHeatFluxTemperature. Can anyone explain its meaning? Thank you.
calf.Z is offline   Reply With Quote

Old   September 24, 2019, 03:31
Default
  #20
Member
 
Vishnu
Join Date: May 2019
Location: Tamilnadu, India
Posts: 55
Rep Power: 7
Vishsel is on a distinguished road
Hi all,

In my case, i have to use a boundary type that needs the input as heat Flux, which is recalculated to get the output as temperature. my solver is chtMultiRegionSimpleFoam.

0/T file :

Code:
wall-mp-1
    {
        type            externalWallHeatFluxTemperature;
        heatSource      flux;
        q               uniform 6000 ;
        alphaEff        alphaEff;
        value            uniform 323.15; ? //why i need to give temp. value ? because i already gave 'q' value know?
        kappa           solidThermo;
        kappaName       none; 
    }
Code:
Solving for fluid region fluid
DILUPBiCG:  Solving for Ux, Initial residual = 0.00242038, Final residual = 2.85334e-005, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 0.00466735, Final residual = 7.31426e-005, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 0.00371143, Final residual = 0.00020355, No Iterations 1
DILUPBiCG:  Solving for h, Initial residual = 0.00293122, Final residual = 0.000270902, No Iterations 1
Min/max T:323.3 323.3
GAMG:  Solving for p_rgh, Initial residual = 0.0017874, Final residual = 1.12521e-005, No Iterations 3
time step continuity errors : sum local = 0.0587456, global = 0.00203603, cumulative = 10.1817
Min/max rho:***
DILUPBiCG:  Solving for epsilon, Initial residual = 0.00358344, Final residual = 4.05951e-005, No Iterations 2
DILUPBiCG:  Solving for k, Initial residual = 0.00331097, Final residual = 3.24722e-005, No Iterations 2

Solving for solid region solid
DICPCG:  Solving for h, Initial residual = 0.00218476, Final residual = 9.17909e-006, No Iterations 4
Min/max T:min(T) [0 0 0 1 0 0 0] 323.129 max(T) [0 0 0 1 0 0 0] 349.782
ExecutionTime = 788.942 s  ClockTime = 789 s
Why there is a need of two inputs as temp. value and heat flux value in 0/T ? Because i need to set an input as heat flux value only..

Is this boundary type is correct for assigning of heat flux as an input ? if it is not, Which one is suitable for my case?

Last edited by Vishsel; September 24, 2019 at 07:58.
Vishsel is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 12:51.