michael 2007-9-4 11:11
Moving boundaries
[size=2]I want to model, in 2-d, a rigid moving circle through a tube of 2-d Poiseuille flow. I have attached the code that I have written to try and accomplish this task. FlexPDE5 complains that a number I use inside of the boundaries section is not a constant. I realize FlexPDE5 may not be written to support nonconstant functions, but ideally I'd like FlexPDE5 to evaluate x0 at whatever time step it is on (it is only a function of time and as such always remains constant during any given time step) and use that constant to construct the boundary of my circle at that time step. How can I do this without calling FlexPDE5 from some other program? I want to use FlexPDE5's time integrator. In addition, I would love it if there was some way to make a condition which, when met, the time integration would stop (rather than the time integration having to be defined beforehand between two constants). Hopefully either FlexPDE5 can do this or can be made to do this. If FlexPDE5 can't do this yet, I imagine it would not be hard for them to be incorporated. [/size]
5e)Jr.w0e
EmZ.MSs
[code] { Fill in the following sections, or delete those that are unused.}
a$W9H7B9fv6xivj-B m
TITLE 'Traveling Cylinder '
:M
[#] A+UV
A)gK`Rd%M9k
SELECTr'L?|$sO eBQ
ngrid = 10
*`(_h!fQvV9]0k
VARIABLES
;a"|T?ENW `9lF
u(0.1) {standard stokes flow variables}
[ SGF4R~
v(0.01)
EHw0[jzV
p(1)X#G)B
PQ]wj
@O
*{ A)?m!@
SCALAR VARIABLES
M g"Cr2S
x0O&]_lS\y{
Y0v
u0 {horizontal velocity of cylinder which is immersed in the tube}9gLS+K?6y
v0 {vertical velocity of cylinder which is immersed in the tube}Vx6ixP.^^Q1pd
w0 {angular velocity of the cylinder}ou8b4K#lEMN ~+?
;h8vj ] fOmG!m(g
DEFINITIONS
1Sb;R;DT
mu = 1 {viscosity}"c!T%fNv
n
L = 20 {Length of tube}
|
O;@)BX/Q*w
r = 4 {"radius" of tube, across tube = 2r}7Fp1h2C9dZ@7V.Q
Q = 8 {total "volume" flux in tube (8 square length units per time unit) }