Target Outcome

A finite element mesh of a tissue of interest ready for model development with:

Protocols

Required Infrastructure

Input

Surface representation of tissue of interest; in Stl format in MRI coordinate system .

For more details, see Geometry Generation.

Procedures

SALOME will be used as the primary meshing tool for Multis.

Automated

SALOME has an advanced python interface that allows access to all of its functionality. Installing this into python is quite difficult. However running a script in SALOME is easy! Just open SALOME and select File > Load Script. Browse to the file and open.

This python script will take an xml file with the connectivity of several stl files in the same coordinate system. It will then mesh them in 3D, and create groups of elements and nodes for applying boundary conditions. Currently it makes groups of all, outer surface, and a proximity based tie condition.

Instructions for running the script and creating the xml input file can be found here.

Learn how to easily add python libraries to Salome here.

Manual

  1. Start SALOME and select the Mesh module, when the activate module dialog comes up select New.

  2. Import the stl surface using File > Import > STL file. When the file loads, it may not draw it to the screen. Click the eye icon next to the file name to toggle visibility. (Visibility is not required to complete this procedure.)

  3. Right click the file and select Edit Mesh/Sub-mesh.

  4. While staying on the default 3D tab change the Algorithm drop down to Tetrahedron (Netgen), then click Apply and Close.

  5. Right click on the file again and select Compute. A window will appear showing information on the computed mesh, click Close.

  6. Right click the file and select Create Group and create the desired groups.

  7. Export the resulting mesh File > Export > UNV file (or other format).

Gmsh

Gmsh is a much lighter meshing program. If you don't require the might of SALOME you might consider this for 3D mesh an stl.

Make a new Gmsh geo file with these lines.

Merge 'StlFileOfInterest.stl';
SL = newreg;    Surface Loop(SL) = {1};
V = newv;       Volume(V) = {SL};
Physical Volume('MeaningfulName', 1) = {V};
Mesh 3;

Get the desired groups by setting them manually.

Then File > Save As... and select your format.

If it doesn't mesh

Sometimes the stl might be bad and these procedures won't work. Here's how to fix it.

Output

Volumetric finite element mesh of tissue of interest; in still to be determined format

The completed finite element mesh output is used in Model Assembly.

To assign material properties to the mesh from a labeled image, see Re-mapping Field.

Specifications/MeshGeneration (last edited 2018-07-06 19:13:12 by sbdoherty)