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 |
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.
|
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?? |
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
|
Re: user subroutines
It seems to be the only way. Thank you.
|
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. |
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 |
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. |