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

Adding a momentum source term

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By henry
  • 1 Post By henry

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 19, 2005, 12:43
Default Hi, I'm trying to model air f
  #1
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17
segersson is on a distinguished road
Hi,
I'm trying to model air flow through vegetation and need to add a negative source term to the momentum equation in simpleFoam. I would appreciate some advice to get this right (I'm quite new to OpenFOAM...).

For the different directions the source term is:
Sx = -0.5*rho*Cd*abs(u)*u
Sy = -0.5*rho*Cd*abs(v)*v
Sz = ...
,where Cd is a constant.

My questions are:
1. After I have created a volScalarField for Cd, how can I express the term in OpenFOAM in a nice way?
( S = -0.5*rho*Cd*U&U gives me the wrong sign I guess...)

3. Is it correct to insert the source term in simpleFoam.C as:

solve(UEqn() == S -fvc::grad(p));

Do I have to include the source term anywhere else in the SIMPLE algorithm?

3. If I want the term to be explicit, are there any advantage in using the SuSp(..,..) function?

Regards
David
segersson is offline   Reply With Quote

 


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
Adding source term to u eq roberthino OpenFOAM Running, Solving & CFD 26 June 3, 2022 07:27
Adding a volumetric source term in femlab BS COMSOL 1 December 28, 2006 20:26
Question on adding source to momentum CFDtoy Main CFD Forum 0 May 2, 2006 11:51
Adding a source term to continuity eqn(UDF) Sebeci FLUENT 0 April 20, 2003 03:12
adding source term confusion tedmcc CFX 4 September 27, 2001 05:05


All times are GMT -4. The time now is 05:20.