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

user subroutines

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2004, 07:21
Default user subroutines
  #1
vladimir
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
  Reply With Quote

Old   September 15, 2004, 12:06
Default Re: user subroutines
  #2
steve
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.
  Reply With Quote

Old   September 16, 2004, 03:09
Default Re: user subroutines
  #3
vladimir
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??
  Reply With Quote

Old   September 16, 2004, 17:18
Default Re: user subroutines
  #4
steve
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
  Reply With Quote

Old   September 17, 2004, 02:57
Default Re: user subroutines
  #5
vladimir
Guest
 
Posts: n/a
It seems to be the only way. Thank you.
  Reply With Quote

Old   September 18, 2004, 19:47
Default Re: user subroutines
  #6
Sheila
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.
  Reply With Quote

Old   September 20, 2004, 13:40
Default Re: user subroutines
  #7
vladimir
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
  Reply With Quote

Old   October 12, 2004, 13:59
Default Re: user subroutines
  #8
Ethan
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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 subroutines and STAR-HPC v3.2 Lars Ola Liavåg Siemens 0 August 17, 2004 01:56
User subroutines Meiring Siemens 5 January 17, 2003 00:14
User subroutines Mir Siemens 10 May 4, 2002 16:16
user subroutines in Star-CD Zeng Siemens 5 March 21, 2002 03:43
user subroutines in CFX Zeng CFX 3 March 19, 2002 19:35


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