Skip to main content

All Questions

0 votes
0 answers
30 views

Covariant Euler-Lagrange Computation - Mathematica

Does anybody know of a software (or software package) that can solve the Euler-Lagrange equations for a manifestly-covariant field Lagrangian density? Mathematica has a "Variational Methods" ...
Dirac's Cat's user avatar
0 votes
1 answer
124 views

Issues with Simulating the Orbits of Mars and Earth using MATLAB and Runge-Kutta Method

I'm trying to simulate the orbits of Mars and Earth in MATLAB using the 4th order Runge-Kutta method for numerical integration. However, the orbits appear as straight lines rather than the expected ...
Javadkhan's user avatar
0 votes
1 answer
42 views

1 dimensional simulation of gravity fails

In 1D the force of gravity does not diminish with distance however here I use 1D to mean the point mass only moves in a line in 3D space, with the other mass stationary at the origin. I started by ...
user avatar
2 votes
1 answer
84 views

Best approach to simulating dynamics on networks

I have been recently getting into the field of various processes on networks. For example, stochastic processes like percolation, Ising models, various statistical-physics models; or deterministic ...
YeatTheorem's user avatar
1 vote
1 answer
228 views

Issue in implementing a cloth simulation using verlet integration

I am trying to implement a cloth simulation in c++ using verlet integration and I'm getting some odd issues that I can't seem to explain, the points in the cloth seem to fly around and have weird ...
סתיו פארן's user avatar
0 votes
0 answers
38 views

Geant4, simulate photon emitted into lead

I have just learned Geant4 and recently I tried to simulate photons emitted into lead. After I collected the data and figured out the transmission of photons. I found my data is bigger than the ...
SHZ's user avatar
  • 9
7 votes
4 answers
1k views

Euler integration of the three-body problem

Me and one of my colleague are trying to simulate the three-body problem with a C++ program in order to compare different integration schemes. At the moment we are trying to use the Euler's method, ...
jack23456's user avatar
  • 171
1 vote
0 answers
55 views

I need MATLAB or Mathematica code to solve this integral over limit 0- λ

I want the code to integrate equation(1) or (2) over the limits using mathematical or mathlab to get equation (3) as the answer of $Z$ vibrational partition function, giving the following additional ...
tolulope ojuola's user avatar
0 votes
0 answers
40 views

How can I couple MCNP with FLUKA? To attain reactor dynamics and simulate an ADS experiment? (Under Subcritical fast system)

I'm new in Particle Physics based Computing. I want to simulate an ADS experiment (Accelerator Driven System) in subcritical fast system. I was advised to simulate the experiment with FLUKA with MCNP ...
Ammar's user avatar
  • 11
0 votes
3 answers
90 views

How can I plot a rainbow?

I'm trying to write a program that can simulate a rainbow. So far I've got figured out how to determine the change in the refractive index depending on the wavelength, the angular deviation of the ...
Jeff's user avatar
  • 1
0 votes
1 answer
118 views

Convoluted exponential gaussian probability function from Igor Pro

I am trying to figure out the exact formula for a three convoluted exponential gaussian probability function from the software Igor Pro, from my research. Unfortunately all I the closest equation from ...
lPhysics's user avatar
0 votes
0 answers
55 views

How to solve nonlinear second order ODE in Matlab? [duplicate]

I am working on simulating a car suspension system using Matlab. Specifically, I have to derive equation of motion using the Lagrange method and then use ode 45 to solve it. However, while using ...
user avatar
2 votes
2 answers
1k views

Diagonalization using LAPACK

Say, we have a Hamiltonian which for simplicity does not mix particle hole sectors. It is just a simple Hamiltonian in real space as shown, $H=\sum_{ij,\sigma} A(i,j)(c_{i\sigma}^{\dagger}c_{j\sigma} +...
Annie's user avatar
  • 23
1 vote
2 answers
304 views

Numerical minimization of the action in python

I want to find the trajectory $x(t)$ which minimizes the action $S = \int_{t_i}^{t_f} L(x(t), \dot{x}(t)) \mathrm{d}t$ numerically. I am trying to do it by discretizing the action so it is more of a ...
user avatar
0 votes
3 answers
5k views

Draw magnetic field lines or vector field of a magnetic dipole - Python/Matplotlib

In the Wikipedia article on magnetic moments, subsection "Effects on environment" defines the magnetic field H of a magnetic dipole moment. Additionally the magnetic field lines of this ...
tester931's user avatar

15 30 50 per page