TOAST Online User Manual 
1. Mesh generation and manipulation
Back: Contents | Next: meshmod

1.1 femmesh

Introduction

femmesh is a UNIX/OpenWindows program designed to interactively generate 2D FEM meshes composed of 3-noded triangular elements. The mesh file produced by femmesh can be used in FEM main programs (solvers) to perform the required reconstructions and/or forward calculations.

Usage

femmesh [meshfile]
Starts femmesh in interactive mode. An optional mesh file can be specified to load at startup.

General features

Manual

When invoked, femmesh comes up with a mesh display window and a control panel. The control panel is used to create, modify and save a mesh.
femmesh control panel
The circular sample mesh in diagram below illustrates the geometry of the coordinate system used.
femmesh mesh window

File menu

Meshes can be saved, loaded or printed to a PostScript file. Moreover it is possible to load a polygonal ``outline'' to which a mesh ``frontline'' can be fitted.

BBox menu

This menu provides options for the automatic or manual adjustment of the boundary box dimensions.

Refresh button

Redraws the mesh.

Check mesh button

Checks the consistency of the mesh. This is normally only necessary after manual changes have been made. The following problems are looked for:

New button - Creating a new mesh

When choosing this option the following window appears.
femmesh control panel
Select one of the following three mesh types:

Circular

Rectangular

Irregular

To generate an irregularly shaped mesh one needs to define its ``frontline'', that is an outer boundary defined by actual mesh nodes. A customized mesh frontline can be defined in two ways.

Refine button - Refining a mesh locally

The node density of a mesh can be locally increased by subdividing elements manually.

Move button - Moving nodes

Nodes of an existing mesh can be moved to a new position.

Join button - Joining nodes

Two nodes of an existing mesh can be merged into one node.

Outline button - Viewing the outline

If an outline has been loaded, use this button to view or hide it.

Coeff button - Modifying optical parameters and element regions

The optical coefficients for each element can be set individually with the ``Modify Coefficients'' tool. Note that forward solvers always use the optical parameters defined in the mesh, while for the inverse solver there is a range of additional ways to specify the initial parameter distribution.
femmesh control panel

Info button - Viewing mesh information

Information on the node positions, optical properties, etc. can be viewed with the ``Information'' tool.
femmesh control panel

Time button - Defining parameters for time-dependent simulations

In case you want to perform a time-dependent forward calculation, the required parameters can be entered using the ``Time resolution'' tool. Note that this option is not used at all by the inverse solver toast, and also not by the multi-source forward solver femdata since they generate their transforms of the temporal profile directly. In effect, this option can savely be ignored except where full time profiles are required, and presently it is only supported by a limited number of forward solvers.
femmesh control panel

Source button - Defining source parameters

If you want to define a source position for a single-source forward calculation not femdata, the relevant parameters can be entered via the ``Source Specification'' tool. Note that this information is ignored by femdata and toast since they obtain source positions from a separate QM file.
femmesh control panel

Display options