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.

mesh2geom<br />

Purpose<br />

mesh2geom<br />

Create an analyzed geometry and/or a draw object from a (deformed) mesh.<br />

Syntax<br />

Description<br />

[xfem,g] = mesh2geom(xfem,args)<br />

[xfem,g] = mesh2geom(xfem,args) returns a new extended fem structure xfem<br />

with the fields specified in the destfield property filled, generated from the source<br />

specified in the srcdata property. If draw is specified in destfield, the created<br />

draw object g is also returned.<br />

The source can be either the deformed geometry from solving an ALE or<br />

parameterized geometry problem (deformed), or a mesh (mesh).<br />

The destination can be any nonempty subset of {'mesh','geom','draw'}, indicating<br />

that a mesh, an analyzed geometry, and/or a draw object should be created. If draw<br />

is specified, you can use the drawtag property to specify the tag of the new<br />

Draw-mode object.<br />

The destination geometry destfem can be an existing geometry or the next<br />

undefined geometry, in which case a new geometry is created.<br />

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

PROPERTY<br />

NAME<br />

Srcdata deformed |<br />

mesh<br />

Destfield<br />

PROPERTY VALUE DEFAULT DESCRIPTION<br />

cell array of<br />

strings: mesh |<br />

geom | draw<br />

mesh<br />

geom,<br />

mesh<br />

Source data: deformed<br />

geometry or mesh<br />

Destination: mesh, analyzed<br />

geometry, or draw object<br />

Srcfem positive integer 1 Source geometry<br />

Destfem positive integer 1 Destination geometry<br />

MCase integer 0 Source and/or destination mesh<br />

case<br />

Drawtag string Draw tag to use when creating<br />

draw object<br />

Frame string Frame to use when retrieving<br />

deformed geometry<br />

Solnum positive integer last<br />

solution<br />

Solution to use when retrieving<br />

deformed geometry<br />

Examples<br />

Creating an Analyzed Geometry From a Mesh<br />

Create a mesh.<br />

clear fem;<br />

248 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!