OwnModels gathers OwnTech simulation models for two toolchains:
plecs/for PLECS-based models and reusable library blockssimscape/for MATLAB/Simulink/Simscape-based models
This folder contains the current PLECS assets in the repository:
plecs/owntech-lib/Owntech_lib.plecs: reusable OwnTech PLECS libraryplecs/Open loop/Twist_open_loop.plecs: open-loop switched exampleplecs/Voltage Mode Buck/Twist_voltage_mode_buck.plecs: closed-loop switched buck modelplecs/Voltage Mode Buck/Twist_voltage_mode_buck_AVG.plecs: averaged closed-loop buck modelplecs/docs/: PLECS setup and example documentation, with screenshots and license file
Folder-level notes are available in:
This folder contains the current Simscape model and its supporting data:
simscape/owntech_model_simscape.slx: Simulink/Simscape buck-converter modelsimscape/script_owntech_model.m: main MATLAB entry point used to configure and run simulationssimscape/twist_parameters.m: electrical and control parameters used by the modelsimscape/feeder_current.mat: feeder-current dataset loaded by the parameter scriptsimscape/README.md: local usage notes for the Simscape model
The repository documentation is now stored under plecs/docs/ and currently focuses on the PLECS workflow:
plecs/docs/getting_started.md: install PLECS and register the OwnTech libraryplecs/docs/first_example.md: run the open-loop PLECS exampleplecs/docs/voltage_mode_simulation.md: run the closed-loop switched and averaged voltage-mode buck examples
Supporting screenshots for these guides are stored in plecs/docs/Images/.
- Install PLECS Standalone.
- Add
plecs/owntech-lib/to the PLECS library/search path and loadOwntech_lib.plecs. - Use the setup and walkthrough guides in
plecs/docs/. - Open one of the example models from
plecs/Open loop/orplecs/Voltage Mode Buck/.
- Open MATLAB with Simulink and Simscape available.
- Run
simscape/script_owntech_model.m. - Adjust the user configuration in
script_owntech_model.mand the model constants intwist_parameters.mas needed.
The repository is distributed under the GNU Lesser General Public License v2.1. See LICENSE.