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.

femsim<br />

Purpose<br />

femsim<br />

Create a Simulink structure.<br />

Syntax<br />

Description<br />

sct = femsim(fem,...)<br />

sct = femsim(fem,...) creates a Simulink structure sct for the FEM structure<br />

fem.<br />

To use the exported Simulink structure in Simulink, open the Blocksets &<br />

Toolboxes library in Simulink, double-click on the <strong>COMSOL</strong> Multiphysics icon,<br />

and drag the <strong>COMSOL</strong> Multiphysics Subsystem block to your Simulink model.<br />

Double click on your copy of the block, and enter the name of your Simulink<br />

Structure. This sets up the input and the output ports of the block.<br />

The function femsim accepts the following property/value pairs:<br />

TABLE 1-27: VALID PROPERTY/VALUE PAIRS<br />

PROPERTY VALUE DEFAULT DESCRIPTION<br />

Input cell array of strings fem.const Input variable names<br />

Keep string containing K, L,<br />

M, N, D, E | auto<br />

auto<br />

Time-independent<br />

quantities<br />

Nonlin off | on | auto auto Use nonlinear stationary<br />

solver<br />

Outnames cell array of strings y1, y2, ... Output data names<br />

Output cell array {} Output data (see below)<br />

Redcomp cell array of strings Degrees of freedom in<br />

model reduction of wave<br />

equations<br />

Redmodes integer 10 Number of eigenmodes in<br />

reduction<br />

Redstatic off | on on Use static modes in<br />

reduction<br />

Reduction off | on off Model reduction<br />

State off | on off Use linearized state-space<br />

model<br />

Static off | on off Use static solver<br />

T scalar 0 Time for evaluation of<br />

linearized model<br />

In addition, the common solver properties described in the entry femsolver are<br />

supported, with modifications described below.<br />

142 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!