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.

flform<br />

where there is an implicit summation over the k and i indices in each product. n is<br />

the space dimension. Affected fields are therefore ga, f, weak, da, ea, and dweak<br />

from equ and g, weak, r, and constr from bnd, with weak, dweak, and constr the<br />

only fields remaining. Other fields within equ and bnd, such as shape, init, var,<br />

etc., remain unchanged.<br />

In addition, when converting to weak form, flform tries to take fem.border into<br />

account. That is to say that if fem.border is not 1 or on, there may be interior<br />

boundaries on which boundary conditions should not be applied. This process is<br />

carried out because meshextend and the solvers pay no attention to fem.border<br />

when considering weak, dweak and constr, unlike ga, c, f, q, r, h, etc.<br />

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

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

PROPERTY<br />

NAME<br />

PROPERTY VALUE DEFAULT DESCRIPTION<br />

defaults off | on off Return default fields<br />

outform coefficient |<br />

general | weak<br />

out fem | equ | bnd |<br />

edg | pnt<br />

coefficient<br />

fem<br />

Output form<br />

Output variables<br />

shrink off | on off Shrinks coefficients to<br />

most compact form.<br />

simplify off | on on Simplify expressions<br />

Cautionary<br />

Example<br />

Conversion from general form to coefficient form, or from weak form to general or<br />

coefficient form is not supported.<br />

The following code shows how the convergence can be improved for a stationary<br />

solution of the model “Resistive Heating”. The system is converted to general form,<br />

the symbolic derivatives are computed using femdiff, and the system is solved with<br />

femstatic.<br />

% !!! First run the example under the multiphysics entry<br />

fem = flform(fem,'outform','general');<br />

fem = femdiff(fem);<br />

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

fem.sol = femstatic(fem,'report','on');<br />

postsurf(fem,'T');<br />

Alternatively, change the outform to weak and remove the femdiff call.<br />

See Also<br />

multiphysics, meshextend<br />

182 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!