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

Java form and star ccm+

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2008, 13:10
Default Java form and star ccm+
  #1
Itoa
Guest
 
Posts: n/a
hi

I want develop a form using java which can read the messages from the output window. But i don't know how to get the messages from star ccm+ to my text box. Please help me out.

Thanks in advance.
  Reply With Quote

Old   July 2, 2008, 11:15
Default Re: Java form and star ccm+
  #2
steve
Guest
 
Posts: n/a
Hi

I guess that you want to get value of a report from the output window to a java variable. Is that correct?

Perhaps you could try the following

Create the report, here I am using a maximum.

In your macro do something like:

// STAR-CCM+ macro: myMacro.java package macro;

import java.util.*;

import star.common.*; import star.base.report.*;

public class myMacro extends StarMacro {

public void execute() {

Simulation simulation_0 =

getActiveSimulation();

MaxReport maxReport_0 =

((MaxReport) simulation_0.getReportManager().getReport("Maximum 1"));

double xx=maxReport_0.monitoredValue();

simulation_0.println("value "+xx);

} }

Does this help? The API which you can find under the Help is very useful here.

  Reply With Quote

Reply

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
STAR-CCM+ Java class Claudene Siemens 1 July 17, 2008 06:49
Java home how to basilwatson OpenFOAM Installation 1 April 28, 2008 09:37
Is there a way to use the default java and gcc in_flu_ence OpenFOAM Installation 1 March 8, 2007 05:37
Ibm java gcc rrr OpenFOAM Installation 2 December 30, 2005 05:18
java vs c++ zxaar Main CFD Forum 10 December 3, 2004 03:05


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