PDE Iteration with cross product

In summary, Quakerbrat is seeking guidance on how to iterate the Buttke scheme in MATLAB. The scheme, which approximates the Biot-Savart Law, involves a cross product and the PDE and iteration equations are provided. Quakerbrat shares their current code and asks for help with the cross product part.
  • #1
Quakerbrat
3
0
This may be more of a MATLAB question, and if so, I do apologize for posting this in the wrong place.

I am doing a project on the Buttke scheme, which is a numerical approximation to the Biot-Savart Law. I am almost finished, but I am having trouble writing the code.

The scheme is Crank-Nicolson but it involves a cross product.

Here is the PDE:

$\displaystyle{\frac{\partial \mathbf{X}}(s,t){\partial t} = \textbf{X}(s,t) \times \frac{\partial ^2 \mathbf{X}(s,t)}{\partial s^2}}$

Here is the iteration:

$\displaystyle{\Big(\mathbf{X}_j^{n+1} - \mathbf{X}_j^{n}\Big) = \frac{\Delta t}{4(\Delta s)^2}\Big(\mathbf{X}_j^{n+1} + \mathbf{X}_j^{n}\Big) \times \Big(\mathbf{X}_{i+1}^{n} + \mathbf{X}_{i-1}^{n}+ \mathbf{X}_{i+1}^{n+1} + \mathbf{X}_{i-1}^{n+1} \Big)}$

If anyone could give me a hint about how to begin this iteration within a loop, that would be extremely helpful. I have done iterations before, but for some reason the cross product is really throwing me off.

Here is what I have (using the fact that in R2 cross products are really determinants)

r = dt/4*ds^2;

%Calculate Iterative Sequence
for j = 2:dt
for k = 1:tmax
A(k,j) = X(k+1,j)+X(k,j)
B(k,j) = X(k+1,j-1)+X(k,j-1)+X(k+1,j+1)+X(k,j+1)
Y(k+2,j) = X(k,j)+r*det(A,B);
end
end

I really don't need someone to write anything for me, just give me some guidance as to how this could be iterated. I feel like I am missing something simple.

Thanks so much,
Quakerbrat
 
Physics news on Phys.org
  • #2
Sorry - I forgot to put in the .tex.

This may be more of a MATLAB question, and if so, I do apologize for posting this in the wrong place.

I am doing a project on the Buttke scheme, which is a numerical approximation to the Biot-Savart Law. I am almost finished, but I am having trouble writing the code.

The scheme is Crank-Nicolson but it involves a cross product.

Here is the PDE:

[tex]
$\displaystyle{\frac{\partial \mathbf{X}}(s,t){\partial t} = \textbf{X}(s,t) \times \frac{\partial ^2 \mathbf{X}(s,t)}{\partial s^2}}$
[/tex]

Here is the iteration:
[tex]
$\displaystyle{\Big(\mathbf{X}_j^{n+1} - \mathbf{X}_j^{n}\Big) = \frac{\Delta t}{4(\Delta s)^2}\Big(\mathbf{X}_j^{n+1} + \mathbf{X}_j^{n}\Big) \times \Big(\mathbf{X}_{i+1}^{n} + \mathbf{X}_{i-1}^{n}+ \mathbf{X}_{i+1}^{n+1} + \mathbf{X}_{i-1}^{n+1} \Big)}$
[/tex]

If anyone could give me a hint about how to begin this iteration within a loop, that would be extremely helpful. I have done iterations before, but for some reason the cross product is really throwing me off.

Here is what I have (using the fact that in R2 cross products are really determinants)

r = dt/4*ds^2;

%Calculate Iterative Sequence
for j = 2:dt
for k = 1:tmax
A(k,j) = X(k+1,j)+X(k,j)
B(k,j) = X(k+1,j-1)+X(k,j-1)+X(k+1,j+1)+X(k,j+1)
Y(k+2,j) = X(k,j)+r*det(A,B);
end
end

I really don't need someone to write anything for me, just give me some guidance as to how this could be iterated. I feel like I am missing something simple.

Thanks so much,
Quakerbrat
 
Last edited:

FAQ: PDE Iteration with cross product

What is PDE Iteration with cross product?

PDE (Partial Differential Equation) Iteration with cross product is a method used to solve complex mathematical equations that involve multiple variables and their derivatives. It involves using the cross product operator to simplify the equations and make them easier to solve.

How does PDE Iteration with cross product work?

The method works by taking the original PDE and breaking it down into smaller, simpler equations using the cross product operator. These smaller equations can then be solved individually, and the solutions can be combined to solve the original PDE.

What are the benefits of using PDE Iteration with cross product?

One of the main benefits of this method is that it can simplify complex PDEs and make them easier to solve. It can also help to reduce the computational time and resources needed to find a solution, making it a more efficient method.

Are there any limitations to PDE Iteration with cross product?

While this method can be effective in solving some PDEs, it may not work for all types of equations. Additionally, it may not always provide the most accurate solution, as it involves approximations and simplifications.

How is PDE Iteration with cross product used in scientific research?

This method is commonly used in fields such as physics, engineering, and mathematics to solve complex equations that arise in scientific research. It can help researchers to better understand and model physical systems and phenomena.

Similar threads

Replies
3
Views
1K
Replies
0
Views
747
Replies
8
Views
4K
Replies
5
Views
851
Replies
1
Views
2K
Replies
1
Views
1K
Replies
3
Views
2K
Replies
3
Views
2K
Back
Top