Questions tagged [physics]
Questions related to the application of Mathematica to problems in physics.
201
questions with no upvoted or accepted answers
9
votes
0
answers
797
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 ...
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 ...
8
votes
0
answers
797
views
Numeric Solution Hydrogen Atom
I'm trying to solve the Schrödinger equation for the hydrogen atom without made the variable separation of the polar and radial coordinate. It is my test code to extrapolate to another system with its ...
7
votes
0
answers
832
views
Mathematica packages for numerically solving the Klein-Gordon and Dirac equations?
The book "Advanced Visual Quantum Mechanics" by Thaller includes Mathematica software packages for the numerical solution of the Klein-Gordon equation and the Dirac equation (subject to user-defined ...
6
votes
0
answers
795
views
Code for quasi 1D nozzle flows
The quasi-one-dimensional model describing the flow of compressible gas in rocket nozzles is very common. The corresponding equations have a divergent non dimensional form
$ \frac{\partial \mathbf{U}}...
6
votes
0
answers
280
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 ...
5
votes
0
answers
202
views
Resolving singularity in convection-diffusion equation using pdetoode
Building on the system of equations in this post, I attempted to solve an additional convection-diffusion equation describing the concentration of solute in the lens, which affects its spreading.
...
5
votes
0
answers
110
views
Effectivelly using Compile for calculate a Unitary transformation
I am new to Mathematica, and this is my first post, so if my question is not clear enough, I would be glad to read the comments and edit my question to add more information.
The problem
I need to ...
5
votes
0
answers
454
views
Is it possible to use Gaussian cgs units in Mathematica computations?
I was trying to do computations in Gaussian cgs units, and of course I failed due to dimensional issues. For instance, $q_1 q_2/r$ cannot be converted to $\mathrm{erg}$ since Gaussian system uses $4\...
4
votes
0
answers
124
views
Calculate the integral of the Slater determinant
This is a Slater determinant:
$$
s=\left|\begin{array}{ll}
\psi_{1 s}\left(r_1\right) \alpha & \psi_{1 s}\left(r_1\right) \beta \\
\psi_{1 s}\left(r_2\right) \alpha & \psi_{1 s}\left(r_2\right)...
4
votes
0
answers
123
views
FEM: modelling 2D flow under periodic forcing
Despite many examples of periodic boundary conditions being presented, it remains difficult to obtain a periodic solution. Let us consider a simple example of a flow in a two-dimensional channel under ...
4
votes
0
answers
70
views
speed up tensor expand
I am using the following code
...
4
votes
0
answers
121
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 ...
4
votes
0
answers
982
views
Wormhole embedding diagrams
I am trying to reproduce the embedding diagrams for the evolution of a Schwarzschild wormhole described in this paper.
Following the paper notation, we denote the Kruskal coordinates by $(v,u)$. For a ...
3
votes
1
answer
673
views
Recognize physical constants?
Is there some way to ask Mathematica to recognize physical constants, such as 32 or 9.81 (gravitational acceleration, in different units, at Earth's surface)?
I have in mind something like the "...