Skip to main content

All Questions

Tagged with
0 votes
0 answers
57 views

Help me figure out how to solve the gravitational lens equations [migrated]

I want to simulate gravitational lensing. In the article LENSINGGW: a PYTHON package for lensing of gravitational waves there is this fragment [page 3]: My research: As far as I understand, this is a ...
ayr's user avatar
  • 2,444
1 vote
1 answer
77 views

Integrating Over a Conditional Time-Dependent Region

I'm experimenting with integrating over regions so I can check some physics simulations. Here's the rundown of what I'm attempting to do. I have a rectangle that I'm rotating with a parameter: ...
AelMinor's user avatar
1 vote
1 answer
84 views

Value of a function over permutations of two lists

I want to do the sum (in Ising lattice gauge theory) ...
QFTheorist's user avatar
1 vote
1 answer
54 views

Sum on a lattice where variables can only take two values (Ising lattice gauge theory)

I want to study the Ising Gauge Theory which has the Hamiltonian \begin{equation} \mathcal{H} = -J \sum_{n,\mu,\nu} \sigma_3(n,\mu)\sigma_3(n+\mu,\nu)\sigma_3(n+\mu+\nu, -\mu)\sigma_3(n+\nu, -\nu) \...
QFTheorist's user avatar
3 votes
1 answer
282 views

Thermodynamics of the 2D Ising model

I want to study the thermodynamics of the 2D Nearest Neighbour Ising model (calculate the average energy, susceptibility, etc.). I have the Hamiltonian $$\mathcal{H} = J\sum_{\langle i j \rangle} s_i ...
QFTheorist's user avatar
3 votes
0 answers
91 views

Fast Multipole Methods [closed]

My goal is to model electrostatic containment of point charges (protons). I understand the basic N-body potential calculation is O[N^2}, and a potential of q/|ri-rj| (constant mass and charge, ...
Jim Hargis's user avatar
15 votes
1 answer
386 views

Gravitation simulation and interaction of N (1000) massive objects

Is there an implementaion of the Barnes-Hut algorithm running with Mathematica? Thanks a lot
Rémy Galli's user avatar
4 votes
1 answer
208 views

Optimizing Code N-Body Simulation

below is my code for a gravitational n-body problem. I know Mathematica has a n-body simulation function however I am programming this to learn Mathematica more and programming numerical techniques. ...
Carlos Villeda's user avatar
1 vote
0 answers
103 views

Real-time interactive simulation

I would like to know how to use mathematica to make a real-time physics simulation that can be interacted with using a cursor. As an example, consider a classical magnetic dipole in a background field,...
Diffycue's user avatar
  • 1,844
4 votes
1 answer
291 views

How to simulate hysteresis loop for a ferrimagnetic material

I am trying to modify a ferromagnetic hysteresis loop to ferrimagnetic hysteresis loop. Below is the equation I used for ferromagnetic simulation : Below is the code for above equation: ...
Mariam Jacob's user avatar
0 votes
1 answer
226 views

Sticky Collisions (perfectly inelastic)

There is an awesome simulation https://mathematica.stackexchange.com/a/124926/87086 which shows N particles bouncing in a box (with elastic collisions), made by @Feyre https://mathematica....
Zach's user avatar
  • 373
0 votes
1 answer
146 views

NBodySimulation softening parameter

I'm simulating the orbit of a binary black hole immersed in some halo of particles and the simulation does not want to continue on for the specified amount of time. It always halts at a seemingly ...
shanedrum's user avatar
  • 587
2 votes
1 answer
235 views

Simulate spring wire through fixed points

Suppose we have a wire made of an ideal spring steel. If we bend it and then release any external force it will straighten itself into a perfect line. Suppose also that the wire is attached to some ...
azerbajdzan's user avatar
  • 20.1k
8 votes
0 answers
246 views

How can we improve transonic flow visualization?

With this code we can make 2D FEM simulation of transonic flow around airfoil NACA 0012 at Mach number of 0.925. It takes about 5 minutes on the XENIA-15 laptop of 32 GB memory with processor Intel ...
Alex Trounev's user avatar
  • 46.3k
1 vote
0 answers
92 views

"If" not working when solving piecewise differential equation

This is a part 2 to my previous question: Solving Piecewise Differential Equation I am embarking on a physics project and this is the simulation that I would like to do. More information is included ...
bob the legend's user avatar

15 30 50 per page