Example ed1: 2D potential domain solution

This example demonstrates potential domain solutions in two dimensions on a circular BEM mesh solving Laplace's equation with an analytic solution


The comfile run by this example is as follows:

#
# Created by Martin Buist
# August 2001
#

if( !$example ) {
  $example = ".";
}

fem define para;r;$example/bemcircle
fem define regi;r;$example/bemcircle
fem define node;r;$example/bemcircle reg 1
fem define node;r;$example/test reg 2
fem define base;r;$example/test
fem define elem;r;$example/bemcircle reg 1
fem define elem;r;$example/test reg 2
fem define grid;r;$example/test reg 2
fem update grid geometry reg 2

fem define equa;r;$example/bemcircle reg 1 cl 1 lock
fem define equa;r;$example/test reg 2 cl 2 lock
fem define mate;r;$example/bemcircle reg 1
fem define anal;r;$example/bemcircle reg 1
fem define init;g reg 1
fem define solv;r;$example/bemcircle reg 1

# Solve the BEM problem
fem solve reg 1
# Domain solution calculation - normal
fem eval solu grid elem 31 cpcutoff 0.7 potential
fem export elem;test-debug as test reg 2 cl 2 field iy 1

# Domain solution calculation - optimised with adaptive integration
fem eval solu grid elem 31 opti cpcutoff 0.7 potential
fem export elem;test-opti as test reg 2 cl 2 field iy 1
fem export node;test as test reg 2
fem export elem;test as test reg 2

Additional testing commands:



Files used by this example are:

Name               Modified     Size

example_ed1.com 04-Sep-2001 1.1k bemcircle.ipanal 04-Sep-2001 492 bemcircle.ipelem 04-Sep-2001 4.1k bemcircle.ipequa 26-May-2003 1.2k bemcircle.ipmate 04-Sep-2001 54 bemcircle.ipnode 04-Sep-2001 5.1k bemcircle.ippara 12-Nov-2002 5.9k bemcircle.ipregi 04-Sep-2001 93 bemcircle.ipsolv 13-Apr-2007 1.4k streamlines.com 04-Sep-2001 27k test-debug.exelem 04-Sep-2001 6.1k test-opti.exelem 04-Sep-2001 6.1k test.exelem 04-Sep-2001 1.4k test.exnode 04-Sep-2001 481 test.ipbase 04-Sep-2001 2.2k test.ipelem 04-Sep-2001 341 test.ipequa 26-May-2003 1.2k test.ipgrid 06-Mar-2003 538 test.ipnode 04-Sep-2001 805 test_output.com 04-Sep-2001 0

Download the entire example:

Name                      Modified     Size

examples_e_ed_ed1.tar.gz 14-Apr-2007 14k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:02:48 20160
cm-debugSuccessSat Mar 5 00:04:49 20161
mips-irix
cmSuccessSun Aug 19 01:28:53 20074
cm-debugSuccessWed Aug 15 01:29:37 200710
cm-debug-clear-mallocSuccessSat Aug 18 01:31:12 200713
cm-debug-clear-malloc7SuccessMon Aug 20 01:28:40 200713
cm64SuccessSun Aug 19 01:28:57 20073
cm64-debugSuccessTue Aug 21 01:25:19 200711
cm64-debug-clear-mallocSuccessThu Apr 1 12:28:26 20045
rs6000-aix
cmSuccessWed Mar 4 01:08:28 20091
cm-debugSuccessMon Mar 2 01:07:36 20092
cm64SuccessWed Mar 4 01:08:28 20091
cm64-debugSuccessTue Mar 3 01:12:20 20092
x86_64-linux
cmSuccessSun Mar 6 00:01:08 20160
cm-debugSuccessSat Mar 5 00:01:38 20160

Testing status by file:


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

Input last modified: Fri Apr 13 10:43:11 2007


CMISS Help / Examples / e / ed / ed1