CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

laplacianFoam with source term

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 17, 2015, 23:23
Default laplacianFoam with source term
  #1
New Member
 
Join Date: May 2012
Posts: 4
Rep Power: 5
Herwig is on a distinguished road
Hi, I would need a laplacian solver with heat sink/source - which exisiting OpenFOAM solver can be used - rsp. how to implement into the existing Laplacian solver a heat sink/source - thanks!!
Herwig is offline   Reply With Quote

Old   June 18, 2015, 09:03
Default Hi Herwig
  #2
Member
 
Manjunath Reddy
Join Date: Jun 2013
Posts: 37
Rep Power: 4
manju819 is on a distinguished road
You can use laplacianFoam to solve laplacian equation.

fvm::ddt(T) - fvm::laplacian(DT, T) - sourceterm

sourceterm should be defined in createFields.
manju819 is offline   Reply With Quote

Old   June 18, 2015, 14:31
Default
  #3
New Member
 
Join Date: May 2012
Posts: 4
Rep Power: 5
Herwig is on a distinguished road
Many thanks! Only one final question: My source term is temperature dependent - i.e. source term is a function of the solution (temperature).
Herwig is offline   Reply With Quote

Old   June 19, 2015, 00:31
Default
  #4
Member
 
Manjunath Reddy
Join Date: Jun 2013
Posts: 37
Rep Power: 4
manju819 is on a distinguished road
If you want to write source term in implicit form you can use fvm::Sp(phi,T) and for explicit you can use fvc::Sp(phi,T). You can find this in programmers guide page no 33.
manju819 is offline   Reply With Quote

Old   June 19, 2015, 02:02
Default
  #5
New Member
 
Join Date: May 2012
Posts: 4
Rep Power: 5
Herwig is on a distinguished road
Again thanks - unfortunately I'm pretty new to OpenFOAM (but not C++) - therefore hopefully my last request:

The source term is exponentially non-linear, therfore I assume to have to linearize it - what's here the most efficient way to implement this linearization of a non-linear source term in an OpenFOAM solver!
Herwig is offline   Reply With Quote

Old   June 19, 2015, 02:10
Default
  #6
Member
 
Manjunath Reddy
Join Date: Jun 2013
Posts: 37
Rep Power: 4
manju819 is on a distinguished road
Can you post the source term after linearization.
manju819 is offline   Reply With Quote

Old   June 19, 2015, 03:10
Default
  #7
New Member
 
Join Date: May 2012
Posts: 4
Rep Power: 5
Herwig is on a distinguished road
Hi, I think I have found the solution - a similar question was discussed and solved on Jan. 9th 2015 by Sun in forum: OpenFOAM Programming & Development - titled "good-old-source-term-new-transport-equation".

All thanks.


Last edited by Herwig; June 20, 2015 at 01:50.
Herwig is offline   Reply With Quote

Reply

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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 2 September 3, 2014 21:24
Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Installation 27 April 16, 2014 15:14
build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Installation 14 April 23, 2013 13:59
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 35 March 1, 2012 21:41
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 12:06.