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.

elcplscalar<br />

Purpose<br />

elcplscalar<br />

Define integration coupling variables.<br />

Syntax<br />

Description<br />

el.elem = 'elcplscalar'<br />

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

el.var{ivar} = varname<br />

el.global = varlist<br />

el.src{ig}{edim}.ind{srcdomgrp} = domainlist<br />

el.src{ig}{edim}.expr{ivar}{srcdomgrp} = srcexpr<br />

el.src{ig}{edim}.ipoints{ivar}{srcdomgrp} = ip<br />

el.src{ig}{edim}.iorders{ivar}{srcdomgrp} = io<br />

el.src{ig}{edim}.frame{ivar}{srcdomgrp} = frame<br />

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

el.geomdim{ig}{edim}.usage{ivar} = eldomgrplist<br />

The elcplscalar element declares the integration coupling variable names listed<br />

in the var field to be accessible on domain groups specified as a, possibly empty, cell<br />

array for each variable in the usage field, or globally if the variable index is<br />

mentioned in the global field. The same variable cannot be defined as both global<br />

and local.<br />

The source domain grouping specified in the src{ig}{edim}.ind field does not<br />

contribute to the global domain splitting. For each variable and source domain<br />

group, a possibly empty (no contribution) source expression is given in the expr<br />

field.<br />

The ipoint field specifies an integration point pattern using indices referring to an<br />

elgpspec element. If the ipoints field is not present, the iorders field will be<br />

read instead and assumed to contain Gauss-Legendre quadrature orders for the<br />

source expressions. When specifying an elcplscalar element in a script, the latter<br />

syntax is more convenient.<br />

The frame field selects the set of spatial variables with reference to which the<br />

integration is performed. For example, if the source expression is '1', using the<br />

reference frame will make the variable evaluate to the undeformed volume of the<br />

source domains, while choosing a moving frame will give you the deformed volume.<br />

Examples<br />

Make the average value of the solution available on the boundary of a circle.<br />

fem.geom = circ2;<br />

fem.mesh = meshinit(fem);<br />

fem.shape = 2;<br />

fem.equ.c = 1; fem.equ.f = 1;<br />

fem.bnd.h = 1;<br />

fem.elem = {};<br />

clear el;<br />

66 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!