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

How to pick up the value of a monitor at a specified iteration?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2010, 10:31
Default How to pick up the value of a monitor at a specified iteration?
  #1
New Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 16
archeo is on a distinguished road
Hi. I would like during a calculation go back to a monitor value at a specified iteration through a field function. Is it possible?

Something like

$troubleMonitor[iteration_number]
archeo is offline   Reply With Quote

Old   August 19, 2010, 01:16
Default i couldnt get u
  #2
Member
 
karthickeyan
Join Date: Feb 2010
Location: coimbatore
Posts: 36
Rep Power: 16
karthickeyan is on a distinguished road
Send a message via Skype™ to karthickeyan
hi friend


what are the values u want temp ,velocity ,pressure


tell me clear
karthickeyan is offline   Reply With Quote

Old   August 19, 2010, 03:17
Default
  #3
New Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 16
archeo is on a distinguished road
It is a user-defined function monitored over the iterations
archeo is offline   Reply With Quote

Old   August 20, 2010, 04:02
Default
  #4
New Member
 
sven
Join Date: Jul 2010
Location: Germany
Posts: 7
Rep Power: 15
svenne is on a distinguished road
You can access the values through a Java Macro. I added some sample code accessing a monitor named "monitor"
Code:
Simulation sim = getActiveSimulation();
ReportMonitor reportMonitor = ((ReportMonitor) sim.getMonitorManager().getMonitor("Monitor"));
MonitorData monDat = reportMonitor.getAllSamples();
sim.println("X-Values");
 
//monDat.getXValues() returns double[]
for(double d :monDat.getXValues()){
     //print Iterations
     sim.println(d);
}
sim.println("Y-Values");
for(double d :monDat.getYValues()){
      //print monitored values
      sim.println(d);
}
How to access the value of a specified Iteration is plain Java
svenne is offline   Reply With Quote

Old   August 20, 2010, 07:53
Default
  #5
New Member
 
Kute Lyly
Join Date: Aug 2010
Posts: 1
Rep Power: 0
babyteen9x is on a distinguished road
Quote:
Originally Posted by svenne View Post
You can access the values through a Java Macro. I added some sample code accessing a monitor named "monitor"
Code:
Simulation sim = getActiveSimulation();
ReportMonitor reportMonitor = ((ReportMonitor) sim.getMonitorManager().getMonitor("Monitor"));
MonitorData monDat = reportMonitor.getAllSamples();
sim.println("X-Values");
 
//monDat.getXValues() returns double[]
for(double d :monDat.getXValues()){
     //print Iterations
     sim.println(d);
}
sim.println("Y-Values");
for(double d :monDat.getYValues()){
      //print monitored values
      sim.println(d);
}
How to access the value of a specified Iteration is plain Java
thank you very much






----------------------------------
tin tuc
Tin tuc trong ngay
Tin nhanh
Tin hot
Tin hay
Tin bong da
babyteen9x is offline   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
how to increase "Newton Pressure Iteration Limit" kus CFX 9 April 21, 2013 01:54
non stoppage of iteration alastormoody11 CFX 0 July 15, 2010 04:33
Parallel runs slower with MTU=9000 than MTU=1500 Javier Larrondo FLUENT 0 October 28, 2007 22:30
Creating, loop or iteration using expression edito Jan CFX 3 July 28, 2003 11:01
Heat exchanger problem chiseung FLUENT 16 October 20, 2001 04:36


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