How to create Simscape component out of sub-components?
    8 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Chris McNamara
 il 26 Apr 2018
  
    
    
    
    
    Commentato: LEO LEON
 il 27 Ott 2018
            Hello,
I would like to know how to use Simscape components to build larger components.
For example, the documentation for a T-Junction found here:
Shows that the model is actually 3 Local Resistances being used between in the inlet/outlets. It is as if the T-Junction block is a Mask for the underlying model.
I utilize models like this all the time but it would be more convenient to utilize them in the method being shown here. Is it just simply a Mask on a sub-system?
Any help is appreciated.
Thank you.
0 Commenti
Risposta accettata
  Andrew Schenk
    
 il 2 Mag 2018
        Chris,
Yes, you can create a Simscape component which is just built from other Simscape components, this is called a composite component. Look at this example which creates a single Simscape block with the same behavior as the DC motor subsystem in the model ssc_dcmotor: https://www.mathworks.com/help/physmod/simscape/lang/composite-component-dc-motor.html
Of course you also could create a mask over a Simulink subsystem to get a similar "block".
1 Commento
  LEO LEON
 il 27 Ott 2018
				Dear Andrew, In terms of simulation speed, particularly for large models, what is the most computational efficient method ? Composite components or simulink subsystems ?
Eric
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Composite Components in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


