CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Explicit Source Term (https://www.cfd-online.com/Forums/openfoam/69459-explicit-source-term.html)

ternik October 23, 2009 10:22

Explicit Source Term
 
hi,

I would like to model fluid flow with additional EXPLICIT SOURCE TERM appearing in a momentum equation - here I would like to be able to define this source term as a function of time ("switch it on and of") as well as geometry (small region inside the fluid domain).Can this can be done by timeActivatedExplicitSource.C? If so, can anyone explain me "how and what"!

I am still (satisfied) with OF-1.5!

Thanks,
Primoz.

skinduptruk October 25, 2009 20:32

i'm only new but i think...

groovyBC has stuff being turned on and off with time. i saw a wiki page.

gschaider October 27, 2009 13:12

Quote:

Originally Posted by skinduptruk (Post 233971)
i'm only new but i think...

groovyBC has stuff being turned on and off with time. i saw a wiki page.

Yeah. But it only does boundary conditions. No source terms.

Bernhard

robingilbert January 13, 2011 15:50

any ideas how to implement time varying source terms??

mirko January 13, 2011 16:05

Quote:

Originally Posted by robingilbert (Post 290329)
any ideas how to implement time varying source terms??

There was a thread started in june/july 2010 by Maddalena about adding a source term to the temperature equation.

She modified the solver by adding a source term. It worked well for a single region, but not for multiple regions. Still, it might be of some help.

Mirko

gschaider January 13, 2011 16:08

Quote:

Originally Posted by robingilbert (Post 290329)
any ideas how to implement time varying source terms??

You'll have to add it to the the relevant transport equation. Just add a field and you're done. The question is how you get the values into the field. For that there are several optinos:
- Programing by hand
- Using the scalarTimeActivatedExplicitSourceList that comes with OF (I guess. Havn't worked with that)
- Swak4Foam has the possibility to have arbitrary source terms based on an expression. For a discussion see http://www.cfd-online.com/Forums/ope...ak4foam-4.html

Bernhard


All times are GMT -4. The time now is 12:47.