All Questions
4 questions
2
votes
1
answer
849
views
Fastest algorithm for computing 3-D curl
I'm trying to write a section of code that computes the curl of a vector field numerically to second order with periodic boundary conditions. However, the algorithm I made is very slow and I'm ...
0
votes
1
answer
456
views
Numerical methods to solve function with restricted domain
Methods to solve(root finding) the function with the restricted domain.
Suppose to solve the function
$sin^{-1}(\sqrt{E_n/V}) +a*\sqrt{2mE_n/h^2}=n*\pi$
where
$E_n,V,a,m,h n$ were all positive.
...
5
votes
2
answers
3k
views
N body simulation in C#
I'm trying to implement an N body simulation in C# using either Runge Kutta 4 or Velocity Verlet integration algorithms.
Before I move to a bigger number of particles, I wanted to test the ...
6
votes
4
answers
860
views
Trying to simulate a 1-dimensional wave
I'm trying to make a simplified simulation of a 1-dimensional wave with a chain of harmonic oscillators. The differential equation for the position x[i] of the i-th oscillator (assuming equilibrium ...