Example 1391: Defining a mesh containing hanging nodes

This example demonstrates how to create a mesh containing hanging nodes. By choosing a special mapping when defining coordinates, hanging nodes are detected and their degrees of freedom (including initial geometry) are mapped to the nodes of the edge of the element in which they hang.


The comfile run by this example is as follows:

#Example_11a Defining a mesh containing hanging nodes                        

FEM                              
FEM define parameters;r;example_1391;example #parameter set for 
#                                 !mesh degree of freedoms to solution 
#                                 !degree of freedoms mappinging

FEM define coordinates;r;;example #define non-standard mapping 
#                                 !for hanging nodes
FEM define node;r;;example        #position hanging node just inside the
#                                 !element edge on which it is to hang
FEM define base;r;;example
FEM define win
FEM draw node
FEM define element;r;;example  
FEM draw lines
FEM change node hanging node 5  #moves hanging node to the the nearest 
#                               !element edge. As well as interpolating
#                               !the geometry of the hanging node the 
#                               !derivatives are also interpolated
FEM draw lines
FEM update scale normalise      #Normalises the nodal derivatives and 
#                               !recalculates the arc lengths and 
#                               !scale factors
FEM draw lines
FEM









                                                                    

Additional testing commands:

fem list node

Files used by this example are:

Name                 Modified     Size

example_1391.com 20-Nov-2001 1.2k example_1391.ipbase 10-Apr-2000 1.5k example_1391.ipcoor 10-Apr-2000 976 example_1391.ipelem 10-Apr-2000 906 example_1391.ipnode 10-Apr-2000 5.0k example_1391.ippara 12-Nov-2002 5.9k test_output.com 10-Apr-2000 14

Download the entire example:

Name                           Modified     Size

examples_1_13_139_1391.tar.gz 18-Aug-2006 16k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:31 20160
cm-debugSuccessSat Mar 5 00:01:51 20160
mips-irix
cmSuccessSun Aug 19 01:22:22 20073
cm-debugSuccessWed Aug 15 01:23:44 20074
cm-debug-clear-mallocSuccessSat Aug 18 01:26:59 200711
cm-debug-clear-malloc7SuccessMon Aug 20 01:24:34 200711
cm64SuccessSun Aug 19 01:23:35 20073
cm64-debugSuccessTue Aug 21 01:18:42 20075
cm64-debug-clear-mallocSuccessThu Apr 1 10:10:01 20043
rs6000-aix
cmSuccessWed Mar 4 01:06:46 20091
cm-debugSuccessMon Mar 2 01:06:04 20091
cm64SuccessWed Mar 4 01:06:46 20090
cm64-debugSuccessTue Mar 3 01:11:33 20091
x86_64-linux
cmSuccessSun Mar 6 00:01:00 20160
cm-debugSuccessSat Mar 5 00:01:11 20160

Testing status by file:


Graphical output from this problem is given here.


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

Input last modified: Tue Nov 12 12:02:24 2002


CMISS Help / Examples / 1 / 13 / 139 / 1391