|
[Sponsors] |
How to define a transient species source term? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 5, 2011, 22:59 |
How to define a transient species source term?
|
#1 |
Member
Join Date: Mar 2011
Posts: 38
Rep Power: 15 |
In my transient analysis, I want to set my species source in a way like this:
turn it on for 1s, then switch it off. I guess there are two ways to do this, first is, to run the simulation to 1s (with a time interval ,say,0.01s) and stop it, change the BC to 0m/s and carry on. Second is, write a udf source macro for my source, but I don't know how to, if you could share with me a good source code, I would be greatly indebted! Also, I have some doubts about setting source term: I set the surfaces as velocity inlet instead of setting the volume as fluid and a source term, because I don't know how to set UDF source terms. I actually tried to do that, and I can set it as source term and set the mass term as, say, 0.1kg/m^3s (choose CONSTANT) and species term as the same number 0.1kg/m^3s. I don't care much about the momentum input this release of substance brings along, so leave it alone. But according to what I found from other discussions, it seems that setting like this doesn't work, and I have to do it through UDF. I don't know if I'm getting this picture right, so you know, please tell me. |
|
March 7, 2011, 01:55 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 100
Rep Power: 17 |
Hi,
A simplistic strategy for writing your macro is to record a journal file in which you manually set the source term and use it as a base for writing your UDF. My suggestion would be to access your physical time and then put the source term inside an if else setting so that it becomes 0 once your physical time exceeds 1s. |
|
March 7, 2011, 20:41 |
|
#3 | |
Member
Join Date: Mar 2011
Posts: 38
Rep Power: 15 |
Quote:
Thanks! |
||
March 7, 2011, 23:58 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 100
Rep Power: 17 |
this is the first link that pops up after a google search for how to record a journal file in FLUENT:http://www.cfd-online.com/Wiki/Fluent_FAQ
Cant you even do a google search I mean common |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Large source term in species equation | MACFD | FLUENT | 4 | January 4, 2011 15:16 |
Reaction Source Term in Steady Species transport equation | cfdvenkatesh | Main CFD Forum | 0 | August 19, 2010 10:28 |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 10:23 |
How can I get Help? Scalar transport_source term | lig | Fluent UDF and Scheme Programming | 0 | May 9, 2010 23:30 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |