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

Creation of JPEG/PDF plots at the end of the simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2018, 05:30
Default Creation of JPEG/PDF plots at the end of the simulation
  #1
New Member
 
Join Date: May 2018
Posts: 2
Rep Power: 0
Dumbledoge is on a distinguished road
Hello everyone,

I have a question concerning the post-processing part of Star-CCM+.
Instead of manually creating a hardcopy or export of data,
I would like to have plots of specific scenes and residuals at the end of the simulation.

Now there is an option to create those views at specific update events, but I can't find the option to create these in Tools (licensing problems?).

Of course there is the option to create plots at specific iteration intervals, but I still can not believe that there isn't some option to create all required data at the end of the simulation (or more specifically: when the stopping criteria is met).

Is there some option to tie the hardcopy export to the end of the simulation event?

Thanks in advance !

Kind Regards,
RM
Dumbledoge is offline   Reply With Quote

Old   May 15, 2018, 07:25
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
Hi RM,

i assume your question refers to an interactive solution? In that case i don't know a solution.

However, a short macro can solve this task easily. It can be find and in the steve portal.

If you just need to "run" and export all plots you would end up with such a macro:
Code:
import star.common.*; 
import star.vis.*;   

public class runAndSavePlotScences extends StarMacro {       
  public void execute() {           
    Simulation sim = getActiveSimulation();

    // run until stop crits are met
    sim.getSimulationIterator().run();
                
    for (Scene scn : sim.getSceneManager().getScenes()) {
      scn.open(true);
      scn.printAndWait(resolvePath(scn.getPresentationName() + ".jpg"), 1, 1920, 1080);
    }
        
    for (StarPlot plt : sim.getPlotManager().getObjects()) {
      plt.encode(resolvePath(plt.getPresentationName() + ".jpg"), "jpg", 1920, 1080);
    }
  }
}
Best regards,
Sebastian

Last edited by bluebase; May 15, 2018 at 07:33. Reason: typo
bluebase 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 08:16


All times are GMT -4. The time now is 19:01.