FEATool
v1.6
Finite Element Analysis Toolbox

The first step in the modeling process is to create a geometry to define the domain to be simulated. This section describes how a complex geometry can be created in FEATool by combining geometry objects such as rectangles, circles, polygons, blocks, and cylinders.
Geometry mode is the default mode that a new FEATool problem starts in (except for 1D problems where a geometry is unnecessary). This mode can also be selected by pressing the mode button or corresponding menu option. While in geometry mode the toolbar buttons represent the geometry objects and operations that are available. The main gui window will also show all present geometry objects and highlight them in red while they are selected. A selection list box will also be present which is used to select geometry object to perform and apply operations on (in 2D geometry objects can also be selected by clicking on them in the main gui window).
In two dimensions rectangles, squares, ellipses, circles, and polygonal geometry object primitives are available. To create a 2D geometry object click on one of the corresponding toolbar buttons
To create rectangles and squares, left mouse click on a point in the main gui axes to represent one corner, then hold the mouse button and move the mouse pointer to the other corresponding corner. The resulting shape will be highlighted in red lines. Release the mouse button to finalize the geometry object.
In three dimensions (3D) block, cylinder, and sphere, geometry object primitives are available. To create a 3D geometry object click on one of the corresponding toolbar buttons
In three dimensions geometry objects are created by specifying the corresponding dimensions. Geometry object properties and dimensions can also be edited by using the Inspect/edit selected geometry object option. Pressing the button will open a dialog box for the selected geometry object where object properties can be edited.
The geometry menu also features a point object. By selecting the Add Point... menu option one can specify the point coordinates for the objects. Point objects are used to enforce grid vertices at specific points in the geometry and are only used in the grid generation process.
The following operations allow geometry objects to be combined (join and intersection operations) or subtracted to form more complex geometries.
Alternatively to these buttons, the Combine Objects... geometry menu option opens a dialog box where an exact geometry formula can be entered. The syntax uses + for join,  for subtract, and & for the intersection operation as well as the geometry object labels or tags shown in the geometry object Selection listbox.
Note that if more than one geometry object is present in the final geometry FEATool will split it along all intersection borders to create subdomains as in the illustration below. The different subdomains can be used to set different material parameters, equation coefficients, and boundary conditions along the separations. See for example the heat transfer model Shrink Fitting of an Assembly.
Also, the three dimensional geometry engine is not quite robust enough to handle all cases of overlapping boundary faces. Thus it is recommended when subtracting objects in 3D to allow for this by creating subtraction objects larger than the desired domain (so that non parallel planes are avoided).
The split button is used to undo a previous join, subtract, intersect, move, scale, or rotate operation and returns the corresponding root objects.
In addition, the button allows one to rotate, scale, and move (linear translation) of a selected geometry object. Movement is specified as a space separated vector of a translation length in each space dimension (can be negative). Scaling, is similarly specified with a vector where a negative value will mirror the object. The rotation angle is specified in degrees (and in 3D the rotation axis must also be selected). Note that the default values will skip an operation (scaling of 1, translation and rotation 0).
Lastly, the delete button completely removes selected geometry objects.
The examples in the tutorial sections give step by step guides how to create different geometries. For example the Thin Plate with Hole model shows how to make a rectangle with a circular corner and Shrink Fitting of an Assembly describes how to create a complex assembly with several subdomains.
The following Matlab and Octave functions can be used on the command line to generate and modify objects and geometries.
Function  Description 

gobj_block  Create a 3D block 
gobj_circle  Create a circle in 2D 
gobj_cylinder  Create a cylinder in 3D 
gobj_ellipse  Create an ellipse in 2D 
gobj_line  Create a 1D line 
gobj_point  Create a point 
gobj_polygon  Create a 2D polygon 
gobj_rectangle  Create a 2D rectangle 
gobj_sphere  Create a 3D sphere 
geom_apply_formula  Apply formula to geometry objects 
geom_apply_transformation  Apply transformation to geometry objects 
geom_split_object  Split composite geometry object 
plotgeom  Plot and visualize geometry 