cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Does pdesolve assume boundary conditions when they are missing?

HarveyHensley
12-Amethyst

Does pdesolve assume boundary conditions when they are missing?

I was working on a problem in another discussion and I noticed something strange about pdesolve: it appears to assume a boundary condition.

The figure below shows the same equation for a fixed bed reactor solved with two sets of boundary conditions. Because the equation is second order in x, there should be two b.c. on x. The solution on the right for c2 only has one, yet the results are nearly identical to the c solution on the left.

pdesolve_boundary_conditions.png

If I change the outlet derivative b.c. for the c system, the results do change. This implies that the second boundary condition is active if supplied.

Also, I have changed the systems so that the first b.c. for both is merely the concentration at x=0. Both systems get solutions that are nearly identical again.

Can anyone confirm my deduction that pdesolve is assuming a missing b.c.?

2 REPLIES 2

More strange behavior. It looks like pdesolve will ignore a second boundary condition at the inlet in favor of its assumed bc at the exit.

The MC15 file is attached with the values show in this example.

pdesolve_2.png

I've found out that pdesolve doesn't discriminate regarding missing b.c.: it set the inlet dc/dz=0 when I had set an exit condition. That makes sense, but I wanted to cover all cases. The supplied missing b.c. is always the derivative=0.

My investigation has convinced me that pdesolve is supplying the missing b.c. I think it would be nice if the documentation mentioned this fact. The documentation in the help file is shown below. In actual operation, pdesolve doesn't allow one boundary to have both b.c. Also, it doesn't give an error when one b.c. is missing.pdesolve_bc.png

I suppose this is all meaningless unless a pdesolve replacement appears in Prime in the future.

Announcements

Top Tags