CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Sensor problem with star-CD (https://www.cfd-online.com/Forums/siemens/56680-sensor-problem-star-cd.html)

Yongli Qi June 23, 2008 10:50

Sensor problem with star-CD
 
It is about a post-processing problem after a static star simulation. My task is to interpolate x-, z-component velocity to a uniform grid on y = 0 cutting plane and write out a file including the the interpolated x-, z-component velocity and corresponding x, z coordinate, then compare it to experimental data in MATLAB.

I was told I can use "v", "vgen", and "sensor" to do this, however I cannot get it through:

vset all (total 666623 vsets) csys 1 v 666624 -40 0 50 vset news vrange 666624 666624 vgen 81 1 vset,,,1 0 0 vset news vrange 666624 666704 vgen 50 81 vset,,,0 0 1 vset news vrange 666624 670673 cplo ( After I create 81x50 new vertex and cplot will show a mess of the model itself.)

sensor delete all sensor add vset cset news flui sensor scan cset sensor vmag.txt.vset (error: no vmag command) close vmag.txt

Please help, thanks in advence!

Yongli

Pauli June 30, 2008 11:30

Re: Sensor problem with star-CD
 
Run your v & vgen commands in an empty model file and they appear to work fine. So if you are making a mess of your real model, then the real model probably has vertices in the range you are working. It's a better practice to work relative to the maximum defined vertex.

*set maxv mxv

v maxv -40 0 50

sensor vmag.txt.vset is not a valid command. After the "sensor scan", sensor print will list the values. Or you can use the gpost command to put sensor data into the graph registers. Then you can make line graphs or use sdata to write it into a file.

Yongli Qi June 30, 2008 11:38

Re: Sensor problem with star-CD
 
Pauli,

Thanks very much!

Yongli


All times are GMT -4. The time now is 05:26.