|
[Sponsors] |
May 19, 2005, 12:43 |
Hi,
I'm trying to model air f
|
#1 |
Member
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17 |
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 |
|
|
|
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 |