|
EIDORS: Electrical Impedance Tomography and Diffuse Optical Tomography Reconstruction Software |
|
EIDORS
(mirror) Main Documentation Examples Tutorials − Image Reconst − Data Structures − Application Examples − FEM Modelling Download Contrib Data GREIT Browse SVN News FAQ Developer
|
Build simple 2D models with distmeshDistmesh is a FEM building tool written in Matlab by Per-Olof Persson. Is is licenced under the GPL and has been distributed with EIDORS (with some small modifications).
The simplest way to build distmesh models is to use the
function mk_common_models with the parameter
like b2d0c.
Create coarse mesh (416 elems)
% Simple distmesh model $Id: simple_2d_model01.m 1535 2008-07-26 15:36:27Z aadler $
% Create small model with little mesh refinement
imdm=mk_common_model('a2d1c',16);
subplot(121)
show_fem(imdm.fwd_model);
axis on; axis equal
% close in view
subplot(122)
show_fem(imdm.fwd_model);
axis equal; axis([-.1 .1 .85 1.05]);
print -dpng -r125 simple_2d_model01a.png
Figure:
Circular model generated by distmesh (416 elements)
Left: complete model
Right: magnified view of electrode (3 nodes per electrode)
Create fine mesh (3602 elems)
% Simple distmesh model $Id: simple_2d_model02.m 1535 2008-07-26 15:36:27Z aadler $
% Create small model with little mesh refinement
imdm=mk_common_model('d2d4c',16);
subplot(121)
show_fem(imdm.fwd_model);
axis on; axis equal
% close in view
subplot(122)
show_fem(imdm.fwd_model);
axis equal; axis([-.1 .1 .85 1.05]);
print -dpng -r125 simple_2d_model02a.png
Figure:
Circular model generated by distmesh (3602 elements)
Left: complete model
Left: magnified view of electrode (3 nodes per electrode)
|
Last Modified: $Date: 2008-07-26 11:36:27 -0400 (Sat, 26 Jul 2008) $ by $Author: aadler $