|
[Sponsors] |
Beginner: Implementing source terms dependent on other variables |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2018, 12:52 |
Beginner: Implementing source terms dependent on other variables
|
#1 |
New Member
Join Date: Jul 2018
Posts: 3
Rep Power: 8 |
Hello all,
I am attempting to validate a mathematical model for a chemical reaction that will eventually involve some nucleation physics. I am implementing the Convection-Diffusion equation multiple times for a number of species. The mathematical model involves a source term for species A being proportional (equal to for now) to the concentrations of species B and C. I have implemented this as follows: in "AEqn.H": Code:
solve ( fvm::ddt(A) +fvm::div(phi,A) ==fvm::laplacian(D_A,A) +(C*B) ); Thanks! Last edited by wvn; July 12, 2018 at 17:22. |
|
July 16, 2018, 09:59 |
More information
|
#2 | |
New Member
Max
Join Date: Sep 2016
Location: Delft
Posts: 22
Rep Power: 10 |
Quote:
|
||
July 17, 2018, 11:10 |
|
#3 |
New Member
Join Date: Jul 2018
Posts: 3
Rep Power: 8 |
Fortunately, this issue has been fixed. Thanks!
|
|
Tags |
beginner, solver, source term |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 18:13 |
Dependent variables for linearized source terms | ASimonsen | Fluent UDF and Scheme Programming | 0 | April 5, 2017 02:20 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 01:22 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 12:41 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |