domain
Domain model class definition
Parent Section: none (top-level)
Syntax
domain DomainName
variables
... % Across variables
end
variables(Balancing = true)
... % Through variables
end
end
Description
domain begins the domain model class definition, which is
terminated by an end keyword. Only blank lines, comments, and
import statements can precede domain. You must
place a domain model class definition in a file of the same name with a file name
extension of .ssc.
A domain model class definition can contain these sections:
variablesbegins an Across variables declaration section, which is terminated by anendkeyword. This block contains declarations for all the Across variables associated with the domain. A domain model class definition can contain multiple Across variables, combined in a singlevariablessection. This section is required.variables(Balancing = true)begins a Through variables declaration section, which is terminated by anendkeyword. This section contains declarations for all the Through variables associated with the domain. A domain model class definition can contain multiple Through variables, combined in a singlethroughsection. This section is required.Each variable is defined as a value with unit. See Declare Through and Across Variables for a Domain for more information.
parametersbegins a domain parameters declaration section, which is terminated by anendkeyword. This section contains declarations for domain parameters. These parameters are associated with the domain and can be propagated through the network to all components connected to the domain. This section is optional.See Propagation of Domain Parameters for more information.
intermediatesbegins a declaration section of named intermediate terms, which is terminated by anendkeyword. This block contains declarations of intermediate terms that can be reused in equations of components that have nodes of this domain type. This section is optional.See Using Intermediate Terms in Equations for more information.
equationsbegins the equation section, which is terminated by anendkeyword. This section serves to establish the mathematical relationships between the domain Across variables, parameters, and intermediates. This section is optional.Use the domain equations when your custom domain has more Across variables than Through variables. For more information, see Domain Equations.
For declaration member attributes, see Attribute Lists.