Example 1371: Generating an arbitrary 2D FEM mesh from nodes


The comfile run by this example is as follows:

FEM
FEM define nodes;r;example_1371;example     
FEM define window;c
FEM draw nodes

#defines a linear simplex basis
FEM define bases;r;;example    

#defines a mesh of 3 noded simplex elements from the defined nodes.
#A constraint on the maximum element size is applied. 
FEM define mesh;r;;example      
FEM draw lines
FEM draw nodes
FEM draw elements
refresh graphics

#refine elements 3,10,8,9 and increase minimum angle
FEM define refinement;r;refinement_1;example

FEM draw lines
FEM draw nodes
FEM draw elements
refresh graphics

#refine element 9
FEM define refinement;r;refinement_2;example

FEM draw lines
FEM draw nodes
FEM draw elements

FEM hide nodes 
FEM hide elements

Files used by this example are:

Name                      Modified     Size

example_1371.com 28-Jun-2000 684 example_1371.ipbase 10-Apr-2000 1.0k example_1371.ipmesh 10-Apr-2000 913 example_1371.ipnode 10-Apr-2000 1.1k ref.exelembak 10-Apr-2000 9.4k ref.exnodebak 10-Apr-2000 2.2k refinement_1.iprefi 10-Apr-2000 731 refinement_2.exelem 10-Apr-2000 9.4k refinement_2.exnode 10-Apr-2000 2.2k refinement_2.iprefi 10-Apr-2000 734 test_output.com_disabled 10-Apr-2000 33

Download the entire example:

Name                           Modified     Size

examples_1_13_137_1371.tar.gz 18-Aug-2006 20k

Graphical output from this problem is given here.


Html last generated: Sun Mar 6 05:50:06 2016

Input last modified: Wed Oct 2 10:34:33 2002


CMISS Help / Examples / 1 / 13 / 137 / 1371