Mercurial > fem-fenics-eugenio
changeset 64:55ffedcc59d4
First incomplete version of the fem-fenics pkg
* fem-fenics.tar.gz: install the fem-fenics pkg just typing
pkg install "fem-fenics.tar.gz"
* test_*.m: now load the fem-fenics pkg
author | gedeone-octave <marco.vassallo@outlook.com> |
---|---|
date | Fri, 26 Jul 2013 11:48:21 +0200 |
parents | 3231f888f25d |
children | 1320dac5bae8 |
files | example/test_biharmonic.m example/test_heat.m example/test_laplace.m |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/example/test_biharmonic.m Fri Jul 26 11:29:29 2013 +0200 +++ b/example/test_biharmonic.m Fri Jul 26 11:48:21 2013 +0200 @@ -4,6 +4,7 @@ # initialize the environment and create function related to the problem # defined inside Biharmonic.ufl pkg load msh +pkg load fem-fenics fem_init_env (); problem = 'Biharmonic'; fem_create_fs (problem); @@ -42,7 +43,7 @@ u = A \ b; -func = fem_func (V, u) +func = fem_func ('u', V, u); fem_plot (func);
--- a/example/test_heat.m Fri Jul 26 11:29:29 2013 +0200 +++ b/example/test_heat.m Fri Jul 26 11:48:21 2013 +0200 @@ -1,6 +1,7 @@ # We follow the evolutionary heat equation specified in the file Heat.ufl pkg load msh +pkg load fem-fenics fem_init_env (); problem = 'Heat'; fem_create_fs (problem);
--- a/example/test_laplace.m Fri Jul 26 11:29:29 2013 +0200 +++ b/example/test_laplace.m Fri Jul 26 11:48:21 2013 +0200 @@ -51,7 +51,7 @@ # fem_func create a function object which can be plotted, saved or # used to set the coefficient of the lhs/rhs -func = fem_func ('u', V, u) +func = fem_func ('u', V, u); fem_plot (func);