|
[Sponsors] |
February 14, 2003, 17:42 |
Scalar gradient
|
#1 |
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.
|
|
February 15, 2003, 18:53 |
Re: Scalar gradient
|
#2 |
Guest
Posts: n/a
|
Yes - look at the OPERATE command. You can load any scalar quantity and then compute gradients
|
|
February 16, 2003, 06:50 |
Re: Scalar gradient
|
#3 |
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. |
|
February 16, 2003, 16:47 |
Re: Scalar gradient
|
#4 |
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)?
|
|
February 16, 2003, 17:46 |
Re: Scalar gradient
|
#5 |
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. |
|
February 17, 2003, 00:16 |
Re: Scalar gradient
|
#6 |
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... |
|
February 19, 2003, 16:32 |
Re: Scalar gradient
|
#7 |
Guest
Posts: n/a
|
Thanks a lot everybody. You really help me.
|
|
|
|
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 |