CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   user subroutines (https://www.cfd-online.com/Forums/siemens/54036-user-subroutines.html)

vladimir September 15, 2004 07:21

user subroutines
 
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

steve September 15, 2004 12:06

Re: user subroutines
 
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.

vladimir September 16, 2004 03:09

Re: user subroutines
 
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??

steve September 16, 2004 17:18

Re: user subroutines
 
call support, they can send you an example coding for the velocity gradients so that you can acess it from any routine

vladimir September 17, 2004 02:57

Re: user subroutines
 
It seems to be the only way. Thank you.

Sheila September 18, 2004 19:47

Re: user subroutines
 
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.

vladimir September 20, 2004 13:40

Re: user subroutines
 
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

Ethan October 12, 2004 13:59

Re: user subroutines
 
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


All times are GMT -4. The time now is 04:00.