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

Heat source using fvOptions in laplacianFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 17, 2014, 07:09
Default Heat source using fvOptions in laplacianFoam
  #1
New Member
 
Kalli
Join Date: Jul 2014
Posts: 9
Rep Power: 3
osha is on a distinguished road
Hello Foamers,

I am working on a solid conduction problem using laplacianFoam where I wish to add a heat generation term Q [W/m^3] on selected cells (using topoSet) in the mesh. I have modified the laplacianFoam in following way:

Quote:
fvm::ddt(T) - fvm::laplacian(DT, T) - fvOptions(T)
But I need to apply the heat generation term which I intend to keep constant. I am not sure how I achieve that with the above formulation.


After reading on fvOptions, I realized that I could use scalarExplicitSetValue to define a scalar explicit source. But this method will only fix temperature in the selected cellZone whereas I intend to fix the heat generation rate.


I do not intend to define the heat generation region in geometry this is why fvOption is more suitable for my problem. I am looking forward to your insights.

Thank you.
osha is offline   Reply With Quote

Old   July 17, 2014, 09:32
Default searching further ...
  #2
New Member
 
Kalli
Join Date: Jul 2014
Posts: 9
Rep Power: 3
osha is on a distinguished road
As I was digging further I glanced upon semiImplicitSource and tried to use it. I am not sure if my formulation is right as my results are highly non-physical.

Here is what I tried. The heat generation rate Q [W/m^3] can be written as

Quote:
Q=rho*Cp*(T-T_old)
which implies

Quote:
T = T_old + Q/(rho*Cp)
So, I define injectionRateSuSp as

Quote:
T (Q/(rho*Cp) 1<---[for T_old] )
Do you think the above method make sense?

Though, I am not sure as the temperature field gives out unreal numbers. The absolute temperature goes down to 0.

Any insight will be much appreciated.

Thank you.
osha is offline   Reply With Quote

Reply

Tags
conduction, fvoptions, heat generation rate, laplacianfoam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Error bulding swak4Foam sfigato OpenFOAM Installation 18 August 22, 2013 12:41
funkySetFields compilation error tayo OpenFOAM 39 December 3, 2012 06:18
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 01:35.