All Questions
Tagged with physics simulation
41
questions
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 ...
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:
...
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)
...
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)
\...
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 ...
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, ...
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
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. ...
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,...
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:
...
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....
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 ...
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 ...
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 ...
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 ...