|
[Sponsors] |
August 19, 2010, 12:11 |
Volumic source term
|
#1 |
Senior Member
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 15 |
Hello everybody,
I didn't find any topic on this subject so here I am. I would like to create a volume source term in a fluid region. I have a fluid domain, and I need that a part of this fluid generates a scalar source term, which could be temperature or inert species. Is there any function in OpenFoam for this purpose ? I would use reactingFoam after disabling the chemistry. Thank you all. Aurélien |
|
November 29, 2010, 08:24 |
volume sources and sink in openFoam
|
#2 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 14 |
Hello Aurélien,
A good day to you! I am about to face exactly the same problem. I also want to use reactingFoam without chemistry reactions, and apply volume sources and volume sinks. Did you find out how to it? Thank you in advance, Tony |
|
November 29, 2010, 09:51 |
|
#3 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23 |
Aurelien and Tony, sources are discretized by Sp(), Su(), SuSp() operators and in direct manner (fvm::div(phi,T)==b).
Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D. Research Scientist Research Center for Computational Methods (CIMEC) - CONICET/UNL Tel: 54-342-4511594 Int. 7032 Colectora Ruta Nac. 168 / Paraje El Pozo (3000) Santa Fe - Argentina. http://www.cimec.org.ar |
|
November 29, 2010, 10:41 |
|
#4 |
Member
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 14 |
Dear Santiago,
thanks a lot for the input! Could you post a code example of a defined source/sink respectively? I need to implement a volume source. If you've ever done something like this, I would appreciate any advice... Best Regards, Tony |
|
November 30, 2010, 12:21 |
|
#5 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23 |
Hi, looking at epsilon equation definition from standard k-epsilon model you have an example:
Code:
00223 // Dissipation equation 00224 tmp<fvScalarMatrix> epsEqn 00225 ( 00226 fvm::ddt(epsilon_) 00227 + fvm::div(phi_, epsilon_) 00228 - fvm::Sp(fvc::div(phi_), epsilon_) 00229 - fvm::laplacian(DepsilonEff(), epsilon_) 00230 == 00231 C1_*G*epsilon_/k_ 00232 - fvm::Sp(C2_*epsilon_/k_, epsilon_) 00233 ); Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D. Research Scientist Research Center for Computational Methods (CIMEC) - CONICET/UNL Tel: 54-342-4511594 Int. 7032 Colectora Ruta Nac. 168 / Paraje El Pozo (3000) Santa Fe - Argentina. http://www.cimec.org.ar |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
momentum source term | zwdi | FLUENT | 14 | June 27, 2017 15:40 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 01:24 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 12:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 03:43 |