Continuing a Cosimulation with Maxwell
- You must first have saved a Simulation State
(KRN) file at the end of simulation.
Note:
When using Twin Builder-Maxwell Transient Cosimulation, save / load state only works with the largest time at which Maxwell was solved. This is because Maxwell can currently only save one state. While it is possible to start from an earlier saved time, results may be incorrect.
For example, suppose you solve a transient analysis up through one second and save the simulation state to a file named one_second.krn, then load one_second.krn and solve up through two seconds and save the new state to a file named two_seconds.krn. If you then reload one_second.krn and solve, Twin Builder may give incorrect results because the internal state of Maxwell is as it was at two seconds. Resuming from two_seconds.krn will give correct results.
- You must load the saved KRN file at the beginning
of the continuing simulation.
Note:
To specify the saving and loading of Simulation State (KRN) files, see Design Settings.
- You must specify an end time greater than the current end time. To reset the end time, double-click the analysis setup in the project window.
If Maxwell is used non-interactively—that is, when you select the Save project after use check box—it shuts down after each simulation and results data is lost if not saved, so a KRN file cannot be used successfully.
If you select the Save project after use check box, the end time in the setup must be made greater before the KRN file is loaded or Twin Builder simulation will fail.
If KRN file save or load is set and the Maxwell project is not set to be saved the following error message displays:
“The Maxwell TR-TR coupling component is not set to save the Maxwell project, but saving or loading a state file has been specified. Maxwell results valid at the state file's end time will be necessary when using a state file.”
Unlike usage in a non-cosimulation setting, a specific Simulation State (KRN) file cannot be reused once Maxwell has results at a later time. Also, the Enable continue to solve option is ignored for cosimulation with Maxwell.