State Space
The State Space node () provides access to the raw data of a PDE in state-space form. To create state-space data, right-click the solver node and select Other>State Space. Specify the input and output and the state-space matrices and vectors that you want to access. Then save the model as a file for Java®. The saved Java file contains code for assembling the selected matrices and vectors that can be used to access the matrix rows, columns, values, and so on.
Input
In the Input parameters field, enter all parameters that affect the model as space- or comma-separated entries.
Output
The state-space node assembles matrices that describe a model as a dynamic system when Off is selected from the Static list:
If you select On from the Static list, a static linearized model of the system is described by
In the Output expressions field, enter all expressions that are to be evaluated as output from the model as space- or comma-separated entries. Select any of the MA, MB, D, and C check boxes, and if Static is set to Off, any of the MC, Null, ud, or x0 check boxes. Null is the PDE constraint null-space matrix, and ud is a particular solution fulfilling the constraints. x0 is the initial data. The solution vector U for the PDE problem can then be written
where u0 is the linearization point, which is determined by the current solution (that is, the solution computed by the previous feature in the sequence). The previous feature can, for example, be a solver or a Dependent Variable node. The Dependent Variable node gives control over which variables to solver for (compute the matrices for). The input linearization point is stored in the sequence after the state-space node is run.
Constants
In this section you can define constants that can be used as temporary constants in the solver. You can use the constants in the model or to define values for internal solver parameters. These constants overrule any previous definition (for example, from Global Definitions). Some examples of when it can be useful to defined constants for a solver:
When you want to define auxiliary parameters that are part of the equations like CFLCMP or niterCMP and where the solver does not define these parameters.
Click the Add button () to add a constant and then define its name in the Constant name column and its value (a numerical value or parameter expression) in the Constant value column. By default, any defined parameters are first added as the constant names, but you can change the names to define other constants. Click Delete () to remove the selected constant from the list.
Log
This section, which is initially empty, contains a log from the run of the State Space node. This log is stored in the Model MPH-file. Select the Keep warnings in stored log to keep warning messages in this log so that the information in those warnings is also available when reopening the model.
StateSpace in the COMSOL Multiphysics Programming Reference Manual.