Define a PDE, solve it, and then test the solution.
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
You can use pdetest to solve a PDE. First, define the PDE.
>
|
|
| (10) |
Next, give an ansatz.
>
|
|
| (11) |
Use pdetest to simplify the PDE with regard to the ansatz above.
>
|
|
| (12) |
The ansatz above separated the variables, so the PDE can now be solved for F(x).
>
|
|
| (13) |
>
|
|
| (14) |
Now, build a (particular) solution to the PDE by substituting the result above in "ansatz".
>
|
|
| (15) |
>
|
|
| (16) |
Test solutions for PDE systems.
>
|
|
| (17) |
>
|
|
| (18) |
>
|
|
| (19) |
Consider the following PDE, boundary condition, and solution
>
|
|
| (20) |
>
|
|
| (21) |
>
|
|
| (22) |
You can test whether the sol solves pde using pdetest; the novelty is that you can now test whether it solves the boundary condition bc[1]
>
|
|
| (23) |
The boundary conditions can involve derivatives:
>
|
|
| (24) |
>
|
|
| (25) |