dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15959
[HG DOLFIN] Work on Expression in PyDOLFIN:
One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.
changeset: 7270:2ab66b92be80
tag: tip
user: "Johan Hake <hake@xxxxxxxxx>"
date: Tue Oct 06 10:59:24 2009 +0200
files: dolfin/swig/directors.i dolfin/swig/function_pre.i site-packages/dolfin/__init__.py site-packages/dolfin/compile_expressions.py site-packages/dolfin/compile_extension_module.py site-packages/dolfin/expression.py site-packages/dolfin/functionspace.py site-packages/dolfin/specialfunctions.py
description:
Work on Expression in PyDOLFIN:
Createing an Expression using all sorts of combinations,
all documented in the docstring, is now up and running in PyDOLFIN
Note: We now need to pass either a FunctionSpace or a ufl.FiniteElement using:
f = Expression("sin(x[0])",V=V)
or
f = Expression("sin(x[0])",element=V.ufl_element())
The FunctionSpace is not stored as it is not a finite element function,
only the ufl_element, which is needed to initialize the ufl.Function
... on to Function, unittests and demos...
changeset: 7269:d9d58265d4c8
user: "Johan Hake <hake@xxxxxxxxx>"
date: Tue Oct 06 08:12:46 2009 +0200
files: dolfin/function/Expression.cpp
description:
Small fix in value_dimension method
changeset: 7268:ee49461cd306
user: "Garth N. Wells <gnw20@xxxxxxxxx>"
date: Mon Oct 05 18:52:37 2009 +0100
files: demo/pde/elasticity/cpp/main.cpp dolfin/function/Constant.cpp dolfin/function/Constant.h
description:
Add convenience constructors to Constant (for vectors).
----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin
Follow ups