|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Oct 2024
Posts: 8
Rep Power: 2 ![]() |
I am working with a two-phase case, wherein each phase has only one species. Using DEFINE_SOURCE, I can remove mass from one phase. How do I add mass to the other phase?
Here is a simplified UDF to remove mass from one phase: #include "udf.h" #include "math.h" /* Define the source term function */ DEFINE_SOURCE(species_add_lit3, c, t, dS, eqn) { real source; source = 1; dS[eqn] = 0; return source; } In my actual UDF, the source is not constant but a function. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Chris
Join Date: Mar 2021
Posts: 27
Rep Power: 6 ![]() |
Mass must be conserved. Whatever you take from one phase (negative source) becomes positive source to other phase...
|
|
![]() |
![]() |
![]() |
Tags |
udf |
Thread Tools | Search this Thread |
Display Modes | |
|
|