|
[Sponsors] |
September 15, 2004, 08:21 |
user subroutines
|
#1 |
Guest
Posts: n/a
|
Hi all,
I have a simple question. How to make velocity gradients available for user programming? There is something, in the 'nom.inc' file, like that the user must do it using prostar but nothing else. So I am wondering what I am suppose to do in prostar? Regards |
|
September 15, 2004, 13:06 |
Re: user subroutines
|
#2 |
Guest
Posts: n/a
|
prostar has an "operate,gradient" command which will compute them for you. They are placed in the usual post data registers where you can work them like any other post data or write them to a file and read them into another program.
|
|
September 16, 2004, 04:09 |
Re: user subroutines
|
#3 |
Guest
Posts: n/a
|
You maybe misunderstood me. I know how to do it in prostar, but it would be a bit inconvenient after each iteration to run prostar, then get the gradients, save them to a file, read it from a subroutine, do my job with it repeat it all over again and again don't you think?
I don't want to do it as a masochist. I found out the gradients can be accessed in vistur.f subroutine but not in sorsca.f. Any ideas?? |
|
September 16, 2004, 18:18 |
Re: user subroutines
|
#4 |
Guest
Posts: n/a
|
call support, they can send you an example coding for the velocity gradients so that you can acess it from any routine
|
|
September 17, 2004, 03:57 |
Re: user subroutines
|
#5 |
Guest
Posts: n/a
|
It seems to be the only way. Thank you.
|
|
September 18, 2004, 20:47 |
Re: user subroutines
|
#6 |
Guest
Posts: n/a
|
CALL VELGRD(UG,GU,S,CX,SB,NFONE,KEY,URO,URSI,VISTG,DENG ,TEG,VISLAM,MON,ISTYP)
Where UG is velocity, GU is gradient. Dont forget to dimension the variables. These should be in one of the files, cant remember which, probqably nom.inc. |
|
September 20, 2004, 14:40 |
Re: user subroutines
|
#7 |
Guest
Posts: n/a
|
Thank you Sheila but I asked support in the meantime and got an answer. It can be done via a constant #11 by assigning 1 as its value within prostar.
regards |
|
October 12, 2004, 14:59 |
Re: user subroutines
|
#8 |
Guest
Posts: n/a
|
Hi Valdimir, I am also interested in getting the velocity gradient during the computation. Can you elaborate what you have done ? Thank You very much.
-Ethan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
User subroutines and STAR-HPC v3.2 | Lars Ola Liavåg | Siemens | 0 | August 17, 2004 02:56 |
User subroutines | Meiring | Siemens | 5 | January 17, 2003 01:14 |
User subroutines | Mir | Siemens | 10 | May 4, 2002 17:16 |
user subroutines in Star-CD | Zeng | Siemens | 5 | March 21, 2002 04:43 |
user subroutines in CFX | Zeng | CFX | 3 | March 19, 2002 20:35 |