CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   time dependent inlet subroutine. HELP!!! (http://www.cfd-online.com/Forums/cd-adapco/56858-time-dependent-inlet-subroutine-help.html)

jimmer November 5, 2008 14:23

time dependent inlet subroutine. HELP!!!
 
Hello. I am simulating transient multiphase flow. My inlet is time dependent but I can't use a table. STAR 3.26 doesn't give u this option so I have to use a subroutine. Can anyone tell me what to put into bcdefi.f? The only thing I want is y-velocity (V) increasing at a certain rate with TIME. Your help will be much appreciated

Pauli November 5, 2008 15:08

Re: time dependent inlet subroutine. HELP!!!
 
Then enter: v = A * time where A is your rate constant. The remaining parameters will default to the values set in the NavCenter.


jimmer November 5, 2008 17:57

Re: time dependent inlet subroutine. HELP!!!
 
do I have to determine the global variable TIME in the bcdefi subroutine? I tried what u said but the subroutine didn't work. thanks!

Pauli November 5, 2008 18:57

Re: time dependent inlet subroutine. HELP!!!
 
No.

The bcdefi.f template should have the line:

INCLUDE 'usrdat.inc'

When you run the code, star will put usrdat.inc in your ufile directory. The variable time is provided by a common block within usrdat.inc. Time gives the current simulation time.


jimmer November 10, 2008 09:49

Re: time dependent inlet subroutine. HELP!!!
 
Thanks!!!


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