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

Source Term on Scalar Transport Equation

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By santos
  • 1 Post By santos
  • 2 Post By santos

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 27, 2011, 11:59
Default Source Term on Scalar Transport Equation
  #1
Member
 
alessio.nz's Avatar
 
Alex
Join Date: Apr 2010
Posts: 48
Rep Power: 16
alessio.nz is on a distinguished road
Hi,

I have to add a transport scalar equation on the variable "C" but the problem is how to add the source term.

Using for instance SimpleFoam and modifying the solver I obtain the following equation for C "Ceqn.H":

solve
(
fvm::ddt(C)
+fvm::div(phi, C)
-fvm::laplacian(nu, C)
);

This is without source term and it works after I tested, including all the changes I have to do in the NewSimpleFoam.C and in createFields.H

Suppose that I want to add the sorce term with the following expression ST=C*(1-C), considering that I have to respect the dimensions in the solving, how can I set this ?

thanks in advance

alex
alessio.nz 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
Solve poisson equation just add a source term nandiganavishal OpenFOAM Running, Solving & CFD 18 November 14, 2022 09:12
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Transport Equation for a scalar - Compressible Solver alessio.nz OpenFOAM Programming & Development 5 April 11, 2013 09:04
How to deal with this energy equation source term? H.S.Fang FLUENT 2 December 27, 2001 06:42


All times are GMT -4. The time now is 22:16.