Example 341: 9x9 point mesh f=0 k11=1 k22=1


The comfile run by this example is as follows:

#Example_3411 Multigrid collocation solution of div(kGradu)=f
 
fem
fem define para;r;mg_square;example

fem define node;r;mg_square;example #defines 4 nodes
fem define base;r;;example          #defines two basis functions:
#                                   !  1) bilinear;
#                                   !  2) extended basis with 9*9 points
fem define element;r;;example       #defines 1 element
fem define fibre;r;;example
fem define element;r;;example fibre
fem define grid;r;;example
fem update grid geom
fem update grid metric level 1
fem group grid external as bdry
fem define equation;r;;example      #div(k.grad(u))=f
fem define material;r;;example      #f=0, k11=1, k22=1 def by grid pt
fem update grid material
fem define initial;r;;example       #boundary points =0
fem define solve;r;;example
fem solve
fem list initial
fem define window
fem draw lines
fem draw grid values

Additional testing commands:

fem list grid
fem list initial

Files used by this example are:

Name              Modified     Size

example_341.com 20-Nov-2001 893 mg_active.com 10-Apr-2000 1.0k mg_active.ipbase 10-Apr-2000 2.1k mg_active.ipelem 10-Apr-2000 390 mg_active.ipelfb 10-Apr-2000 229 mg_active.ipequa 26-May-2003 1.0k mg_active.ipfibr 30-Jan-2001 736 mg_active.ipinit 10-Apr-2000 386 mg_active.ipmate 10-Apr-2000 14k mg_active.ipnode 10-Apr-2000 857 mg_active.ipsolv 13-Apr-2007 1.1k mg_square.ipbase 10-Apr-2000 2.1k mg_square.ipelem 10-Apr-2000 390 mg_square.ipelfb 10-Apr-2000 229 mg_square.ipequa 26-May-2003 1.1k mg_square.ipfibr 30-Jan-2001 736 mg_square.ipgrid 06-Mar-2003 535 mg_square.ipinit 10-Apr-2000 376 mg_square.ipmate 10-Apr-2000 848 mg_square.ipnode 10-Apr-2000 857 mg_square.ippara 12-Nov-2002 5.9k mg_square.ipsolv 13-Apr-2007 1.2k test_output.com 10-Apr-2000 31

Download the entire example:

Name                      Modified     Size

examples_3_34_341.tar.gz 14-Apr-2007 8.6k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:51 20160
cm-debugSuccessSat Mar 5 00:02:07 20160
mips-irix
cmSuccessSun Aug 19 01:25:33 20073
cm-debugSuccessWed Aug 15 01:23:47 20075
cm-debug-clear-mallocSuccessSat Aug 18 01:27:51 200713
cm-debug-clear-malloc7SuccessMon Aug 20 01:26:35 200712
cm64SuccessSun Aug 19 01:23:13 20073
cm64-debugSuccessTue Aug 21 01:22:10 20076
cm64-debug-clear-mallocSuccessThu Apr 1 10:13:33 20043
rs6000-aix
cmSuccessWed Mar 4 01:07:08 20090
cm-debugSuccessMon Mar 2 01:06:55 20091
cm64SuccessWed Mar 4 01:07:08 20090
cm64-debugSuccessTue Mar 3 01:11:53 20091
x86_64-linux
cmSuccessSun Mar 6 00:01:02 20160
cm-debugSuccessSat Mar 5 00:01:13 20161

Testing status by file:


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

Input last modified: Fri Apr 13 10:32:47 2007


CMISS Help / Examples / 3 / 34 / 341