1D Spherical symmetry Moving Boundary Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » 1D Spherical symmetry Moving Boundary « Previous Next »

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

Mark (everest20)
New member
Username: everest20

Post Number: 2
Registered: 01-2009
Posted on Monday, January 19, 2009 - 12:42 pm:   

Dear Mr Nelson!

Can you tell me what is wrong with my file?
I want to simulate moving bubble (spherically symmetric) in 1D. The calculation process begins, but it fails after some time. Why is that?

Everest

application/octet-stream1D-Sphere-MovingBoundary
1dSphereMB.pde (1.5 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 104
Registered: 07-2007
Posted on Monday, January 19, 2009 - 01:38 pm:   

You are holding the end nodes fixed in space while the interior nodes are moving with a constant velocity. This causes the end cells to collapse to zero volume at which point the polynomial approximations fail.
Top of pagePrevious messageNext messageBottom of page Link to this message

Mark (everest20)
Junior Member
Username: everest20

Post Number: 3
Registered: 01-2009
Posted on Friday, January 23, 2009 - 07:30 am:   

Thank You for the answer.

I've added "grid(r)" to the code to check your suggestion, and it seems to prove it.

My problem is that, the phenomenon I am dealing with is spherically symmetric, therefore I cannot move the left-boundary point, this is also why natural BC is prescrbed there.
I've tried to use the same velocity for the right-boundary point as for the interface (this is what I can eventually accept) and still the same error.

In this situation, would be so kind, and tell me if the problem presented here can be solved using FlexPDE?
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 107
Registered: 07-2007
Posted on Saturday, January 24, 2009 - 12:44 am:   

Now the left most cell is getting stretched until it can't fit a quadratic through the cell.

This problem will work much better if you use velocities for the cell movements. Describe just the key point motions and let the rest of the cells diffuse to some equilibrium.

I have attached a script that poses your problem that way. The right and left end points are fixed and the midpoint moves toward the right end. The rest of the nodes just diffuse to equilibrium.
application/octet-stream
1dSphereMB2.pde (1.8 k)

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