CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

source term

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2018, 03:30
Default source term
  #1
New Member
 
Join Date: Mar 2014
Posts: 8
Rep Power: 12
yassi271 is on a distinguished road
Hi,
I need to add following term to energy equation as my energy source in openFoam:
Se=-rho*cp*Gamma*Uy
rho=density
cp=specific heat
Gamma=laps rate
Uy=y_component of velocity

also i need t add a source term to momentum and continuity equation like:
Sm=c*f1(y)
c= dimensional constant
f1(y)=a function of y-coordinate



it is straight-forward in FLUENT, but after several day searching , i couldn't find any answer in openfoam
yassi271 is offline   Reply With Quote

Old   January 24, 2018, 13:38
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,654
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
It requires you to do some OF coding yourself. Two ways that I know of:

Modify the solver directly and re-compile it. So look in E***.H depending on what form of energy equation you are solving. Then somehow modify UEqn.H to your needs.

The other approach, probably more elegant, is to make an fvOptions dict.

However, I'm not sure if adding a mass and momentum source is as straightforward as this seems, how does the pressure correction equation change? One would need to check.
LuckyTran is offline   Reply With Quote

Old   January 24, 2018, 15:32
Default
  #3
New Member
 
Join Date: Mar 2014
Posts: 8
Rep Power: 12
yassi271 is on a distinguished road
thanks luckytran,
In atmospheric boundary layer, in order to resolve gravity waves i should add those source terms in upper boundary layer. In fluent they worked very well.
yassi271 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 3 September 7, 2022 04:09
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 18:25
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


All times are GMT -4. The time now is 09:10.