Example 223: Fibre fitting example

This problem involves fitting a fibre field to a set of measured fibre angles. The problem has 1 element with a bilinear basis (which is also used as the fibre field basis). 16 data points arranged in four rows of 4 data points are used to fit the field. The data fibre angles go up in steps of 20 degrees per row.

The comfile run by this example is as follows:

# Example_223 Fibre fitting test problem.
fem                                  #Set the FEM environment
fem define node;r;fibrefit;example   #Define the nodes for the mesh
fem define base;r;;example           #Define a bilinear basis function
fem define element;r;;example        #Define the elements for the mesh
fem define fibre;r;;example          #Read in the (initially) zero fibre
#                                    !  field
fem define element;r;;example fibre  #Define the elements for the fibres
fem define data;r;;example fibre     #Read in the data points with the
#                                    !  measured data angle
fem list data fibre                  #List the data
fem define window;c                  #Calculate the window size
fem draw line                        #Draw the mesh lines
fem draw node                        #Draw the nodes
fem draw fibre                       #Draw the initial fibre field
fem draw data                        #Draw the data locations
fem define xi;c internal             #Calculate the data pt Xi positions
fem define fit;r;;example fibre      #Define the fibre fitting problem
fem list node                        #List the nodes and the initial
#                                    !  fibre angles
fem fit                              #Fit the fibre angles to measured
#                                    !  fibre data.
fem list node                        #List the fitted fibre angles
fem draw fibre                       #Draw the fitted fibre field
fem draw data fibre rgb=red          #Draw the measured fibre field

Additional testing commands:

fem list node

Files used by this example are:

Name             Modified     Size

example_223.com 10-Apr-2000 1.5k fibrefit.ipbase 10-Apr-2000 1.1k fibrefit.ipdata 10-Apr-2000 2.1k fibrefit.ipelem 10-Apr-2000 351 fibrefit.ipelfb 10-Apr-2000 229 fibrefit.ipfibr 30-Jan-2001 753 fibrefit.ipfit 13-Apr-2007 1.6k fibrefit.ipnode 10-Apr-2000 905 fibrefit.ippara 12-Nov-2002 5.0k fibrefit.ipxi 10-Apr-2000 315 test_output.com 10-Apr-2000 14

Download the entire example:

Name                      Modified     Size

examples_2_22_223.tar.gz 14-Apr-2007 5.6k

Testing status by version:

StatusTestedReal time (s)
cmSuccessSun Mar 6 00:01:39 20160
cm-debugSuccessSat Mar 5 00:01:56 20160
cmSuccessSun Aug 19 01:24:08 20073
cm-debugSuccessWed Aug 15 01:21:42 20076
cm-debug-clear-mallocSuccessSat Aug 18 01:23:11 20079
cm-debug-clear-malloc7SuccessMon Aug 20 01:20:45 20079
cm64SuccessSun Aug 19 01:22:26 20073
cm64-debugSuccessTue Aug 21 01:18:46 20076
cm64-debug-clear-mallocSuccessThu Apr 1 10:11:58 20043
cmSuccessWed Mar 4 01:06:52 20091
cm-debugSuccessMon Mar 2 01:06:15 20091
cm64SuccessWed Mar 4 01:06:52 20091
cm64-debugSuccessTue Mar 3 01:11:36 20091
cmSuccessSun Mar 6 00:01:01 20161
cm-debugSuccessSat Mar 5 00:01:11 20160

Testing status by file:

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

Input last modified: Fri Apr 13 10:31:14 2007

CMISS Help / Examples / 2 / 22 / 223