Questions tagged [physics]
Questions related to the application of Mathematica to problems in physics.
206
questions
54
votes
4
answers
8k
views
Dynamic Euler–Bernoulli beam equation
I am trying to solve for the vibration of a Euler–Bernoulli beam. The equation is
$\frac{\partial ^2u(t,x)}{\partial t^2}+\frac{\partial ^4u(t,x)}{\partial x^4}=0$
For the boundary conditions I ...
16
votes
2
answers
3k
views
Boundary condition with spatial derivative is ignored by NDSolve
Consider the following differential equation:
$$\begin{align*}&\rho C_p\left(\frac{\partial T}{\partial t}\right)=k\left[\frac{\partial^2 T}{\partial x^2}\right]+\dot{q}\\
&\text{at }x=0,\;\...
54
votes
6
answers
44k
views
How to calculate scalar curvature, Ricci tensor and Christoffel symbols in Mathematica?
I am seeking a convenient and effective way to calculate such geometric quantities. I've used packages like TensoriaCalc, but they don't work at all time. Sometimes,...
53
votes
5
answers
29k
views
Find eigen energies of time-independent Schrödinger equation
I'm trying to get the eigenvalues of a one dimensional time-independent Schrödinger equation,
$-\frac{h^2}{2m_0}\frac{d^2\psi}{dx^2}+U(x)~\psi=Ei~\psi$
where U(x) is some potential and Ei is the ...
45
votes
4
answers
20k
views
Is there something like DensityPlot3D to visualize atomic orbitals?
I'm visualizing some hydrogen like atomic orbitals. For looking at plane slices of the probability density, the DensityPlot function works well, and with something ...
35
votes
3
answers
10k
views
Animation of double pendulum
Sadly, I am a completely newbie. I am studying Physics and in our theoretical physics class we got the task to solve the double pendulum using Mathematica. We just got the program, but no introduction ...
43
votes
2
answers
10k
views
The correct way to linearize colorspace before resizing, blurring etc
There was an interesting discussion on MathGroup dealing with the fact that image-processing functions in Mathematica (and many other software, including Adobe Photoshop) work with RGB, Grayscale etc. ...
9
votes
2
answers
2k
views
The time-like geodesics (orbits) in the Schwarzschild spacetime
I am trying to plot Schwarzschild's orbit without invoking the geodesic equation.
As a reference I am using Chandrasekhar's Book (The Mathematical theory of Black Holes, Oxford University Press). In ...
31
votes
3
answers
4k
views
1D Euler equations (fluid dynamics) with NDSolve
Is it possible to accurately solve the 1D Euler equations in Mathematica using NDSolve?
For example, let us consider the Sod shock tube problem. Introduction to ...
24
votes
4
answers
1k
views
Create an adaptive amount of local variables for error propagation
I intend to write a function which calculates the result and the error for any formula with any amount of variables using the Gauß Error Propagation.
The error $\mathrm{d}R$ for a function $A(a,b,c)$ ...
16
votes
2
answers
2k
views
Pull out scalars from NonCommutativeMultiply in commutator of SU2 spin algebra
I am trying to work on spin chains in Mathematica. That is, N spin-1/2 on a one-dimensional lattice with periodic boundary condition (N+1=1). I need therefore the SU2 spin algebra $S_z, S_+, S_-$ with ...
15
votes
2
answers
6k
views
Boson commutation relations
I have tried to adapt this answer to my problem of calculating some bosonic commutation relations, but there are still some issues.
The way I'm implementing the commutator is straightforward:
...
56
votes
8
answers
12k
views
Circuit drawing in Mathematica
This past semester I taught an introductory electromagnetism course and had quite a nice time using Mathematica to draw all sorts of figures and diagrams (mostly for problems and etc.). However, I was ...
35
votes
3
answers
3k
views
A better "VisibleSpectrum" function?
Since ColorData["VisibleSpectrum"] is wrong, I would like to have a more accurate function to use.
Can this information be extracted from Mathematica itself?
30
votes
4
answers
18k
views
Convert spectral distribution to RGB color
Presume that I have a spectrum as a function of wavelength (an example being the blackbody spectrum):
I want to convert that to a single RGB color to display on-screen, i.e. the "color" of that ...