21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

femsim<br />

The names of the input variables are given in the property Input. The default is all<br />

names in fem.const.<br />

The output values are determined by the entries in the Output cell array. Each entry<br />

in this cell array should be a cell array of the following form:<br />

{'expr' xx pvlist}<br />

where 'expr' is an expression, xx is a column vector containing global coordinates,<br />

and pvlist is a (possibly empty) list of property/value pairs (see postinterp). The<br />

function postinterp is used to evaluate the output value as<br />

postinterp('expr', xx, pvlist)<br />

The names of the output ports of the <strong>COMSOL</strong> Multiphysics Subsystem block are<br />

given in the property Outnames. The default names are y1, y2, etc.<br />

The <strong>COMSOL</strong> Multiphysics Subsystem block can act in four different modes,<br />

chosen by the properties State and Static:<br />

General Dynamic Export (State=off, Static=off)<br />

Export a dynamic model, where the <strong>COMSOL</strong> Multiphysics degrees of freedom are<br />

part of the Simulink state vector. The <strong>COMSOL</strong> Multiphysics solver is called several<br />

times for each time step to compute the time derivative of the state vector, with<br />

inputs from Simulink. Only linear, time-independent constraints and the<br />

eliminate constraint handling method is supported. The Itol property is<br />

supported, see femlin. The Const property is not supported.<br />

General Static Export (State=off, Static=on)<br />

Export a static model, where the <strong>COMSOL</strong> Multiphysics degrees of freedom are<br />

not part of the Simulink state vector. To compute the outputs of the <strong>COMSOL</strong><br />

Multiphysics Subsystem block, the <strong>COMSOL</strong> Multiphysics linear or nonlinear<br />

stationary solver is called for each time step, with inputs from Simulink. If<br />

Nonlin=off, the linear solver is used and the property Itol is supported, see<br />

femlin. If Nonlin=on, the nonlinear solver is used and the properties Hnlin,<br />

Initstep, Maxiter, Minstep, Ntol, and Rstep are supported, see femnlin.<br />

Linearized Dynamic Export (State=on, Static=off)<br />

Export a dynamic linearized model. The model is linearized about an equilibrium<br />

solution, and the matrices in the state-space form are computed. The <strong>COMSOL</strong><br />

Multiphysics degrees of freedom are part of the Simulink state vector. At each time<br />

step, the matrices in the state-space form are used to compute the time derivative of<br />

the state vector, instead of calling the <strong>COMSOL</strong> Multiphysics solver. Only linear,<br />

143

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

Saved successfully!

Ooh no, something went wrong!