CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

Help!trasient inlet user subroutine

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2005, 09:25
Default Help!trasient inlet user subroutine
  #1
chun
Guest
 
Posts: n/a
Dear sirs,

I want to compute a problem with transient inlet, but I do not know how to solve it in subroutine. The boundary condition equation is descirbed as follow:

U=cosh(Y)*cos(X-TIME)

V=sinh(Y)*sin(X-TIME) here, Y=0--3,X=0--8 How can I compile it in inlet subroutine ?And how to I define the run time in user subrotine? Can anybody help me in detail?Thank you in advance.
  Reply With Quote

Old   January 10, 2005, 06:04
Default Re: Help!trasient inlet user subroutine
  #2
yacine
Guest
 
Posts: n/a
One suggestion for computing the time is to compute it in the soubroutine as: ITER*timestep ITER: is the iteration number provided by STAR timestep: the one you are using

in the soubroutine you have the coordinates of the cells at the boundaries so you can use those for the function you planning to use

To find out the name of the variables used in STAR check the file nom.inc and usrdat.inc

good luck
  Reply With Quote

Old   January 11, 2005, 03:34
Default Re: Help!trasient inlet user subroutine
  #3
matej
Guest
 
Posts: n/a
well,

in user routine bcdefi.f specify these equations, as you put it in your question here.

the star will understand U,V,W as velocities, UCL,VCL,WCL are velocities in given local coord. system. TIME is time in the simulation, so there is the way how to input time in your simulation through the TIME variable. In star GUI specify, that the inlet is given by "user define" run star, it will compile it and run the case....

matej
  Reply With Quote

Old   January 11, 2005, 20:19
Default Re: Help!trasient inlet user subroutine
  #4
chun
Guest
 
Posts: n/a
Dear matej,

Thank you for your kindness.Yet I still have a question here:How can I define Y from 0--3 and X from 0--8,here 3 is not YMax?And the water surface is varying with time(a kind of sine wave),how can I describe it in star-cd ?Thank you !
  Reply With Quote

Old   January 12, 2005, 10:40
Default Re: Help!trasient inlet user subroutine
  #5
chun
Guest
 
Posts: n/a
Dear matej, In star-cd, can I let U(i,j,k) to be the velocity at everywhere?And let X(i) represent X values of every cell? Thanks
  Reply With Quote

Old   January 12, 2005, 14:00
Default Re: Help!trasient inlet user subroutine
  #6
Jörn Beilke
Guest
 
Posts: n/a
if X.ge.0 and X.le.8 and Y .....

U=cosh(Y)*cos(X-TIME)

V=sinh(Y)*sin(X-TIME)

ENIF

if you write this with the correct syntax it should work.
  Reply With Quote

Old   January 13, 2005, 21:13
Default Re: Help!trasient inlet user subroutine
  #7
chun
Guest
 
Posts: n/a
Dear Jörn Beilke ,

At the boundary,here,X is a constant,the velocity is only varying with Y and TIME,do we should define it as you said ( if X.ge.0 and X.le.8 and Y ..... )? In star-cd ,do X,Y,Z represent array X(i),Y(i),Z(i)?And in my question, the water surface is moving like Sine wave, how can we indicate it? Is the velocity at the boundary is needed enough?
  Reply With Quote

Old   January 14, 2005, 03:30
Default Re: Help!trasient inlet user subroutine
  #8
matej
Guest
 
Posts: n/a
HI,

I'm not sure I do follow what you want to do. In first post you said, that the X and Y (coordinates) are changing Y=0--3,X=0--8. In your last post, you said, that X is constant. bit puzzling, but anyway.

If X is not changing, or is not coordinate which you said is changing from 0--8, you do not need to put if X.ge.0 and X.le.8 in the IF condition.

Yes, you're right - X and Y and Z are coordinates in star routine.

the water stuff: Do I understand correctly you model two-phase flow with water and some gas, and you want to have the water-gas interface going through the inlet, and you want to specify the waves of the surface on the inlet?

matej
  Reply With Quote

Old   January 14, 2005, 09:31
Default Re: Help!trasient inlet user subroutine
  #9
chun
Guest
 
Posts: n/a
Dear matej,

Thank you first!

Yes ,you are right,I am modeling two-phase flow with water and air ( ocean wave motion ),and want to specify the waves of the surface on the inlet. How can I make it? My problem is two-dimension ocean wave of X-Y coodinate.Is the velocity at the boundary is enough,or anything else needed? yours,sincerely
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Subroutine A. Said CFX 9 March 7, 2008 15:49
User Subroutine Garryx Siemens 1 June 25, 2005 00:13
COMET User Subroutine saang Siemens 1 March 11, 2005 14:55
User subroutine Don Baker Siemens 1 September 29, 2002 12:27
user subroutine of inlet boundary raymond Siemens 4 December 6, 2001 05:44


All times are GMT -4. The time now is 15:07.