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

Adding a term to energy equation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2019, 10:53
Default need adding a viscous heating term to energy equation
  #1
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
dear all
I want to add a viscous heating term to energy equation as below

AnyBody can help me? Thanks
it is non-newtonian fluid that n is fluid index, m is consis of fluid, cp thermal capacity,k conductivity and ,p is density. All is constant.

Last edited by Hgholami; February 18, 2019 at 09:27.
Hgholami is offline   Reply With Quote

Old   February 19, 2019, 02:30
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
Maybe this pages can give you a hint of how to solve your problem:

adding viscous dissipation to openfoam solver

https://cfd.direct/openfoam/energy-equation/

https://cpp.openfoam.org/v4/rhoCentr...8C_source.html
Hgholami likes this.
mAlletto is offline   Reply With Quote

Old   February 27, 2019, 00:15
Default
  #3
New Member
 
Tanvi
Join Date: Jan 2019
Posts: 3
Rep Power: 7
Yamini K is on a distinguished road
Hey!
Since everything is a constant term, you just have to add these parameters in the createFields.H file and compile it. Add the value of each file in constant folder and run the simulation.
Yamini K is offline   Reply With Quote

Old   February 27, 2019, 23:48
Default
  #4
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear Yamini
It is not all constant. I have I2/2 that is variable
Hgholami is offline   Reply With Quote

Old   March 5, 2019, 05:09
Default
  #5
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
Hello,
take a look at https://www.openfoam.com/releases/op...nd-physics.php
You just have to add in fvOptions a "viscousDissipation" dict.


regards,
Olivier
olivierG 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
Adding a Source Term to an User Defined transport equation rma OpenFOAM Programming & Development 1 January 2, 2017 05:55
abnormal temperature near interface when adding energy equation to interFoam houkensjtu OpenFOAM 4 June 26, 2013 13:40
Smagorinsky term in SGS kinetic energy equation Ivan Main CFD Forum 3 January 21, 2013 15:22
add source term in energy equation chaolian OpenFOAM Programming & Development 4 November 8, 2012 22:22
Source term energy equation for reactive flows DaIN Main CFD Forum 0 October 6, 2011 15:11


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