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.

posteval<br />

Purpose<br />

posteval<br />

Evaluate expressions in subdomains, boundaries, edges or vertices.<br />

Syntax<br />

Description<br />

[v1,v2,...,vn] = posteval(fem,e1,e2,...,en,...)<br />

[v1,v2,...,vn] = posteval(fem,e1,e2,...,en,...) returns values<br />

v1,v2,...,vn of the expressions e1,e2,...,en. The expressions can be evaluated<br />

on any domain type: subdomain, boundary, edge, and vertex, using one or several<br />

solutions.<br />

The values vi are post data, a structure with fields p, t, q, d, and elind. The field<br />

p contains node point coordinate information. The number of rows in p is the<br />

number of space dimensions. The field t contains the indices to columns in p of a<br />

simplex mesh, each column in t representing a simplex. The field q contains the<br />

indices to columns in p of a quadrilateral mesh, each column in q representing a<br />

quadrilateral. The field d contains data values. The columns in d correspond to node<br />

point coordinates in columns in p. There is one row in d for each solution (see the<br />

properties Solnum and T below). The data contains the real part of complex-valued<br />

expressions. The field elind contains indices to mesh elements for each point.<br />

The string expressions can be any <strong>COMSOL</strong> Multiphysics expressions involving<br />

variables, in particular application mode variables.<br />

The function posteval accepts the following property/values:<br />

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

PROPERTY NAME PROPERTY VALUE DEFAULT DESCRIPTION<br />

Bpoint double matrix Local coordinates for<br />

quadrilateral and block<br />

elements<br />

Const cell array Definition of constants<br />

Cont off | on |<br />

off<br />

Smoothing<br />

internal<br />

Dl<br />

integer vector or all domains Domain lists<br />

cell array of integer<br />

vectors<br />

Edim integer full Element dimension<br />

Frame integer spatial frame Coordinate frame<br />

Geomnum positive integer 1 Geometry number<br />

Phase scalar 0 Phase angle<br />

Prpoint double matrix Local coordinates for<br />

prism elements<br />

333

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

Saved successfully!

Ooh no, something went wrong!