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

Viscous heating in chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2016, 13:12
Default Viscous heating in chtMultiRegionFoam
  #1
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Hi, I just made initial implementation of viscous heating into chtMultiRegionFoam. This is the modified EEqn:

Code:
    volScalarField& he = thermo.he();
    volTensorField gradU = fvc::grad(U);
    // tau = 2*mu*D, D = deformation rate tensor
    volTensorField tau = turb.muEff() * (gradU + gradU.T());

    fvScalarMatrix EEqn
    (
        fvm::ddt(rho, he) + fvm::div(phi, he)
      + fvc::ddt(rho, K) + fvc::div(phi, K)
      + (
            he.name() == "e"
          ? fvc::div
            (
                fvc::absolute(phi/fvc::interpolate(rho), U),
                p,
                "div(phiv,p)"
            )
          : -dpdt
        )
      - fvm::laplacian(turb.alphaEff(), he)
     ==
        rho*(U&g)
      + fvc::div(tau & U) // viscous heating
      + rad.Sh(thermo)
      + fvOptions(rho, he)
    );
Is this the correct way to do it? If not, how could it be improved? For sources I used http://cfd.direct/openfoam/energy-equation/ and the excellent pdf made by Tobias Holtzmann, which you can find here http://www.holzmann-cfd.de/index.php...s-and-openfoam.

I basically tried to implement the other missing mechanical source, which is div(tau & U), and tau = turb.muEff() * (gradU + gradU.T()).

I'm wishing for comments and feedback, you can get the code from here:

https://github.com/zordiack/foam-dev
zordiack is offline   Reply With Quote

Old   February 9, 2018, 04:34
Default
  #2
New Member
 
Nico B.
Join Date: Feb 2017
Posts: 1
Rep Power: 0
nbuchi is on a distinguished road
Hi, Zordiack,

I have adopted your viscous heating code in chtMultiRegionSimpleFoam. In addition, I implemented a temperature-dependent viscosity model.

My investigations deal with journal bearings. So I compared the calculation results with a state-of-the-art bearing program.

Standing now, I am very satisfied.

Thank you very much
nbuchi
nbuchi is offline   Reply With Quote

Old   May 12, 2022, 03:30
Default
  #3
New Member
 
Amit Makhija
Join Date: Apr 2018
Posts: 11
Rep Power: 8
AMitgM95 is on a distinguished road
Hello,

Could you please help in writing the viscous dissipation term in OpenFOAM v9? I tried but was unable to figure out how to write the expression for shear-stress symmetric tensor ((gradU + gradU.T())).
AMitgM95 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


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
compressibleInterFoam incl. viscous dissipation heating vigges OpenFOAM Programming & Development 5 June 10, 2018 07:06
Viscous Heating of polymer in Ansys verdesca2 Structural Mechanics 0 August 21, 2014 11:50
viscous heating and constant wall temperature abir FLUENT 5 May 17, 2013 13:17
Viscous heating Pipin FLUENT 3 July 14, 2008 13:05


All times are GMT -4. The time now is 19:11.