21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

femstate<br />

Purpose<br />

femstate<br />

Compute state-space form of a time-dependent PDE problem.<br />

Syntax<br />

Description<br />

[A,B,C,D] = femstate(fem,...)<br />

[M,MA,MB,C,D] = femstate(fem,...)<br />

[M,MA,MB,C,D,Null,ud,x0] = femstate(fem,...)<br />

state = femstate(fem,...)<br />

[A,B,C,D] = femstate(fem,...) calculates the linearized state-space form of the<br />

dynamic PDE model fem on the format<br />

⎧dx<br />

⎪ = Ax + Bu<br />

⎨dt<br />

⎪<br />

⎩ y = Cx+<br />

Du<br />

where x are the state variables, u are the input variables, and y are the output<br />

variables.<br />

[M,MA,MB,C,D] = femstate(fem,...) calculates the state-space form on the<br />

format<br />

⎧<br />

⎪<br />

⎨<br />

⎪<br />

⎩<br />

dx<br />

M dt<br />

= MAx + MBu<br />

y = Cx+<br />

Du<br />

The matrices M and MA are usually much sparser than the matrix A.<br />

[M,MA,MB,C,D,Null,ud,x0] = femstate(fem,...) also returns the null space<br />

matrix Null, the constraint contribution ud, and the initial state x0. The full<br />

solution vector U can be obtained from the state variables by U = Null*x+u0, where<br />

u0 is the linearization point.<br />

state = femstate(fem,...) returns the structure state containing the fields M,<br />

MA, MB, C, D, Null, and x0.<br />

state = femstate(fem,'out','statenom',...) returns the structure state<br />

containing the fields A, B, C, D, Null, and x0.<br />

s = femstate(fem,'out','ss',...) returns the Control System Toolbox<br />

state-space object s = ss(A,B,C,D).<br />

The output from femstate is intended for use from Simulink or the Control System<br />

Toolbox. The function femstate with the output state is equivalent to femsim<br />

162 | CHAPTER 1: COMMAND REFERENCE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!