Documentation Home Page ◇ ARTEMiS Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
OpReplaceSpsBlocks
Description
This function helps replacing Simscape Electrical Specialized Power Systems (SPS) electrical blocks by ARTEMiS electrical blocks or replacing ARTEMiS electrical blocks by Simscape Electrical Specialized Power Systems (SPS) electrical blocks. This function is useful because ARTEMiS provides advanced blocks for real-time simulation. These blocks contain an optimized implementation of the SPS mathematical model which makes them better suited for real-time simulation.
This function also provides an optional interface to help the user select the blocks to be replaced. The figure below shows the dialog that appear when the function is called with the default argument.
Note: ARTEMiS currently only supports the Distributed Parameters line block. Other decoupling blocks than the Distributed Parameters line will be supported in a future release.
Usage
opReplaceSpsBlocks(modelName, operation, searchDepth);
Inputs and Outputs
Inputs
modelName | Name of the model to modify. |
---|---|
operation | Optional argument that specified the type of operation to perform when replacing the blocks.
The default value is “ReplaceBlocks”. |
searchDepth | Optional integer that constrains the model search to a specific depth. |
Outputs
None
Example
To open a dialog that will help to switch between the real-time ARTEMiS blocks and the non-real-time SPS blocks:
opReplaceSpsBlocks(modelName);
To automatically replace all SPS blocks by their real-time ARTEMiS equivalent:
opReplaceSpsBlocks(modelName, 'ReplaceSpsBlocks');
To automatically replace all ARTEMiS blocks by their non real-time SPS equivalent:
opReplaceSpsBlocks(modelName, 'ReplaceArtemisBlocks').
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter