-
Notifications
You must be signed in to change notification settings - Fork 0
MatlabModifications
jcchin edited this page Jul 16, 2014
·
2 revisions
#Running NPSS within Matlab
The following steps were taken to configure NPSS within Matlab:
- Build a custom output viewer so NPSS outputs matlab matrices directly (avoiding the need for text parsers and greatly improving debug-ability)
- Re-organize the NPSS model to expose variables (that are of interest in Matlab) in their own isolated files. This way Matlab can easily write out these files directly.
- Output/Save all NPSS independent variables at the end of a run, essentially capturing the state of the engine. This will allow the engine to be restarted from any saved point.
- Promote pertinent solver setup variables so that they are accessible and controllable by Matlab. This will allow Matlab or Simulink to run NPSS for a single timestep at a time without losing the state of the engine between steps.