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

Scalar gradient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2003, 17:42
Default Scalar gradient
  #1
Alexander
Guest
 
Posts: n/a
I need to calculate during STAR run not only scalar but its' derivatives also. Is there any technique in STAR how to do it? Thanks.
  Reply With Quote

Old   February 15, 2003, 18:53
Default Re: Scalar gradient
  #2
steve
Guest
 
Posts: n/a
Yes - look at the OPERATE command. You can load any scalar quantity and then compute gradients
  Reply With Quote

Old   February 16, 2003, 06:50
Default Re: Scalar gradient
  #3
Joern Beilke
Guest
 
Posts: n/a
There is something available in STAR but you have to ask the support how to use it.

You can also use the OPERATE command in Prostar. So you can call prostar during a star run, calculate what you want and write it to a file (print cset). Then you can read that file during the processing of the user subroutine.
  Reply With Quote

Old   February 16, 2003, 16:47
Default Re: Scalar gradient
  #4
Alexander
Guest
 
Posts: n/a
Thank you very much for the advices. The main ploblem is to calculate the gradient of the scalar on every time step during transient STAR run. I have asked for the support but there is no reply yet. May be I can run STAR and Prostar simultaneously and call for the command OPERATE from one of the users' subroutines in STAR (to obtain gradient automatically not manually)?
  Reply With Quote

Old   February 16, 2003, 17:46
Default Re: Scalar gradient
  #5
Joern Beilke
Guest
 
Posts: n/a
Yes you can call external programs like prostar from subroutines

CALL SYSTEM('ls -l')

But is is probably easier to do it in star. So try to get the answer from the support.

  Reply With Quote

Old   February 17, 2003, 00:16
Default Re: Scalar gradient
  #6
cjtune
Guest
 
Posts: n/a
You can try and take a look at nom.inc (automatically placed in your ufile folder if you had ProSTAR write down any standard subroutine there), particularly at the variable SCALAR(IS) and see what you can make of it. I'm guessing that you can use SCALAR(IS) within SORSCA or SORMOM, etc. that runs every time step (but unfortunately, every cell...) and then pass it to POSDAT.F (if you need to do calculations from there) via some COMMON array.

Never tried this before so treat accordingly as just a conjecture...
  Reply With Quote

Old   February 19, 2003, 16:32
Default Re: Scalar gradient
  #7
Alexander
Guest
 
Posts: n/a
Thanks a lot everybody. You really help me.
  Reply With Quote

Reply


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
UDF-How to calculate gradient of a scalar Tony Tonton Fluent UDF and Scheme Programming 19 November 20, 2023 09:13
How to get the gradient of a scalar in CFX 11.0 sm CFX 4 May 29, 2007 04:13
gradient for scalar quantity tseo FLUENT 6 August 6, 2005 00:15
scalar gradient roadracer Siemens 1 October 29, 2003 11:57
how to get a gradient of scalar xqy Phoenics 2 June 7, 2002 22:43


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