Running the Simulation to Convergence
The following steps demonstrate how to alter the macro to run the set of simulations until convergence has been reached.
- Open trainFlowAngles.java file using an appropriate text editor.
-
Locate the line in the macro where you call the
runCase() method from the
SimRunner object.
public void execute() { try { for (/**/) { runner.runCase(sD, 5); } } catch (/**/) { } }
-
Change the number of iterations to
400.
runner.runCase(sD, 400);
- Save and close the file.
- Make sure that the simulation trainMacro.sim is open.
-
Click the
(Play Macro) button in the Macro toolbar and select the trainFlowAngles.java file.
-
If, at any time, the macro must be interrupted click the
(Abort) button next to the status bar.
Residual Plot:


Velocity Magnitude Scene:


Streamlines Scene:

