|
[Sponsors] |
Creation of JPEG/PDF plots at the end of the simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 15, 2018, 05:30 |
Creation of JPEG/PDF plots at the end of the simulation
|
#1 |
New Member
Join Date: May 2018
Posts: 2
Rep Power: 0 |
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 |
|
May 15, 2018, 07:25 |
|
#2 |
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20 |
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); } } } Sebastian Last edited by bluebase; May 15, 2018 at 07:33. Reason: typo |
|
|
|
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 |