Custom Domains

Write Simscape™ files to represent custom domains

Simscape Language Syntax

Examples and How To

Define a New Physical Domain

To define a new physical domain, you must declare the Through and Across variables associated with it.

Declare Through and Across Variables for a Domain

In a domain file, you have to declare the Through and Across variables associated with the domain.

Define Relationship Between Component Variables and Nodes

How to connect Through and Across variables declared in a component file to the domain Through and Across variables.

Declare Domain Parameters

How domain parameters differ from component parameters.

Declare a Mechanical Rotational Domain

The following file, named rotational.ssc, declares a mechanical rotational domain, with angular velocity as an Across variable and torque as a Through variable.


What Is the Simscape Language?

Brief overview of the modeling language and its purpose.

Typical Simscape Language Tasks

Overview of the typical Simscape language workflows, with links to background information and examples.

Simscape File Types and Structure

Overview of the Simscape file types and structure.

When to Define a New Physical Domain

A physical domain provides an environment, defined primarily by its Across and Through variables, for connecting the components in a Physical Network.

Declaring Domains and Components

Both domain and component files contain a declaration section:

Working with Domain Parameters

The purpose of domain parameters is to propagate the same parameter value to all or some of the components connected to the domain.

Attribute Lists

The attributes appear in an AttributeList, which is a comma separated list of pairs, as defined in the MATLAB® class system grammar.

Was this topic helpful?