Moving boundaries. Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Moving boundaries. « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Jared Barber (jared_barber)
Member
Username: jared_barber

Post Number: 9
Registered: 01-2007
Posted on Saturday, June 30, 2007 - 05:01 am:   

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.

Let me know,

Jared
application/octet-streamTraveling Cylinder
Traveling_Cyl.pde (2.8 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 891
Registered: 06-2003
Posted on Wednesday, July 04, 2007 - 03:23 pm:   

The BOUNDARIES layout section describes what the INITIAL positions of the boundaries are, and these have to be reducible to concrete numbers at layout time.
You can't say that the position depends on what the position is.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration