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.

multiphysics<br />

a1.equ.res0 = 1.754e-8<br />

a1.equ.sigtype = 'heat';<br />

a2.mode = 'HeatTransfer';<br />

a2.assignsuffix = '_ht';<br />

a2.bnd.T0 = {300 0};<br />

a2.bnd.type = {'T' 'q0'};<br />

a2.bnd.ind = [1 2 2 1];<br />

a2.equ.rho = 8930;<br />

a2.equ.C = 340;<br />

a2.equ.k = 384;<br />

a2.equ.Q = 'Q_dc';<br />

a2.equ.init = 300;<br />

fem.appl = {a1 a2};<br />

fem = multiphysics(fem);<br />

fem.xmesh=meshextend(fem);<br />

fem.sol = femtime(fem,'tlist',linspace(0,3000,41), ...<br />

'report','on');<br />

Diagnostics<br />

All variables in the appl{:}.dim fields must be unique. If any appl{:}.dim has not<br />

been provided, no other appl{:}.dim may collide with the defaults. If they do, an<br />

error message is generated.<br />

If any form appl{:}.form is more general than Outform, an error message is<br />

generated.<br />

Compatibility<br />

To simplify the output of the multiphysics functions in FEMLAB 3.0, its defaults<br />

has been changed by the introduction of the properties Shrink and Defaults. The<br />

compatibility problems typically occur when you perform changes to the data<br />

generated by multiphysics. For example, modifying the α coefficient<br />

fem=multiphysics(fem);<br />

fem.equ.al{1}{2,1}=...;<br />

fem.equ.al{1}{3,1}=...;<br />

may not work as in FEMLAB 2.3 because alpha is often just empty. The code above<br />

assumes that fem.equ.al{1} is a 3-by-3 cell array. To obtain fully backward<br />

compatible output, use<br />

fem=multiphysics(fem,'shrink','off','defaults','on');<br />

which makes the above example work.<br />

The properties out and rules are obsolete from FEMLAB 3.0.<br />

The property Idl is obsolete in FEMLAB 2.2 and later versions.<br />

The fields fem.init and fem.usage are no longer constructed. They are<br />

superseded by the fields fem.***.init and fem.***.shape, respectively.<br />

310 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!