|
[Sponsors] |
April 26, 2002, 10:02 |
FLUINJ USER SUBROUTINE!
|
#1 |
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. |
|
April 28, 2002, 04:03 |
Re: FLUINJ USER SUBROUTINE!
|
#2 |
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 |
|
April 28, 2002, 11:17 |
Re: FLUINJ USER SUBROUTINE!
|
#3 |
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.
|
|
April 29, 2002, 12:52 |
Re: FLUINJ USER SUBROUTINE!
|
#4 |
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! |
|
May 3, 2002, 06:43 |
Re: FLUINJ USER SUBROUTINE!
|
#5 |
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.
|
|
May 3, 2002, 07:46 |
Re: FLUINJ USER SUBROUTINE!
|
#6 |
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 |
|
May 21, 2002, 13:52 |
Re: FLUINJ USER SUBROUTINE!
|
#7 |
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 |
|
May 22, 2002, 06:29 |
Re: FLUINJ USER SUBROUTINE!
|
#8 |
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. |
|
May 22, 2002, 06:31 |
Re: FLUINJ USER SUBROUTINE!
|
#9 |
Guest
Posts: n/a
|
Stupid bloody formatting buggered my previous message good and proper!
|
|
|
|
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 |