Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [physics]

Questions related to the application of Mathematica to problems in physics.

3
votes
0answers
19 views

Improving NetChain for Physical data

I am trying to improve my NetChain to better predict physical data from the industrial standard for water/steam published by the IAPWS. Basically, this industrial ...
0
votes
0answers
32 views

Quantum walk in momentum space [on hold]

I want to re-derive a paper. It is about "Quantum walk with Bose-Einstein condensate in momentum space". Do you have any files or code about it? It is an opportunity for me.
0
votes
0answers
57 views

Trying to plot a magnetic field of a straigth wire [closed]

I want to plot a simple vector field of a simple magnetic field of the current through a straight wire, which is given by $\qquad \overrightarrow{B}(\overrightarrow{r}) = \frac{\mu_{0}}{2\pi}\frac{I}{...
1
vote
1answer
142 views

Electric Field Plot

I want to show an electric field of several arrangements of point charges in xy-plane. I wrote a routine that plots an electric field of a charge: ...
6
votes
0answers
237 views

Butter side up?

I've written a piece of code that determines if a piece toast with butter lands on the butter-side or not, depending on its initial velocity and the table height. If you are interested in the physics ...
0
votes
0answers
24 views

Opacity or related issue with DensityPlot3D

I'm trying to make use of the function DensityPlot3D with the following specific example ...
0
votes
0answers
38 views

Manipulate plot of a system of PDEs with NDSolve

Modeling 1D diffusion of an enzyme, e, through a sphere with substrate, s, I arrive at the below equations: I then pass these equations to NDSolve, Evaluate at a range of r and t and Plot and ...
0
votes
0answers
14 views

How can I know the true range of the values returned by AudioLocalMeasurements?

I need to normalize the values of different AudioLocalMeasurements results but I can't seem to find any info regarding the range of values in which each measurement ...
3
votes
1answer
59 views

Evaluating Hough functions by using NDEigensystem on the Laplace tidal equation

Currently I am looking into the use of Mathematica to solve the classical tidal equation of M. Laplace: $$\mathcal{F}\Theta+\gamma\Theta=0$$ whose eigenfunctions $\Theta$ are the Hough functions. ...
1
vote
1answer
58 views

How can I animate two beads each sliding on its own frictionless rail? [closed]

I am told to animate two beads sliding on rails in Mathematica, but I am very confused on how to get a mass on a rail and it move up and down the rail.
3
votes
1answer
239 views

3D rigid body physics engine

Is there a package in Mathematica that will allow me to simulate collisions of 3d rigid bodies? If not, what known libraries could I use and how? For example, one problem I want to simulate is a ...
0
votes
0answers
50 views

How to solve a Poisson's differential equation with a boundary condition at infinity?

Context: This question is relevant to the physical problem of calculating potential for a set of p-n-p junctions. We have to solve a Poisson's differential equation for a p-n-p junction with ...
0
votes
0answers
61 views

Clebsch Gordan coefficients

I'm trying to compute various sums which contain some CG coefficients, where the sum runs over the indexes m1,m2,m corresponding to each of the three angular momenta j1,j2,j. The thing is that when I ...
9
votes
0answers
190 views

Solving the 2D Schrödinger equation with eigensystem, then verifying orthonormality of eigenfunctions with NIntegrate

I am solving the time-independent 2D Schrödinger equation for an interacting electron and hole in the case of anisotropic electron and hole masses, where the interaction is described a modified form ...
4
votes
1answer
127 views

Currents/voltages graph for an electrical circuit

I am trying to design the network graph for an electrical circuit. I have done this by hand so far. Here is the code for the voltages graph ...
4
votes
1answer
152 views
3
votes
0answers
120 views

Physics based predictive model using Predict

Summary: The first order response of a block of metal quenching in a fluid (or a cold block heating in a warm environment) is well known. I am trying to create a physics based predictive model for ...
0
votes
0answers
51 views

How can I define another metric (disformal transformation) in xAct?

I'm using the xAct package. I want to define two metrics with the disformal transformation relation $\qquad \bar{g}_{\mu\nu}=A(\phi) g_{\mu\nu}+B(\phi)\nabla_\mu \phi\nabla_\mu \phi ,$ where $g_{\...
0
votes
1answer
124 views

Plotting elliptical orbits using Verlet method

I'm looking to solve a 2 body system consisting of the Earth and a body of mass in orbit. I'm using the Verlet method to numerically integrate Newton's equation of motion in order to plot an ...
2
votes
2answers
66 views

Finding the amplitude of function solved using ParametricNDSolve

I have been trying to find the peaks of a function I have plotted using ParametricNDSolve. I have to find these peaks to calculate the amplitude of all the various waves in the observed output. By ...
1
vote
1answer
90 views

Conditional evaluation: black hole cross section

I'm trying to calculate the collision cross section of black holes, more precisely, I want the critical impact parameter $b_{\text{crit}}$ for a given initial velocity $v$ such that, at this speed, ...
27
votes
2answers
1k views

Animating wave motion in water

Further to this question I found on MSE, I tried to replicate from here this is as far as I got: ...
12
votes
2answers
786 views

Solving “Resistance between two nodes on a grid” problem in Mathematica

In the context of resistor networks and finding the (equivalent) resistance between two arbitrary nodes, I am trying to learn how to write a generic approach in Mathematica, generic as in an approach ...
1
vote
1answer
70 views

Solve Euler Lagrange equation of motion DSolve

I'm trying to find Euler Lagrange equation of motion. then DSolve the equation for list of variable x1,x2,x3,x4 Here is my code: ...
-1
votes
1answer
157 views

Working with motion equations

I'm trying to solve some Lagrange differential equations of motion, where $L = T - U$. Also, how can I use the solution for each x1, x2, x3, ..., xn? Here is my code: ...
2
votes
0answers
46 views

Symbolic perturbation expansion for quantum mechanics using Hellmann-Feynman derivaties

I am interested in some quantum mechanical perturbation expansion for energies. Actually I want to implement these terms $E_n^{(k)}$. As is stated below one can do that using CAS. I would be ...
0
votes
0answers
59 views

Calculating forces on a truss

I need to find certain forces of the truss shown above, and I am asked to calculate the forces with a matrix. The given values are ...
1
vote
1answer
83 views

A program for finding the summation of an analytical expression

Consider the Baker-Hausdorff formula for two operators $A$ and $B$: $$e^BA e^{-B} =A+[B,A]+\frac{1}{2!}[B,[B,A]]+\frac{1}{3!}[B,[B,[B,A]]]+....,$$ where $[A,B]=AB-BA$. In the case of my problem, $[B,...
0
votes
1answer
101 views

Creating a numerical table of values from an interpolating function resulting from NDSolve [closed]

I am trying to carry out point "Implementing Map" on this paper Interstellar wormholes however I am using my own equations not those given (only the same method). Part 1 I am trying to create a ...
0
votes
1answer
67 views

Using ParametricNDSolve with n subscripted functions

I want to calculate trajectories of an n-pendulum. For the number n=1 it's just a pendulum, for n=2 a double pendulum , for n=3 a triple and so on. The Solver has to solve n equations for the angle. ...
0
votes
0answers
83 views

Numerical integration: gravitational force

What I would like to accomplish is to numerically integrate the following equation: $\nabla^{2}\Phi(r)=\rho(r)$, to get $\nabla\Phi(r)$. $r$ is the radial distance from the origin. Suppressing the $...
0
votes
0answers
61 views

Heat conduction problem with boundary at $\infty$

This is a 1-D heat conduction problem for a circular rod with 5cm, $T(x,0)=0$, $T(\infty, t)=0$, left boundary is insulated. I am trying to use the finite numerical method. My first question is how ...
2
votes
0answers
82 views

Using Image Transformation to create image sky view of what its like to be near black hole (Not a wormhole) [duplicate]

Question : I am trying to carry out point 3. "Implementing map" on page 13 in the paper Interstellar wormholes using my own equations not those in the paper. however am not 100% sure on how to go ...
2
votes
1answer
55 views

How do I draw an angular vector field containing a domain wall?

Intuitively, an angular vector field $\theta(x)$ such as the following would describe a domain wall between two vortices/strings of opposite winding number. I would like to draw this on a computer ...
3
votes
2answers
122 views

Carnot cycle diagram

Note: I have adopted and modified code taken from Wolfram demonstration page. I want to achieve something similar to the following figure: I use the following code: ...
0
votes
0answers
31 views

FeynCalc example — muon decay — integration issue

I'm just starting out using Mathematica and I'm trying to work through one of the examples given for FeynCalc, specifically the muon decay: https://github.com/FeynCalc/feyncalc/blob/master/FeynCalc/...
-1
votes
2answers
40 views

a ListAnimate problem

Thanks to @AlexTrounev, I learned how to use ListAnimate, but I still get stuck using it. Before ListAnimate everything is correct. I just cannot successfully use ListAnimate to make the plot. I have ...
0
votes
1answer
56 views
0
votes
1answer
100 views

Animate particle's trajectory

Does anyone know how to animate the trajectory of a particle, but make sure before the particle reaching a certain spot, there's nothing. I mean I want to make an animation that look like https://en....
1
vote
1answer
96 views

Euler-Bernoulli beam equation

I'm trying to solve Euler-Bernoulli beam equation with simply supported edges.$\frac{\partial^2} {\partial x^2} [ E I \frac{\partial^2 w} {\partial x^2}] + \rho S \frac{\partial^2 w} {\partial t^2} = ...
0
votes
1answer
87 views

Integrating Hamiltonian equations using NDSolve

Would someone be able to integrate numerically the equations at the bottom of page 12 in the paper Interstellar Wormholes given some initial conditions of your choice. Reading the first paragraph of ...
5
votes
1answer
253 views

Integrating Hamilton's equations for the Schwarzschild metric

Part 1 I am trying to integrate Hamiltons equations for the Schwarzschild geometry using NDSolve, these equations must all be integrated simultaneously and are nice ODE's. A similar task is done in ...
0
votes
0answers
6 views

Using manipulate in the plot of a function that depens on a FindRoot function [duplicate]

I've the following two codes: FindRoot[Abs[Uin*Sin[2*Pi*fin*T - (Pi/2)]] - 2*Ud == (Uin - 2*Ud)* Exp[-T/(c*Rb)], {T, 1/(4*fin), 1/(2*fin)}] And: ...
1
vote
0answers
69 views

Trying to compute the heat capacity for the 2D-Ising model

I'm trying compute the heat capacity $C_v$ out of my simulation for the 2D-Ising model which is given by $C_v = \frac{\langle E^2 \rangle - \langle E \rangle^2}{T^2N^2}$ ($E$: Energy, $T$: ...
0
votes
0answers
33 views

How to simplify my integrand to make the function Integrate[] work?

To calculate a physical field, I need to integrate a complicated expression, with Sin and Cos and some 3/2 power. But when I run the Integrate function, it seems running forever. So what could I do to ...
1
vote
0answers
55 views

Abstract derivatives in Feyncalc

I have encountered several problems regarding the application of formal derivative operators in FeynCalc, using the built-in function FCPartialD, Left/RightPartialD Schematic description of my ...
1
vote
0answers
57 views

Integrating wavefunctions over a sphere

I am attempting to numerically solve the inner product of two particles and an electric dipole interaction potential. I am incredibly limited in my skills, and need to know how I can begin setting the ...
2
votes
0answers
58 views

Antiparticles in Feynrules Lagrangian

I am trying to implement a simple extension of the SM to Feynrules, generating the Lagrangian in a Mathematica notebook file. I am wondering about the following: Is there a way to explicitly use the ...