[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ff3d-users] applying different BC's on the same domain
From: |
Stephane Del Pino |
Subject: |
Re: [ff3d-users] applying different BC's on the same domain |
Date: |
Fri, 18 Dec 2009 14:16:03 +0100 |
User-agent: |
KMail/1.12.4 (Linux/2.6.32-trunk-amd64; KDE/4.3.4; x86_64; ; ) |
Hello.
for instance to solve a Laplace problem in a unit square you can write
-------------------------------
vector n = (10,10,10);
vector a = (0,0,0);
vector b = (1,1,1);
mesh M = structured(n,a,b);
solve(u) in M
{
pde(u)
-div(grad(u))=1;
u = 0 on M xmin;
}
-------------------------------
Homogeneous Neumann conditions are automatically taken for the other
boundaries.
Best regards,
Stephane.