← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Add demo for periodic BCs and more:

 

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

changeset:   3308:eaed62cb8722ff7a577f19eb8c2947c8fcc7c9af
tag:         tip
user:        "Anders Logg <logg@xxxxxxxxx>"
date:        Wed Jul 11 19:21:55 2007 +0200
files:       ChangeLog doc/manual/chapters/nonlinearsolver.tex doc/manual/chapters/quickstart.tex doc/manual/dolfin-user-manual.pdf src/bench/fem/convergence/main.cpp src/demo/nls/nonlinearpoisson/main.cpp src/demo/pde/convection-diffusion/main.cpp src/demo/pde/elasticity/main.cpp src/demo/pde/nonlinear-poisson/main.cpp src/demo/pde/periodic/Makefile src/demo/pde/periodic/Poisson.form src/demo/pde/periodic/Poisson.h src/demo/pde/periodic/main.cpp src/demo/pde/poisson/main.cpp src/demo/pde/stokes/stabilized/main.cpp src/demo/pde/stokes/taylor-hood/main.cpp src/kernel/fem/BoundaryCondition.cpp src/kernel/fem/DirichletBC.cpp src/kernel/fem/Makefile.am src/kernel/fem/Makefile.in src/kernel/fem/PeriodicBC.cpp src/kernel/fem/PeriodicBoundaryCondition.cpp src/kernel/fem/dolfin/BoundaryCondition.h src/kernel/fem/dolfin/DirichletBC.h src/kernel/fem/dolfin/Makefile.am src/kernel/fem/dolfin/Makefile.in src/kernel/fem/dolfin/PeriodicBC.h src/kernel/fem/dolfin/PeriodicBoundaryCondition.h src/kernel/fem/dolfin/dolfin_fem.h src/pydolfin/dolfin_headers.h
description:
Add demo for periodic BCs and more:

 - Name change: BoundaryCondition --> DirichletBC
 - Name change: PeriodicBoundaryConditin --> PeriodicBC
 - Class BoundaryCondition common base class
 - Works now with LinearPDE
 - Demo in src/demo/pde/periodic


changeset:   3307:2a2add9b342ab3827d8e12d48674f503e2c763b4
user:        "Garth N. Wells <g.n.wells@xxxxxxxxxx>"
date:        Wed Jul 11 12:08:44 2007 +0200
files:       src/kernel/la/dolfin/KrylovSolver.h src/kernel/la/dolfin/LUSolver.h src/kernel/la/dolfin/Matrix.h src/kernel/la/dolfin/Vector.h
description:
Inline functions in new la interface.


changeset:   3306:c70033cb881cb98ef8f177ebf0cb95348de96aa7
user:        "Anders Logg <logg@xxxxxxxxx>"
date:        Mon Jul 09 19:24:50 2007 +0200
files:       Makefile.in aclocal.m4 configure src/Makefile.in src/bench/Makefile.in src/bench/fem/Makefile.in src/bench/la/Makefile.in src/bench/ode/Makefile.in src/demo/Makefile.in src/greeting/Makefile.in src/kernel/Makefile.in src/kernel/common/Makefile.in src/kernel/common/dolfin/Makefile.in src/kernel/elements/Makefile.in src/kernel/elements/dolfin/Makefile.in src/kernel/fem/BoundaryCondition.cpp src/kernel/fem/Makefile.am src/kernel/fem/Makefile.in src/kernel/fem/PeriodicBoundaryCondition.cpp src/kernel/fem/dolfin/BoundaryCondition.h src/kernel/fem/dolfin/Makefile.am src/kernel/fem/dolfin/Makefile.in src/kernel/fem/dolfin/PeriodicBoundaryCondition.h src/kernel/fem/dolfin/dolfin_fem.h src/kernel/function/Makefile.in src/kernel/function/dolfin/Makefile.in src/kernel/graph/Makefile.in src/kernel/graph/dolfin/Makefile.in src/kernel/io/Makefile.in src/kernel/io/dolfin/Makefile.in src/kernel/la/Makefile.in src/kernel/la/dolfin/Makefile.in src/kernel/log/Makefile.in src/kernel/log/dolfin/Makefile.in src/kernel/main/Makefile.in src/kernel/main/dolfin/Makefile.in src/kernel/math/Makefile.in src/kernel/math/dolfin/Makefile.in src/kernel/mesh/Makefile.in src/kernel/mesh/SubDomain.cpp src/kernel/mesh/dolfin/Makefile.in src/kernel/mesh/dolfin/SubDomain.h src/kernel/mf/Makefile.in src/kernel/mf/dolfin/Makefile.in src/kernel/nls/Makefile.in src/kernel/nls/dolfin/Makefile.in src/kernel/ode/Makefile.in src/kernel/ode/dolfin/Makefile.in src/kernel/parameter/Makefile.in src/kernel/parameter/dolfin/Makefile.in src/kernel/pde/Makefile.in src/kernel/pde/dolfin/Makefile.in src/kernel/plot/Makefile.in src/kernel/plot/dolfin/Makefile.in src/kernel/quadrature/Makefile.in src/kernel/quadrature/dolfin/Makefile.in src/lib/Makefile.in src/pydolfin/Makefile.in src/test/Makefile.in src/utils/Makefile.in src/utils/convert/Makefile.in src/utils/inp2dx/Makefile.in src/utils/swig/Makefile.in
description:
Add support for setting periodic boundary conditions.

To set a periodic boundary condition, specify a pair of domains
G and H by a SubDomain. The inside() function should specify the
points of G and the map() function should specify a mapping F : H --> G.

Then create a PeriodicBoundaryCondition and apply() it to the linear system.

Bugs/features:

  1. Only works for scalar subsystems, so it needs to be done once for
  each subsystem of a vector function.

  2. Setting the entries in the matrix can perhaps be optimized.

  3. PeriodicBoundaryCondition is not a subclass of BoundaryCondition,
  so it does not work to give a PeriodicBoundaryCondition as argument
  to LinearPDE.

To fix 3, should we rename BoundaryCondition --> DirichletBC
and have PeriodicBC and DirichletBC as subclasses of BoundaryCondition?

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