← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Add function homogenize() for simple creation of homogeneous BCs from given BCs:

 

One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.

changeset:   7396:8f68b73f4c58
tag:         tip
user:        Anders Logg <logg@xxxxxxxxx>
date:        Thu Oct 22 13:04:18 2009 +0200
files:       ChangeLog dolfin/swig/fem_pre.i site-packages/dolfin/__init__.py
description:
Add function homogenize() for simple creation of homogeneous BCs from given BCs:

 homogeneous_bcs = homogenize(bcs)


changeset:   7395:54decc008503
user:        Anders Logg <logg@xxxxxxxxx>
date:        Thu Oct 22 11:37:34 2009 +0200
files:       dolfin/fem/BoundaryCondition.cpp dolfin/fem/BoundaryCondition.h dolfin/fem/DirichletBC.cpp dolfin/fem/DirichletBC.h dolfin/function/Function.h
description:
Add more fine-grained access for manipulating boundary conditions.

New constructor: bc = DirichletBC(V, g, markers)

New access methods:

  bc.function_space()
  bc.value()
  bc.markers()

Allows creation of new boundary conditions as modifications of
existing boundary conditions, such as homogeneous Dirichlet
conditions based on nonhomogeneous Dirichlet conditions.


changeset:   7394:53d2f39f3455
user:        Anders Logg <logg@xxxxxxxxx>
date:        Thu Oct 22 10:31:55 2009 +0200
files:       ChangeLog dolfin/fem/DirichletBC.cpp dolfin/fem/DirichletBC.h dolfin/swig/fem_pre.i
description:
Add copy constructor and possibility to change value for DirichletBC.
This should make it possible to take a boundary condition, create a copy
of it and change the value. Needed for adaptivity among other things.

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin