Recent content by Rapier

  1. Rapier

    Quantum Theory of Earth Satellite Analogy to Bohr Model

    Oh, that does look more promising. Let me give it a stab.
  2. Rapier

    Quantum Theory of Earth Satellite Analogy to Bohr Model

    I'm not sure what to use for R then because my definition of R includes the mass of an electron and the charge. I can see replacing the mass of an electron with the mass of my satellite, but then what do I do with the charge? I tried to analyse the units to come up with a value but I got...
  3. Rapier

    Quantum Theory of Earth Satellite Analogy to Bohr Model

    Problem: In analogy to the Bohr Theory of the hydrogen atom, develop a quantum theory of Earth satellites, obtaining expressions for the orbit radius (r) and the energy (E) in terms of the quantum number (n) and the other relevant parameters. A satellite of mass 1000 kg is in a circular orbit of...
  4. Rapier

    Transforming Random Walk Steps into Directional Movement

    Mark44, Duh! That might have been helpful wouldn't it? There are plenty of fall-back methods, but I was trying to do it without a condition statement of any kind (I should have said that but I spent 5 hours in lab yesterday and I was exhausted. Gianni-F, YOU ARE MY HERO! That is ridiculously...
  5. Rapier

    Transforming Random Walk Steps into Directional Movement

    I've continued to tinker and just by using the negative function (-1^number) I can get: n=0, v = +1 n=1, v = -1 n=2, v = +1 n=3, v = -1 n=4, v = +1 If I could get just a SINGLE one of those to be zero, that would do it. I thought about doing -x,0,+x,-y,0,+y but that gives 0 a 1/3 probability...
  6. Rapier

    Transforming Random Walk Steps into Directional Movement

    Homework Statement The problem is relatively simple. I am modelling mass diffusion, and that's going well, but she has offered extra credit if we can write the problem without using any if-statements. In a clutch my plan is fall back on a Case Statement and pull barracks-lawyer and insist...
  7. Rapier

    Crank-Nicolson Method: Solving Homework Equations

    These are the same things I've been looking at. Let's just go ahead and assume for future reference that I know how to Google. Googling solutions is a lot easier than typing all of this up. While I may not have specifically and explicitly said so in my initial post, the "I've been doing quite...
  8. Rapier

    Crank-Nicolson Method: Solving Homework Equations

    With all due respect, saying "Google it" isn't exactly helpful. I have been Googling and while I still am not positive, I believe that my issue was that I was expecting a PDE to actually have some kind of equation at the base. I am getting the impression that (at least in this case) that isn't...
  9. Rapier

    Crank-Nicolson Method: Solving Homework Equations

    Homework Statement So I'm back to my wonderful computational physics course after a brief hiatus and once again, I am teaching myself the material. This unit we are working on some thermodynamics. We've just used the "Leap Frog" method to determine heat transfer of a 100k bar with both ends...
  10. Rapier

    Numerical Integration for Magnetic Field of a Loop of Wire

    n is the number of divisions for the trapezoidal rule and in this case, 20.
  11. Rapier

    Numerical Integration for Magnetic Field of a Loop of Wire

    That would be nice, unfortunately it's a computational physics class and writing the code is kind of the entire point. 8P
  12. Rapier

    Numerical Integration for Magnetic Field of a Loop of Wire

    z is in the loop not for the purpose of integration, but so that I have an array for the axis range. This projects tend to get messy as I started by adapting the trapezoidal integration code (which integrated a sin function) to calculate the magnetic field over a straight wire. Then I adapted...
  13. Rapier

    Numerical Integration for Magnetic Field of a Loop of Wire

    For starters, thanks for your response. My Z axis is from the center of the loop straight up so because of symmetry I only have a z component for the magnetic field at point X (which is on the z axis). I did realize you were correct in that I needed another radius term. Maybe it's just...
  14. Rapier

    Numerical Integration for Magnetic Field of a Loop of Wire

    Homework Statement Calculate the magnetic field of a current loop. Compare your numerical results with exact solution above the center of the loop. Investigate the effect of the grid size based on this comparison. Homework Equations dB = u0*I/4pi * (dL * R) / (R^2 + Z^2)^3/2 Bz = u0*I*R^2/ (2...
  15. Rapier

    Root Plotting 2d-Array in Histogram

    I have some good news to report. My backup plan was to take my data for quadrant 1 and create another array and propagate the data to the other quadrants. That worked. There was still a bug or two that needed worked out and I had to tinker with my bounds to get it exactly right (I initially...
Back
Top