|
[Sponsors] |
January 27, 2011, 11:59 |
Source Term on Scalar Transport Equation
|
#1 |
Member
Alex
Join Date: Apr 2010
Posts: 48
Rep Power: 16 |
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 |
|
|
|
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 |