[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ff3d-users] How to get surface mesh of different lays
From: |
Robert Li |
Subject: |
[ff3d-users] How to get surface mesh of different lays |
Date: |
Thu, 22 Jan 2004 14:47:36 -0800 (PST) |
Dear Stephane Del Pino,
Thank you very much. You are so kindness!
I want to use a model which is made of three lays.
I must get surface mesh of different lays, in order to
set different boundary conditions at different faces.
It was said we can use "mesh
s1=surface(<1,0,0>,O1,M);" on Dec. 26,2003 ff3d-users
Archives. However, I failed. Because I can not use
above statement at all according parse.ff.yy . We can
only use "mesh s1=surface(O1,M);".
Therefore, how to set different boundary conditions at
every face?
Robert
REF<<<<<<<<<<<<<<<<input file
vector n = (20, 20, 20);
vertex a = (-2, -2, -5);
vertex b = (2, 2, 1);
mesh M = structured(n,a,b);
scene S = pov(".\\data\\TT.pov"); // the pov-ray file
for the geometry
domain O = domain(S, inside(<1,0,0>) or
inside(<0,1,0>) or inside(<0,0,1>));
mesh s1=surface(<1,0,0>,O, M);//<<<<Error ???
mesh s2=surface(<0,1,0>,O, M);//<<<<Error ???
mesh s3=surface(<0,0,1>,O, M);//<<<<Error ???
solve(u) in M //FEM
{
pde(u)
- div(grad(u)) = 0;
u = -1 on s1 zmax;
u = 0 on s1 zmin;
u = 1 on s3 zmax;
u = 2 on s3 zmin;
};
save(medit,"TT",u,M,dos);
save(medit,"TT",M,dos);
<<<<<<<POV file
box { <-2, -2, -1>, < 2, 2, 1 > pigment { color
rgb <1,0,0> } }
box { <-2, -2, -3>, < 2, 2, -1 > pigment {
color rgb <0,1,0> } }
box { <-2, -2, -5>, < 2, 2, -3 > pigment {
color rgb <0,0,1> } }
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/