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

FLUINJ USER SUBROUTINE!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2002, 10:02
Default FLUINJ USER SUBROUTINE!
  #1
Spyridon
Guest
 
Posts: n/a
Hi!

I am investigating the drag on an evaporating sphere (as if it where an evaporating droplet) using the FLUINJ subroutine to simulate the mass injection from the sphere.

My problem is that the user subroutine ,FLUINJ, although it is being read in the analysis, nothing seems to happen. I have tried changing the FLUXI,UI,VI,WI,etc. variables to no avail. Does anyone know if the FLUINJ subroutine has an error and does not work properly? Any suggestions would really be helpful.

Thank you for your assistance.
  Reply With Quote

Old   April 28, 2002, 04:03
Default Re: FLUINJ USER SUBROUTINE!
  #2
Jihae Yang
Guest
 
Posts: n/a
The FLUINJ subroutine has no error and worked well in my case.

cell type of part with mass change = 10

= > IF(ICTID.EQ.10) THEN

FLUXI= XXXX

ENDIF

  Reply With Quote

Old   April 28, 2002, 11:17
Default Re: FLUINJ USER SUBROUTINE!
  #3
Richard
Guest
 
Posts: n/a
As with all user subroutines, there's more to activating and using FLUINJ than just wishing it would work. You need to activate it in PROSTAR, write a meaningful fluinj.f, put it in the ufile directory and compile it into the STAR executable. Usually it is the first or the last of these which you forget to do when you find nothing is happening.
  Reply With Quote

Old   April 29, 2002, 12:52
Default Re: FLUINJ USER SUBROUTINE!
  #4
Spyridon
Guest
 
Posts: n/a
As I mentioned in my message before, the FLUINJ subroutine has been activated via PROSTAR and through the STAR executable!

It seems that I am missing out something else. Any other suggestions would be great!

Thanks!
  Reply With Quote

Old   May 3, 2002, 06:43
Default Re: FLUINJ USER SUBROUTINE!
  #5
raymond
Guest
 
Posts: n/a
Did you see some warnings at the start of STAR? I think that you might set the wrong ICTID in your subroutine.
  Reply With Quote

Old   May 3, 2002, 07:46
Default Re: FLUINJ USER SUBROUTINE!
  #6
john YL
Guest
 
Posts: n/a
The best way to check is:

In prostar STARGUIde, =>Analysis Control => Output Controls => Monitor Numeric Behavior =>

select Print Iteration Residuals and Conservation Checks, then when you run STAR, you can check the .info file and for example, MATERIALWISE MASS BALANCE, if you have fluid injection, you should have non-zero value for term FLINJ
  Reply With Quote

Old   May 21, 2002, 13:52
Default Re: FLUINJ USER SUBROUTINE!
  #7
Vladimir Krejci
Guest
 
Posts: n/a
You can try whether your subroutine is considered in solution by adding some code into the subroutine. That code will print information given in subroutine to display. If the subroutine is correctly linked and used during a solution, the text "my subroutine is being used" and "expression IF passed" will be printed. If these texts will not be printed, the problem might be in the initialisation process at PROSTAR.

For example:

C

if (ip.eq.1) then

write(*,*) "my subroutine is being used"

endif

if(ictid.eq.something) then

if (ip.eq.1) then

write(*,*) "expression IF passed"

endif

your source FLUXI = ...

endif

RETURN

END

C

  Reply With Quote

Old   May 22, 2002, 06:29
Default Re: FLUINJ USER SUBROUTINE!
  #8
Steve Amphlett
Guest
 
Posts: n/a
I normally do this sort of thing by default in my STAR user routines:

LOGICAL INIT DATA INIT /.TRUE./

IF (INIT) THEN WRITE(*,*) 'NAME OF USER ROUTINE' INIT = .FALSE. ENDIF

Otherwise you can never really be sure if your routine ever gets called.
  Reply With Quote

Old   May 22, 2002, 06:31
Default Re: FLUINJ USER SUBROUTINE!
  #9
Steve Amphlett
Guest
 
Posts: n/a
Stupid bloody formatting buggered my previous message good and proper!
  Reply With Quote

Reply


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 16:49
Trying to use the sormom.f user subroutine Edwin Spencer Siemens 1 January 31, 2006 05:25
User Subroutine Garryx Siemens 1 June 25, 2005 01:13
FIDAP User subroutine Seo, Taewon FLUENT 0 May 7, 2003 22:56
User subroutine Don Baker Siemens 1 September 29, 2002 13:27


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