# Dyad Documentation > Dyad documentation — model physical systems, wire control loops, train surrogates, and ship to embedded hardware. ## Table of Contents - [Installation](/dyad/dev/installation.md): Download Dyad Studio, sign in to JuliaHub, and start modeling. - [Getting Started with Dyad Studio](/dyad/dev/tutorials/getting-started.md): Learn how to use Dyad Studio and the Dyad language. ### Tutorials - [Using Agentic AI to Build Dyad Models](/dyad/dev/tutorials/agentic-tutorial.md): Build a Dyad model step by step with the AI agent, then use it with Git, animations, and images. - [Composing Standard Library Components](/dyad/dev/tutorials/standard-libraries.md): Learn how to use the Dyad standard library to build and control a DC motor. - [Acausal Modeling and Creating Components](/dyad/dev/tutorials/creating-components.md): Learn how to build a simple RLC electrical circuit from scratch using the Dyad language. - [Design Optimization](/dyad/dev/tutorials/design-optimization.md) - [Building an Inversion-Based Controller](/dyad/dev/tutorials/inversion-based-control.md): Learn how to use Dyad to build an inversion-based control and auto-tune it. - [Using Datasets with Interpolation](/dyad/dev/tutorials/using-datasets.md): Learn how to use datasets to drive time-varying inputs in your Dyad models through Interpolation blocks. ### Tutorials / Synchronous Programming - [Discrete-Time Modeling](/dyad/dev/tutorials/discrete-time-modeling.md): Modeling discrete-time systems in Dyad: clocks, the synchronous programming model, difference equations and multi-rate systems. - [Sampled-Data Systems](/dyad/dev/tutorials/sampled-data.md): Combining continuous-time and discrete-time models in Dyad: sample and hold, and what they mean. - [Initializing Discrete-Time Components](/dyad/dev/tutorials/discrete-initialization.md): How to specify initial conditions for clocked variables in Dyad, and the InitialCondition enum used by DiscreteComponents. - [Array Variables in Clocked Components](/dyad/dev/tutorials/discrete-arrays.md): Working with array-valued clocked variables, array connectors and discrete-time state-space models in Dyad. - [Julia Functions, Side Effects and Hardware](/dyad/dev/tutorials/discrete-external-functions.md): Calling Julia from clocked Dyad components, the purity rules that apply, execution order of side-effecting calls, hardware I/O and logging. - [Debug Logging](/dyad/dev/tutorials/debug-logging.md): Tracing the synchronous-program compiler when a clocked Dyad model fails to compile. - [Code Generation and Deployment](/dyad/dev/tutorials/discrete-code-generation.md): What happens when a clocked Dyad model is simulated, how to compile a controller into a standalone synchronous program, export it as C, and deploy it. - [Discretizing Continuous-Time Linear Systems](/dyad/dev/tutorials/discretizing-linear-systems.md): Using c2d from ControlSystems.jl to turn a continuous-time controller into a discrete-time Dyad component. - [Measurement Noise and Corruption](/dyad/dev/tutorials/noise.md): Learn about modeling measurement noise, quantization, and AD effects in Dyad sampled-data systems. - [DC Motor with PI Controller](/dyad/dev/tutorials/dc-motor-pi.md): Speed and position control of a DC motor using continuous and discrete-time PI controllers in Dyad. - [On-Off Controller](/dyad/dev/tutorials/onoff-controller.md): Modeling an on-off (binary) controller with hysteresis in Dyad. - [Sliding-Mode Control](/dyad/dev/tutorials/sliding-mode-control.md): Discrete-time super-twisting sliding mode control of a second-order plant in Dyad. ### Dyad Language - [Language Guide](/dyad/dev/manual/syntax.md): Learn to express physical systems, reusable components, discrete-time behavior, and graphical models in Dyad. - [Parameters, Variables, and Equations](/dyad/dev/manual/language/values-and-equations.md): Declare parameters and variables, then express their behavior with equations, initial conditions, arrays, and structural choices in Dyad. - [Components and Reuse](/dyad/dev/manual/components.md): Build reusable Dyad components through composition, partial interfaces, specialization, and arrays. - [Connectors and Networks](/dyad/dev/manual/language/connectors.md): Model physical conservation, causal signals, stream transport, and shared network choices with Dyad connectors. - [Clocks and discrete-time models](/dyad/dev/manual/language/discrete-time.md): Write clocked Dyad components, initialize previous samples, and connect discrete and continuous models. - [Media and fluid modeling](/dyad/dev/manual/language/media-and-fluids.md): Organize medium definitions, thermodynamic state, and fluid connectors with reusable Dyad modeling patterns. - [Graphical Models and Metadata](/dyad/dev/manual/language/metadata.md): Give Dyad components and connectors multiple icons, colored connection routes, tags, and grouped parameter panels. - [Syntax reference](/dyad/dev/manual/language/syntax-reference.md): Reference for Dyad declarations, expressions, equations, and structural control supported by ModelingToolkit code generation. ### Manual - [AI Agent Guide](/dyad/dev/manual/agentic.md): Use the Dyad Studio AI agent: controls, sessions, what it knows, prompting tips, tools, permissions, custom skills, and troubleshooting. - [Graphical Editor](/dyad/dev/manual/gui.md): Learn about the graphical editor in Dyad. - [Analyses](/dyad/dev/manual/analyses.md): Learn about how to use and make your own analyses for your Dyad models. - [Working with Data](/dyad/dev/manual/datasets.md): Learn about using DyadData to work with data in Dyad models, including interpolation blocks for time-series and 2D lookup tables. - [F.A.Q](/dyad/dev/manual/faq.md): Frequently asked questions about the Dyad language and ecosystem. - [Get Help](/dyad/dev/manual/help.md): A list of all the ways you can get help for Dyad. - [Changelog](/dyad/dev/manual/changelog.md) ### Manual / Advanced Features - [Write a custom analysis](/dyad/dev/manual/advanced/custom_analysis.md) - [Julia-Based Analysis Libraries](/dyad/dev/manual/advanced/analysislibraries.md): Learn how to use the Julia-level APIs of Dyad's analysis libraries. - [Julia-Based Component Libraries](/dyad/dev/manual/advanced/juliacomponentlibraries.md): Learn how to use Dyad Studio and the Dyad language. - [Generated Constructors and External Components](/dyad/dev/manual/advanced/generated-constructors.md): How Dyad 3.5 generated Julia constructors take overrides, how to upgrade libraries and Julia code to them, and how to write an external component in Julia. - [Analysis Points](/dyad/dev/manual/advanced/analysis_points.md): Learn about analysis points in Dyad, their purpose, and how to use them for advanced system analysis. ### Examples - [Examples](/dyad/dev/examples.md) - [Driveline SciML Demo](/dyad/dev/examples/DrivelineSciML.md) - [Thermal House Demo](/dyad/dev/examples/ThermalHouseDemo.md) - [Dynamic Steady State Demo](/dyad/dev/examples/DynamicSteadyState.md) - [Friction Brake Demo](/dyad/dev/examples/FrictionBrakeDemo.md) - [Integrating a C tire library](/dyad/dev/examples/CLibraryIntegration.md) - [Coffee Mug Demo](/dyad/dev/examples/CoffeeMugDemo.md) - [HL-20 Flight Simulator](/dyad/dev/examples/HL20Demo.md) - [Hybrid Transmission Demo](/dyad/dev/examples/HybridTransmission.md) - [MakieWebinar](/dyad/dev/examples/MakieWebinar.md) - [Passive Suspension Demo](/dyad/dev/examples/PassiveSuspension.md) - [Quarter Truck SciML Demo](/dyad/dev/examples/QuarterTruckSciML.md) - [Satellite GNC Demo](/dyad/dev/examples/SatelliteGNC.md) - [Turkey Demo](/dyad/dev/examples/TurkeyDemo.md) ### Analysis Libraries / DyadInterface - [Transient Analysis](/dyad/dev/analyses/transient.md): Learn how to get a time series for a Dyad model. - [Steady State Analysis](/dyad/dev/analyses/steadystate.md): Learn how to find the steady state of a Dyad model. ### Analysis Libraries / DyadControlSystems - [Closed-Loop Analysis](/dyad/dev/analyses/closed_loop.md): Analyze the closed-loop properties of a feedback interconnection through linearization and frequency-domain analysis. - [Closed-Loop Sensitivity Analysis](/dyad/dev/analyses/closed_loop_sensitivity.md): Analyze the closed-loop sensitivity function S = 1/(1+PC) at one or several specified analysis points. - [Linear Analysis](/dyad/dev/analyses/linear.md): Perform linearization and frequency/time-domain analysis of a model, including Bode plots, step response, modal analysis, and more. - [PID Autotuning Analysis](/dyad/dev/analyses/pid_autotuning.md): Automatically tune PID controller parameters for a given model using step-response optimization subject to frequency-domain constraints. - [LQG Analysis](/dyad/dev/analyses/lqg_analysis.md): Design optimal LQG (Linear Quadratic Gaussian) controllers using state estimation and quadratic cost minimization with noise considerations. - [Pole Placement Analysis](/dyad/dev/analyses/pole_placement.md): Design an observer-based state-feedback controller using pole placement techniques with optional integral action. - [Frequency Response Analysis](/dyad/dev/analyses/frequency_response.md): Perform frequency-response analysis between an input and multiple output analysis points in a model using chirp or multisine excitation. - [System Identification Analysis](/dyad/dev/analyses/system_identification.md): Identify linear state-space models from input-output data using subspace identification or prediction error methods. - [State Estimation Analysis](/dyad/dev/analyses/state_estimation_analysis.md): Estimate system state from measured input-output data using Extended or Unscented Kalman filters for model-based nonlinear state estimation. ### Analysis Libraries / DyadSurrogates - [Surrogate Analysis](/dyad/dev/analyses/surrogate.md): Learn how to generate a surrogate for a model ### Analysis Libraries / DyadModelOptimizer - [Calibration Analysis](/dyad/dev/analyses/calibration.md): Learn how to calibrate parameters for a model. ### Analysis Libraries / DyadModelDiscovery - [Model Discovery Analysis](/dyad/dev/analyses/udes.md): Learn how to perform model discovery in Dyad with Universal Differential Equations and neural networks. ### Analysis Libraries / DyadFMUGeneration - [FMU Generation Analysis](/dyad/dev/analyses/fmugeneration.md): Learn how to build an FMU from a Dyad model. ### Other - [Loading parameters from a file](/dyad/dev/manual/language/loading-parameters.md): Load Dyad component parameters, arrays, and initialization values from TOML or JSON files with apply. - [ModelingToolkit.jl and Dyad](/dyad/dev/manual/advanced/modelingtoolkit.md): Learn how to use ModelingToolkit.jl and how it interacts with your Dyad models. - [Testing with Dyad](/dyad/dev/manual/advanced/ci_cd.md): Learn how to use CI/CD and Github Actions with your Dyad component library.