|
[Sponsors] |
compressibleInterFoam incl. viscous dissipation heating |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 20, 2014, 17:04 |
compressibleInterFoam incl. viscous dissipation heating
|
#1 |
Member
Join Date: Oct 2011
Posts: 36
Rep Power: 15 |
Hello Foamers!
I am working on a modification of compressibleInterFoam, more specifically, I am trying to implement the term for viscous dissipation into TEqn.H in order to take viscous dissipation heating of highly viscous fluids (i.e. oil) into account. I managed to extend the source code of the TEqn.H file according to this thread: http://www.cfd-online.com/Forums/ope...n-heating.html Code:
volScalarField muEff(turbulence->muEff()); volTensorField gradU = fvc::grad(U); volTensorField tau = muEff * (gradU + gradU.T()); fvScalarMatrix TEqn ( fvm::ddt(rho, T) + fvm::div(rhoPhi, T) - fvm::laplacian(twoPhaseProperties.alphaEff(turbulence->mut()), T) + ( fvc::div(fvc::absolute(phi, U), p) - ( tau && gradU ) // viscous dissipation heating of fluid + fvc::ddt(rho, K) + fvc::div(rhoPhi, K) ) *( alpha1/twoPhaseProperties.thermo1().Cv() + alpha2/twoPhaseProperties.thermo2().Cv() ) ); The results so far: T_aw = 305.4 K | standard compressibleInterFoam T_aw = 328.7 K | modified compressibleInterFoam Somehow, it seems to be working, however, it's strange that T_aw of the standard solver is almost 3 K higher than T_jet. Theoretically, it should be the same, right? The wall and outlet patches all have zeroGradient BCs. Another thing which makes me second-guessing my above mentioned implementation of the viscous terms, is a CFX simulation of the same problem. With viscous dissipation heating, it yields a adiabatic wall temperature of T_aw = 305.9 K which is significantly lower than the result of the modified solver. My question is quite simple: Did I miss something during the implementation of the viscous term? I tend to think that my definition of muEff is not completely right. AFAIK, it's muEff = mu + mut, which should hold since I'm using the kOmegaSST model. But I think, I made a mistake regarding the multiphase character of the case. If anyone has experience with this, your help will be greatly appreciated |
|
June 5, 2014, 13:07 |
|
#2 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
Did you get any good result ? Because i need to do the same. Did you take a look at this: http://www.cfd-online.com/Forums/ope...tml#post428926 By the way, you use muEff from turbulence->muEff(), but this is multiphase: this should be something like mixture.muEff instead ? regards, olivier |
|
June 5, 2014, 13:42 |
|
#3 |
Member
Join Date: Oct 2011
Posts: 36
Rep Power: 15 |
Salut Olivier,
I'm not able to access my final version of the modified solver or my data, however, the results were pretty good compared to the CFX solution I used as reference. Maybe, with a bit of fine tuning, they would be extremely good Let get back to you as soon as I can access my stuff again (I am moving at the moment ) Regards, Victor |
|
June 20, 2014, 06:35 |
|
#4 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
Hello Victor,
Did you find your final version of your modified solver ? regards, olivier |
|
June 20, 2014, 06:56 |
|
#5 |
Member
Join Date: Oct 2011
Posts: 36
Rep Power: 15 |
Hello Olivier,
sorry for the delay, setting up everything took a bit longer than expected In fact, I used the code from my first post and did a re-run of the exact case. The only thing I did was implementing a ramp for my mass flow rate. The modified solver now yields a T_aw = 306.7K, compared to T_aw = 305.9K from the CFX run. For the time being, it's sufficiently exact, but your point regarding the muEff is completely valid. I'm gonna check up on that, when I find the time Best regards, Victor |
|
June 10, 2018, 07:06 |
|
#6 | |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Quote:
Are you sure that viscous dissipation is calculated by: Code:
( tau && gradU ) Code:
0.5 * ( tau && gradU+gradU.T() ) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calculating the viscous stress tensor tau for viscous dissipation heating | dgadensg | OpenFOAM Programming & Development | 5 | January 17, 2023 16:20 |
How to compute the viscous dissipation term | yhy20081016 | Main CFD Forum | 2 | December 17, 2013 23:26 |
viscous dissipation modelling | mahjoob | FLUENT | 0 | January 31, 2007 19:52 |
temperature rise due to viscous dissipation | Marek | Main CFD Forum | 6 | December 30, 2004 17:24 |
VISCOUS heat dissipation | Joseph | CFX | 0 | October 1, 2004 09:52 |