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.

eleqc<br />

Purpose<br />

eleqc<br />

Define coefficient form or general form equation contributions.<br />

Syntax<br />

Description<br />

el.elem = 'eleqc'<br />

el.g{ig} = geomnum<br />

el.form = 'coefficient' | 'general'<br />

el.eqvars = 'on' | 'off'<br />

el.geomdim{ig}{edim}.ind{eldomgrp} = domainlist<br />

el.geomdim{ig}{edim}.dim{idim} = dimvarname<br />

el.geomdim{ig}{edim}.ea{eldomgrp} = eacoeff<br />

el.geomdim{ig}{edim}.da{eldomgrp} = dacoeff<br />

el.geomdim{ig}{edim}.c{eldomgrp} = ccoeff<br />

el.geomdim{ig}{edim}.al{eldomgrp} = alcoeff<br />

el.geomdim{ig}{edim}.ga{eldomgrp} = gacoeff<br />

el.geomdim{ig}{edim}.be{eldomgrp} = becoeff<br />

el.geomdim{ig}{edim}.a{eldomgrp} = acoeff<br />

el.geomdim{ig}{edim}.f{eldomgrp} = fcoeff<br />

el.geomdim{ig}{edim}.ipoints{eldomgrp}{idim} = ipind<br />

The eleqc element adds equation contributions in coefficient form or general form<br />

as specified by the el.form field. It also defines variables that evaluate to various<br />

parts of the equations. These equation variables can be turned off using the eqvars<br />

field.<br />

For the syntax of the ind field, see elempty. The ea, da, c, al, ga, be, a, and f<br />

coefficients have the same syntax as the corresponding fem.equ fields. See further<br />

the section “Specifying a Model” in the <strong>COMSOL</strong> Multiphysics Scripting Guide.<br />

In contrast to the standard syntax, the eleqc coefficients have the same names on<br />

all dimensions. That is, the standard fem.bnd.g and fem.bnd.q fields correspond<br />

to a geomdim{ig}{sdim-1}.f and a geomdim{ig}{sdim-1}.a, respectively.<br />

The ipoints field differs from the gporder fields in the standard syntax (for<br />

example, fem.equ.gporder) in that it always contains pattern indices instead of<br />

orders (see elgpspec).<br />

The <strong>COMSOL</strong> Multiphysics user interface generates an eleqc element for<br />

geometries where the solution form is the coefficient or general form. When<br />

assembling using the weak solution form (the default), equations are converted to<br />

weak form and an eleqw element is generated instead.<br />

Cautionary<br />

Because of the naming convention for equation variables, at most one eleqc<br />

element per geometry can have equvars set to on. Because the default eleqc<br />

element has equation variables turned on, unless otherwise specified, it is proper<br />

procedure to turn them off for any additional eleqc elements added in the<br />

fem.elem field.<br />

74 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!