[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ff3d-users] How to define a moving boundary?
From: |
Stephane Del Pino |
Subject: |
Re: [ff3d-users] How to define a moving boundary? |
Date: |
Thu, 29 Nov 2007 01:16:07 +0100 |
User-agent: |
KMail/1.9.7 |
Dear Hao.
There is no problem to define a moving mesh: for instance you can do:
-----------------
vector a = (0,0,0);
vector b = (10,1,1);
vector n = (10,2,2);
mesh m = structured(n,a,b);
double dt = 0.2;
double t = 0;
for (double i=0; i<10; ++i) {
save(vtk,"mesh.00".i,m);
t = t+dt;
a = a + (sqrt(t),0,0);
m = structured(n,a,b);
}
-----------------
Does this answers your question?
Best regards,
Stéphane.