CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Species Source in COMET (https://www.cfd-online.com/Forums/siemens/54107-species-source-comet.html)

Derek Coon October 20, 2004 20:13

Species Source in COMET
 
I would like to make a species source at a Wall boundary in COMET. I am trying to use spesou.f, but getting nowhere. Can someone write a brief example where the faces of region 1 generate 0.001 kg/sec of species 1 please? Thanks in advance.

4xF October 22, 2004 09:10

Re: Species Source in COMET
 
EITHER you use spesou.f and in that case you have to set the source term in the cell next to the wall, since spesou.f is called for the fluid domain (in which case you need to switch on the flag -- see the SPECIE command -- to be able to use this subroutine)

OR you use the subroutine userbc.f (in which case you need to set the user subroutine flag on -- see the BDEF command in Cometpp) to set boundary values

Derek Coon October 22, 2004 11:35

Re: Species Source in COMET
 
Thank you for your help. I figureed out last night that spesou.f would only specify for cells. Do I use the LK(K) variable to figure out the cell indices?

I would prefer using the wall boundaries themselves as the source, how do I do this using userbc.f? (Which variable?)

Thanks again.

4xF October 24, 2004 07:05

Re: Species Source in COMET
 
I think you meant LB(K) for getting the cell next to the wall, where K is the boundary index. For imposing the value at the wall within userbc.f, give the value into cb(ibofs(is)+K) where is is the species index (for the rest, look at the file ListOfVariables in the userprog directory).


All times are GMT -4. The time now is 06:59.