[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Getfem-users] Does getfem have the function of applying periodic bo
From: |
julien pommier |
Subject: |
Re: [Getfem-users] Does getfem have the function of applying periodic boundary condition? |
Date: |
Wed, 12 Apr 2006 11:31:46 +0200 |
User-agent: |
Debian Thunderbird 1.0.7 (X11/20051017) |
Shengli Xu wrote:
Dear getfem developers and users,
Can getfem apply the dof constraint function like U_i = U_j? U_i is
the master dof, U_j is the slave dof?
Yes, just use the getfem::mdbrick_constraint to impose U_i - U_j = 0 :
http://www-gmm.insa-toulouse.fr/getfem/getfemuser/getfemuser_20.html#id6
Your constraint matrix B will be a [ nc x nbd ] sparse matrix,
where nc is the number of constraints, and nbd is the number of dof of
the unknown U. Each row will contain a constraint, i.e.
B(i, :) = [0 ... 0 0 0 1 0 0 0 ... 0 -1 0 0 0 ... 0 0]
--
julien