CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens

A problem about the sensor points

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

LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2003, 04:53
Default A problem about the sensor points
Posts: n/a
I created some sensor points at some points of the solution domain of a transient model.But when I used a macro in order to get the transient results of those sensor points and put them into the registers,I found I couldn't get the results of every itration step,ie, the results of the sensor points can only be stored the last iteration step,it can't keep the transient data.And it always come out an error message:" there are no enough register to store data",however there is only the first position of every register to store the data,the other positions are blank but can't store data. Because I had many data,it is impossible for me to get the results in many times. So how can I solve this problem? Please help me out this pitfall! Whether are there some other ways to reach the goal to get some results of the solution domain. Thank you very much for your help! The following is the macro: *set N 5 *set it N N *set NTSTEP 5 v,1,,, v,2,,, v,3,,, vset news vran 1 3 1 sens,add,vset trload press1000.pstt,nomvgr store iter it *getv all vmag cset news gran sens scan cset gvalue,2,1,sensor,both,0 *define noxec store iter it *getv all vmag cset news gran,,, sens scan cset gvalue,next,,sensor,both,0 *end *loop 1 NTSTEP 1
  Reply With Quote

Old   October 30, 2003, 12:37
Default Re: A problem about the sensor points
Posts: n/a
I have done this before by writing the sensors to a file at each time step, then merging all the files. Then use another program, such as EXCEL, to plot the data.
  Reply With Quote

Old   October 31, 2003, 04:26
Default Re: A problem about the sensor points
Posts: n/a
I would recommend using the "Monitor Engineering Data" functionality. This saves cell or boundary data in .ecd and .erd files. The results from which can then be plotted in prostar using the "edgr" command.

The other way to do this is through the user subroutine "posdat". See the example coding for how.
  Reply With Quote

Old   October 31, 2003, 13:32
Default Extracting sensor data from .pstt file
Posts: n/a
!Extract sensor data from .pstt file !This example macro assumes 8 sensors exist

! Clear graph registers greset $y !Allocate memory memo mxstor 2e6 !Allocate graph registers numreg 10

! Load sensor numbers in register 1 gload 1 sens all ! Initialize graph register row pointer *set RROW 1 1 !Load post transient file trload,CaseName.pstt,nomvgr$cont *set tval 5,5 *def exec stor iter tval !Load post data into sensors getc none pstat abso sens scan all !Load sensor data into graph register 2 gval 2 1 sens pst4 !Move sensor data into graph registers 3 to 10 *get val1 graph 2 1 *get val2 graph 2 2 *get val3 graph 2 3 *get val4 graph 2 4 *get val5 graph 2 5 *get val6 graph 2 6 *get val7 graph 2 7 *get val8 graph 2 8 gfil 3 val1,,,1,RROW gfil 4 val2,,,1,RROW gfil 5 val3,,,1,RROW gfil 6 val4,,,1,RROW gfil 7 val5,,,1,RROW gfil 8 val6,,,1,RROW gfil 9 val7,,,1,RROW gfil 10 val8,,,1,RROW *end *loop 1 100 1

! store graph data to disk sdata,CaseName.grf,8,3,1,coded close CaseName.grf
  Reply With Quote


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
Sensor problem with star-CD Yongli Qi Siemens 2 June 30, 2008 11:38
How to write a file for SENSOR points Yongli Siemens 0 June 24, 2008 00:03
adding a shell for sensor points Kian Siemens 3 August 22, 2007 11:06
Sensor- problem W.A. Siemens 4 June 1, 2006 10:53
Sensor points Aline Siemens 2 August 16, 2004 09:52

All times are GMT -4. The time now is 18:42.