|
[Sponsors] |
January 24, 2018, 03:30 |
source term
|
#1 |
New Member
Join Date: Mar 2014
Posts: 8
Rep Power: 12 |
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 |
|
January 24, 2018, 13:38 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,654
Rep Power: 65 |
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. |
|
January 24, 2018, 15:32 |
|
#3 |
New Member
Join Date: Mar 2014
Posts: 8
Rep Power: 12 |
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |