Example 1372: Generating an arbitrary 2D FEM mesh using a Planar Straight Line Graph


The comfile run by this example is as follows:

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

#Defines a linear simplex basis using an XI parametric coordinate system
FEM define bases;r;;example    

#Defines a mesh of 3 noded simplex elements from a planar straight line
#graph description of the domain.
FEM define mesh;r;;example     
FEM draw lines
FEM draw nodes
FEM draw elements
refresh graphics

#Define element area constraint field
FEM define field;r;;example
FEM define elements;r;;example field

FEM hide nodes
FEM hide elements

#Define refinement to element area constraint field
FEM define refine;r;;example


FEM draw lines
refresh graphics

Files used by this example are:

Name                      Modified     Size

example_1372.com 28-Jun-2000 643 example_1372.exelem 10-Apr-2000 5.4k example_1372.exnode 10-Apr-2000 1.7k example_1372.ipbase 10-Apr-2000 1.0k example_1372.ipelfd 10-Apr-2000 636 example_1372.ipfiel 10-Apr-2000 725 example_1372.ipmesh 10-Apr-2000 1.4k example_1372.ipnode 10-Apr-2000 1.0k example_1372.iprefi 10-Apr-2000 743 test_output.com_disabled 10-Apr-2000 33

Download the entire example:

Name                           Modified     Size

examples_1_13_137_1372.tar.gz 18-Aug-2006 17k

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:51 2002


CMISS Help / Examples / 1 / 13 / 137 / 1372