BlockComponents
A library of block components for Dyad
Install / Use
/learn @DyadLang/BlockComponentsREADME
BlockComponents
Introduction
BlockComponents is a component library developed with Dyad modeling language. This library provides a rich collection of pre-built, continuous-time, mathematical and signal block components.
Usage
- Install the Dyad language and VS Code extension.
- Add this package to the working environment via Julia's package manager. Execute the following code in Julia:
using Pkg
Pkg.add("BlockComponents")
Examples
Demonstration of a signal adder with blocks in BlockComponents:
component IntegratorSystem
signal = BlockComponents.Constant(k=2)
integrator = BlockComponents.Integrator()
relations
connect(signal.y, integrator.u)
end
using BlockComponents
using DyadInterface
using ModelingToolkit
using Plots
@mtkbuild model = IntegratorSystem()
res = TransientAnalysis(; model, stop = 4)
plot(
res, idxs = [model.signal.y, model.integrator.y],
title = "Integrator System",
labels = ["Constant Signal" "Integrator Output"]
)
Contributing
We welcome contributions to the BlockComponents library. See CONTRIBUTING.md for details.
License
This library is released under the BSD 3-Clause License. See the LICENSE.md for more details.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
