Example e81: Fitting and Comparing Signals

This example creates a full potential field at the nodes. By fitting this signal, the example attempts to recreate the full field. The degreee of success is determined by comparing the two signals. The effect of using linear basis functions and cubic-hermite basis function to fit the signal are compared.

This example tests ...


The comfile run by this example is as follows:

# Example e81 
# -----------
#


#----------------------------------------------------------#
#
# Fitting and comparing signals
#
#----------------------------------------------------------#


fem def para;r;torsoslice;example
fem def regi;r;torsoslice;example
fem def node;r;;example region 1..2
fem def base;r;;example
fem def elem;r;;example region 1..2


#
#----------------------------#
# Setup equations
#----------------------------#
#
fem def equa;r;;example region 1..2
fem def mate;r;;example region 1..2
fem def init;r;;example region 1..2
fem def sour;r;;example region 2
fem def coup;r;;example
fem def solv;r;torsoslice;example coupled region 1..2

Additional testing commands:

fem solve coupled
fem eva elec;slice his slice fr nod ele 46..57 cou as reg 1..2


#
#----------------------------#
# Fitting with cubic hermite 
#  basis fns
#----------------------------#
#
fem def fiel;r;slice_cub;example region 1
fem def elem;r;slice_cub;example field region 1


fem def fit;r;slice_cub;example signal region 1 class 2
fem fit signal ascii region 1 class 2
fem eva ele;fitted_cub his fitted_cub from nod elec 46..57 coup asc reg 1 using fit class 2


fem comp sig mast slice comp fitted_cub elec 1..12 asc reg 1 tim 0.1
fem comp sig mast slice comp fitted_cub elec 1..12 asc reg 1 tim 0.2
fem comp sig mast slice comp fitted_cub elec 1..12 asc reg 1 st 0.1 end 0.3
fem comp sig mast slice comp fitted_cub elec 1..12 asc reg 1 inte


#
#----------------------------#
# Fitting with linear basis fns
#----------------------------#
#
fem def fiel;r;slice_lin;example region 1
fem def elem;r;slice_lin;example field region 1


fem def fit;r;slice_lin;example signal region 1 class 3
fem fit signal ascii region 1 class 3
fem eva ele;fitted_lin his fitted_lin from nod elec 46..57 coup asc reg 1 using fit class 3


fem comp sig mast slice comp fitted_lin elec 1..12 asc reg 1 tim 0.1
fem comp sig mast slice comp fitted_lin elec 1..12 asc reg 1 tim 0.2
fem comp sig mast slice comp fitted_lin elec 1..12 asc reg 1 st 0.1 end 0.3
fem comp sig mast slice comp fitted_lin elec 1..12 asc reg 1 inte


#
#----------------------------#
# Fitting with spline 
#----------------------------#
#
fem def node;r;spline;example reg 3
fem def elem;r;spline;example reg 3
fem def fiel;r;slice_lin;example region 1
fem def elem;r;slice_lin;example field region 1


fem def data;r;spline;example reg 3
fem def xi;r;spline;example   reg 3
fem def fit;r;spline;example spline class 4
fem fit signal spline offset_fit 6 electrodes_per_row 12 rows 1 mesh_offset 66 class 4
fem eva ele;fitted_spline his fitted_spline from nod elec 46..57 coup asc reg 1 using fit class 4
fem comp sig mast slice comp fitted_spline elec 1..12 asc reg 1 inte

Files used by this example are:

Name                   Modified     Size

example_e81.com 20-Nov-2001 662 slice_cub.ipelfd 10-Apr-2000 2.5k slice_cub.ipfiel 10-Apr-2000 2.8k slice_cub.ipfit 13-Apr-2007 2.1k slice_lin.ipelfd 10-Apr-2000 2.5k slice_lin.ipfiel 10-Apr-2000 1.7k slice_lin.ipfit 13-Apr-2007 1.9k spline.ipdata 10-Apr-2000 514 spline.ipelem 10-Apr-2000 3.6k spline.ipfit 10-Apr-2000 513 spline.ipnode 10-Apr-2000 2.2k spline.ipxi 10-Apr-2000 432 test_output.com 20-Nov-2001 2.0k torsoslice.ipbase 10-Apr-2000 1.9k torsoslice.ipcoup 21-Aug-2002 464 torsoslice.ipcoup.old 10-Apr-2000 413 torsoslice.ipexpo 10-Apr-2000 684 torsoslice.ipmate 10-Apr-2000 81 torsoslice.ippara 26-Feb-2003 5.9k torsoslice.ipregi 10-Apr-2000 93 torsoslice.ipsour 11-Jun-2002 78k torsoslice.irelem 10-Apr-2000 6.8k torsoslice.irequa 26-May-2003 2.3k torsoslice.irinit 10-Apr-2000 8.7k torsoslice.irmate 10-Apr-2000 155 torsoslice.irnode 10-Apr-2000 7.2k torsoslice.irsolv 13-Apr-2007 2.2k

Download the entire example:

Name                      Modified     Size

examples_e_e8_e81.tar.gz 14-Apr-2007 22k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:02:35 20161
cm-debugSuccessSat Mar 5 00:04:55 20161
mips-irix
cmSuccessSun Aug 19 01:43:08 200711
cm-debugSuccessWed Aug 15 01:31:52 200718
cm-debug-clear-mallocSuccessSat Aug 18 01:38:44 200723
cm-debug-clear-malloc7SuccessMon Aug 20 01:35:07 200722
cm64SuccessSun Aug 19 01:42:56 200713
cm64-debugSuccessTue Aug 21 01:30:17 200719
cm64-debug-clear-mallocSuccessThu Apr 1 12:10:42 20048
rs6000-aix
cmSuccessWed Mar 4 01:09:03 20092
cm-debugSuccessMon Mar 2 01:08:00 20094
cm64SuccessWed Mar 4 01:09:22 20092
cm64-debugSuccessTue Mar 3 01:13:18 20094
x86_64-linux
cmSuccessSun Mar 6 00:01:07 20161
cm-debugSuccessSat Mar 5 00:01:38 20160

Testing status by file:


Html last generated: Sun Mar 6 05:51:28 2016

Input last modified: Fri Apr 13 10:42:05 2007


CMISS Help / Examples / e / e8 / e81