La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Créer des composants et des bibliothèques personnalisés
Explorez des exemples qui illustrent la création de composants et de bibliothèques personnalisés.
Informations connexes
Sélection d՚exemples
Système de chauffage et climatisation de véhicule
Cet exemple modélise le flux d’air humide au sein d’un système de chauffage et de climatisation d’un véhicule. L'habitacle du véhicule est représenté sous la forme d’un volume d'air humide échangeant de la chaleur avec l'environnement extérieur. L'air humide circule à travers un volet de recirculation, un ventilateur, un évaporateur, un incorporateur et un radiateur avant de retourner dans l’habitacle. Le volet de recirculation sélectionne l'admission du flux provenant de l'habitacle ou de l'environnement extérieur. La porte de l’incorporateur dévie le flux autour du radiateur pour contrôler la température.
Aircraft Environmental Control System
Models an aircraft environmental control system (ECS) that regulates pressure, temperature, humidity, and ozone (O3) to maintain a comfortable and safe cabin environment. Cooling and dehumidification are provided by the air cycle machine (ACM), which operates as an inverse Brayton cycle to remove heat from pressurized hot engine bleed air. Some hot bleed air is mixed directly with the output of the ACM to adjust the temperature. Pressurization is maintained by the outflow valve in the cabin. This model simulates the ECS operating from a hot ground condition to a cold cruise condition and back to a cold ground condition.
Système de pile à combustible à MEP
Cet exemple montre comment modéliser un stack de piles à combustible à membrane échangeuse de protons (MEP) avec un bloc Simscape™ personnalisé. La pile à combustible à MEP génère une puissance électrique en consommant de l’hydrogène et de l’oxygène et en produisant de la vapeur d’eau. Le bloc personnalisé représente l’assemblage membrane-électrode (MEA). Il est connecté à deux réseaux d’air humide distincts : l’un pour le flux de gaz de l’anode et l’autre pour le flux de gaz de la cathode.
Système d'électrolyse à MEP
Cet exemple montre comment modéliser un électrolyseur d’eau à membrane échangeuse de protons (MEP) avec un bloc Simscape™ personnalisé. L’électrolyseur MEP consomme de l’électricité pour décomposer l’eau en hydrogène et en oxygène. Le bloc personnalisé représente l’assemblage membrane-électrode (MEA). Il est connecté à un réseau de fluide thermique et à deux réseaux d’air humide distincts : le réseau de fluide thermique modélise l’alimentation en eau, le réseau d’air humide de l’anode modélise le flux d’oxygène et celui de la cathode modélise le flux d’hydrogène.
Ultracapacitor Energy Storage with Custom Component
Use the Simscape™ example library Capacitors_lib. The model is constructed using components from the example library. The circuit charges an ultracapacitor from a constant 0.05 amp current source, and then delivers a pulse of current to a load. The ultracapacitor enables a much higher current to be delivered than is possible directly from the current source. The library contains capacitor models with different levels of fidelity to allow exploration of the effect of losses and nonlinearity.
Ligne d’émission
Cet exemple présente un modèle de ligne d‘émission à paramètres groupés. Il est constitué à partir d'un composant Simscape™ personnalisé qui définit un seul segment de section en T. Le modèle concatène 50 segments, de 0,1 m de longueur chacun, modélisant ainsi une longueur de câble coaxial de 5 m. Les résultats de la simulation indiquent le délai d’émission.
Système de refroidissement moteur
Cet exemple montre comment modéliser un système de refroidissement moteur de base au moyen de blocs Thermal Liquid personnalisés. Une pompe à cylindrée fixe achemine l’eau à travers le circuit de refroidissement. La chaleur provenant du moteur est absorbée par l’eau de refroidissement et dissipée à travers le radiateur. La température du système est régulée par le thermostat qui détourne le flux vers le radiateur uniquement lorsque la température est supérieure à un seuil.
Cycle de Brayton (turbine à gaz) avec des composants personnels
Cet exemple modélise un groupe auxiliaire de puissance de turbine à gaz basé sur le cycle de Brayton. Les blocs Compressor et Turbine sont des composants personnalisés gazeux de la Foundation Gaz Library Simscape™. La puissance acheminée jusqu’au système est représentée par l'injection de chaleur dans la chambre de combustion. La chimie de la combustion proprement dite n'est pas modélisée. Un seul arbre relie le compresseur à la turbine, de sorte que la puissance émanant de la turbine entraîne le compresseur. Le groupe auxiliaire de puissance est une turbine qui détend encore le flux d'échappement afin de produire une puissance de sortie.
Cycle de Rankine (turbine à vapeur)
Cet exemple modélise un système de turbine à vapeur basé sur le cycle de Rankine. Le cycle comprend la surchauffe et le réchauffage qui éviteront la condensation au niveau respectivement de la turbine haute pression et de la turbine basse pression. Le cycle comprend également une régénération obtenue en faisant circuler la vapeur extraite à travers des réchauffeurs d'eau d'alimentation fermés pour réchauffer l'eau et améliorer l'efficacité du cycle.
Battery Cell with Custom Electrochemical Domain
Use the Simscape™ example library ElectroChem_lib. In the model Fe3+ ions are reduced to Fe2+, and Pb is oxidized to Pb2+, thereby releasing chemical energy. The molar flow rate of lead ions is half that of the iron ions as two electrons are exchanged when Pb is oxidized to Pb2+. The chemical potential of the Pb source is by convention zero as it is a solid.
Lead-Acid Battery
Model a lead-acid battery cell using the Simscape™ language to implement the nonlinear equations of the equivalent circuit components. In this way, as opposed to modeling entirely in Simulink®, the connection between model components and the defining physical equations is more easily understood. For the defining equations and their validation, see Jackey, R. "A Simple, Effective Lead-Acid Battery Modeling Process for Electrical System Component Selection", SAE World Congress & Exhibition, April 2007, ref. 2007-01-0778.
Cellule de batterie au lithium - circuit équivalent à une branche RC
Cet exemple montre comment modéliser une cellule de batterie au lithium en utilisant le langage Simscape™ pour implémenter les éléments d’un modèle de circuit équivalent à une branche RC. Pour en savoir plus sur les équations de définition et leur validation, consultez l’article de T. Huria, M. Ceraolo, J. Gazzarri et R. Jackey. « High Fidelity Electrical Model with Thermal Dependence for Characterization and Simulation of High Power Lithium Battery Cells », IEEE International Electric Vehicle Conference, mars 2012.
Cellule de batterie au lithium - circuit équivalent à deux branches RC
Cet exemple montre comment modéliser une cellule de batterie au lithium en utilisant le langage Simscape™ pour implémenter les éléments d’un modèle de circuit équivalent à deux branches RC. Pour en savoir plus sur les équations de définition et leur validation, consultez l’article de T. Huria, M. Ceraolo, J. Gazzarri et R. Jackey. « High Fidelity Electrical Model with Thermal Dependence for Characterization and Simulation of High Power Lithium Battery Cells », IEEE International Electric Vehicle Conference, mars 2012.
Lithium-Ion Battery Pack with Fault Using Arrays
Simulate a battery pack that consists of multiple series-connected cells. It also shows how you can introduce a fault into one of the cells to see the impact on battery performance and cell temperatures. The battery pack is modeled in Simscape™ language by connecting cell models in series using arrays. You can represent the fault by defining different parameters for the faulty cell.
Variable Transport Delay
Use Simscape™ to model a variable transport delay. The Transport Delay block models signal propagation through media moving between the Input and the Output terminals. The media velocity may vary, thus it is specified through the block port. The distance between the terminals as well as the initial output are constant and they are specified as block parameters.
Asynchronous PWM Voltage Source
How the Simscape™ Foundation Library PS Asynchronous Sample & Hold block can be used to build components with more complex behaviors. The model implements a controllable PWM voltage source where the PWM on-time (the duty cycle) is proportional to the physical signal input u.
Discrete-Time PWM Voltage Source
How the discrete-time Simscape™ Foundation Library PS Counter block can be used to build components with more complex behaviors. The model implements a controllable PWM voltage source where the PWM on-time (the duty cycle) is proportional to the physical signal input u.
Actuation Circuit with Custom Pneumatic Components
Model a controlled actuator using simplified custom pneumatic components. There are two across variables, defined as pressure and temperature, and two through variables, defined as mass flow rate and heat flow rate. The simplified approach means that every node in the circuit must have a volume of gas associated with it. This physical volume of gas in the circuit is represented by the Constant Volume Pneumatic Chamber blocks, the Pneumatic Piston Chamber blocks, and the Pneumatic Atmospheric Reference block. Conversely, the Foundation Library gas components require no such connection rules at every node. See the Circuit de commande pneumatique example for a more capable way of modeling pneumatic systems using Foundation Library gas components.
Simscape Functions
Write Simscape™ functions to compute numerical values with Simscape expressions and how to use Simscape functions to improve code reuse across components. The top two Simscape component blocks ( inside the "Use no Simscape functions" box ) are respectively created using two Simscape component files. Comparing these two component files, similar Simscape expressions can be observed on the right hand side of the equation to compute numerical values, which is essentially a modification of exp(i) to provide protection for large magnitude of i. Such expressions are common in standard diode modeling. Using Simscape functions, such expressions are abstracted out into a Simscape function file, and their usages inside the component files are replaced by calls to such Simscape functions. The bottom two Simscape component blocks ( inside the "Use Simscape functions" box ) are created using component files using Simscape functions.
Mass on Cart Using an Ideal Hard Stop
A cart bouncing between the two ends of an ideal hard stop, while a mass slides freely on top of it. The friction between the mass and cart is modeled using an ideal, modechart-based friction block, while the hard stop is modeled using instantaneous modes and entry actions. When the cart hits the bounds of the hard stop, the impulsive force is propagated to the mass above, causing it to be displaced as it transitions from static to dynamic friction modes.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)



















