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

Heat Injection

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2014, 14:26
Question Heat Injection
  #1
New Member
 
Patrick Greene
Join Date: Aug 2014
Location: New Hampshire
Posts: 7
Rep Power: 12
P Greene is on a distinguished road
Hi all,

I would like to model a subsonic turbulent flow of gas that will have a large amount of energy continuously injected into a particular volume using a laser. In particular, I want to observe the steady-state effects that this added heat has on the density (etc.) of the gas, so I can't just use a modified version of scalarTransportFoam.

I feel like there ought to be a fairly strait-forward way of modifying one of the solvers (my initial thought is rhoSimpleFoam) to add heat within a pre-defined region.

Any Ideas?

Thanks,
Pat
P Greene is offline   Reply With Quote

Old   August 5, 2014, 16:16
Default Progress
  #2
New Member
 
Patrick Greene
Join Date: Aug 2014
Location: New Hampshire
Posts: 7
Rep Power: 12
P Greene is on a distinguished road
I've made significant progress in my attempts. I have tried adding a constant value (which I called E) to the right or left hand side of the EEqn, so that I had:

fvScalarMatrix EEqn
(
fvm::div(phi, he)
+ (
he.name() == "e"
? fvc::div(phi, volScalarField("Ekp", 0.5*magSqr(U) + p/rho))
: fvc::div(phi, volScalarField("K", 0.5*magSqr(U)))
)
- fvm::laplacian(turbulence->alphaEff(), he)
==
fvOptions(rho,he)
+ E
);

or the same except with the E coming after the laplacian and before the == sign.

I create the E field from a file with the values defined at all the cell centers to be either 0 or some value. With E either above or below the equal sign, for E = 1e5 and less, there is no difference to the solution.

I have also tried commenting out EEqn.relax(), fvOptions.*(), thermo.correct(), and there has still been no change in the solution. What am I doing wrong?

-- Pat

Edit: The EEqn is from rhoSimpleFoam, and the energy file is correctly loaded with createFields. I've checked in paraview, and the data for E is correct.
P Greene is offline   Reply With Quote

Old   August 6, 2014, 11:34
Default
  #3
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 19
chriss85 will become famous soon enough
Are you sure that your energy values are correct? The unit of the internal energy e is J/m³. It's possible that your power density is higher than 1e5, but that's for you to decide.
chriss85 is offline   Reply With Quote

Old   January 17, 2015, 17:10
Default Solved
  #4
New Member
 
Patrick Greene
Join Date: Aug 2014
Location: New Hampshire
Posts: 7
Rep Power: 12
P Greene is on a distinguished road
You were right! Thanks. My values were just too low. I actually fixed this ages ago and forgot to reply.
P Greene is offline   Reply With Quote

Reply

Tags
heat equation, rhosimplefoam, solver, subsonic flow, turbulent flow


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
Heat flux and Heat transfer coefficient sakil2k3 FLUENT 4 July 5, 2015 16:07
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
Heat Transfer mechanisms tafaugl CFX 1 November 7, 2012 19:46
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 7, 2008 00:17
CFX Heat Transfer RJamison CFX 0 July 24, 2008 13:11


All times are GMT -4. The time now is 06:57.