# Need CAVPRO.f example

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 December 6, 2004, 10:31 Need CAVPRO.f example #1 Chris House Guest   Posts: n/a Can someone give me an example of a CAVPRO.f subroutine? I am trying to use the cavitation feature of STAR-CD and need to edit the saturation pressure to be a function rather than a constant. Chris

 December 15, 2004, 08:34 Re: Need CAVPRO.f example #2 4xF Guest   Posts: n/a Just for curiosity: Why do you need to have the saturation pressure as a function? As far as I know, the saturation pressure is a function of temperature and is very little dependent on pressure variations. And the cavitation model implemented in STAR (anybody corrects me if I am wrong here) is isothermal.

 December 15, 2004, 15:11 Re: Need CAVPRO.f example #3 Chris House Guest   Posts: n/a I need the saturation pressure as a function because I am working with air and oil in cavitation. The air/oil system does not behave like a fluid/vapor system. The lower the pressure gets, the more air comes out of the solution. That's why I need to make the saturation pressure as a function. Can you please help me out with a CAVPRO.f subroutine or the variable names for the Rayleigh model that I need to use with the FORTRAN code so it returns them to STAR correctly? Any help you could give me would be appreciated. Chris

 December 16, 2004, 05:42 Re: Need CAVPRO.f example #4 4xF Guest   Posts: n/a The CAVPRO subroutine appears to be called on per cell basis (i.e. called for every cell). Thus, you should calculate for every cell PV and send it back to STAR. For example, you can have a variation of PV with the local pressure as: REAL A,B PARAMETER (A=1.e-5,B=0.01) PV = A*PR**2 - B*PR + 2370 RETURN END Hope this helps. If you still do not understand the logic of STAR subroutines programming, I would highly recommend you to attend a training course (2days) on user subroutines. I've learnt a lot doing so. Take care...

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

All times are GMT -4. The time now is 19:16.

 Contact Us - CFD Online - Top