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

learn more… | top users | synonyms

0
votes
1answer
64 views

How to solve time dependent pde?

I have set out to try and solve a time dependent wave equation with specific boundary conditions, but I am running into a bit of a snag. As you can see, I am trying to solve for the wave function u[t, ...
0
votes
1answer
87 views

Making a bouncing ball simulation interactive [closed]

Problem A ball initially at height $h_0$ above a horizontal surface is dropped at time $t = 0$ with zero initial velocity. When it arrives at the surface, the ball bounces in the vertical ...
12
votes
2answers
268 views

Fractal basins of attraction in a Magnetic Pendulum

I am trying to write a Mathematica program that realizes a graphical approximation of the basins of attraction in a Magnetic pendulum subject to friction and gravity, in which the three magnets are ...
1
vote
1answer
171 views

Visualizing interference of two waves on the plane

I need to make an animation of interfering coherent waves on the plane, that are produced by two sources. I would really appreciate if I am able to change the wavelength. I am quite new to Wolfram, ...
3
votes
1answer
123 views

Finding Maximum Value of ElectricField in a bounded region

I have been trying to find the maximum value of the magnitude of an electric field in a bounded region. NDSolve gives the value of the potential inside the region ...
1
vote
1answer
94 views

Need help in understanding hydrogen orbitals code [closed]

I just got a copy of Mathematica and I'm busy learning the basics. I got mathematica so I can plot hydrogen orbitals but I'm completely lost. I looked around and I found this: ...
1
vote
1answer
50 views

Sorting Data by Differences between Columns

In Band Structure calculations one gets rather extensive data of Energy Values (Eigenvalues) and the associated Eigenvectors out of the solution of an Eigenequation of e.g. the form H.$\psi$=E.$\psi$. ...
0
votes
1answer
30 views

Determination of coefficients matrix in one dimensional Kronig-Penney Model

In page 169 , Chapter 7, from book "Introduction to solid state physics (Eighth Edition)" by Kittel, there are 4 equations as below. Without need to any additional physics information I just want to ...
1
vote
2answers
79 views

Plotting spectral emissive power versus wavelength

I am trying to plot a set of curves using the Planck distribution function for the following temperatures: (2000,1000,400,100)K. I attempted to do the following: <...
3
votes
1answer
144 views

Learning Mathematica for Physics

I'm a student of physics with little to no background in programming. I have to learn Mathematica for my Physics project. As of now, I need it for doing numerical integration, numerical optimization ...
1
vote
1answer
51 views

NDSolve for complex variables

I am trying to simulate a multiple pendulum system with damping as follows: ...
1
vote
1answer
185 views

My code uses `ClebschGordan` but `Mathematica` is using `ThreeJSymbol`

I'm using a function that calculate CG coefficients with the function ClebschGordan but instead, I've got the following error because Mathematica is using ...
0
votes
0answers
109 views
4
votes
1answer
137 views

Solving 2D Laplace equation for irregular boundaries [closed]

I want to solve Laplace equation in 2D with $x$ and $y$ coordinates with the boundary conditions $V(0,y)=-180$; $V(x,0)=50x-180$; $V(x,6)=50x-180$; $V(453.595-\sqrt{450.05^2 - (y - 3)^2},y)=0$ The ...
6
votes
1answer
122 views

How to numerically solve a 1D time-independent Schrödinger equation for two interacting particles

Solving the 1D single-electron time-independent Schrödinger equation has been demonstrated using NDEigensystem here. There, the single-electron Schrödinger equation ...
8
votes
1answer
125 views

Calculating density of states from lists of momentum/energy data

I am trying to calculate the density of states for a 2D system given certain band structure data organized in a specific format. Below is an example of my procedure: Beginning with a simple 2 x 2 ...
2
votes
2answers
262 views

Ion motion in uniform axial magnetic field and radial electric field [closed]

I'm trying to model an ion's 3D motion in a constant/uniform axial magnetic field and a radial electric field (similar to a cylindrical magnetron, but two positive parallel center electrodes offset by ...
3
votes
1answer
124 views

How? 2-dimension visualisation of all 3d-orbitals as either a density plot or as function of maximal radius

I've been playing around with some d-orbitals and have been trying to view their maximum in two dimensions. At the moment I've progressed to the point where the d__ orbitals are superimposed onto one ...
1
vote
1answer
62 views
0
votes
1answer
79 views

Lagrangian for Spring-Pendulum [closed]

I solved a Spring-Pendulum System with NDSolve. I tried to plot a graph with the interpolated data but always returns a message "An improperly formatted directive with head Symbol was encountered." <...
1
vote
1answer
241 views

Why Integral does not converge?

I am trying to solve for $\Omega$ this nonlinear integral equation: $$1+\dfrac{z}{k^2}-\dfrac{z^2}{K_2(z)} \dfrac{\Omega}{k^3} \displaystyle\int_{1}^{\infty} \gamma^2\, \text{ArcTanh} \left(\sqrt{\...
0
votes
0answers
52 views

Eigenelements of conductivity equation

I am trying to calculate the eigenvalues and eigenfunctions of the conductivity equation in an annulus. In particular I am looking for $(\lambda, u)$ s.t. $$ \begin{cases} \Delta u = \lambda u & \...
0
votes
0answers
38 views

Solving Time-Dependent PDE's Analytically with no non-trivial Boundary Conditions

I'm having some trouble solving a partial differential equation that is supposed to model the propagation of a scalar field in Schwarzschild spacetime using spherical coordinates. I'm using the DSolve ...
0
votes
0answers
38 views

Recycle boundary condition

I'm having the following issue that can not find a solution , by using this boundary condition u[0, t] == 2 u[1, t] that Mathematica does not understand, someone ...
0
votes
2answers
84 views

Jump boundary conditions

I'm having the following issue that can not find a solution , by using this boundary condition ...
0
votes
2answers
88 views

Free-fall air resistance problem

I´m working on a free fall problem and I got an equation with variable $k$ when the situation has air resistance. Then I compared with no air resistance equation ($-4.9$, considering t variable). So, ...
2
votes
0answers
112 views

What is a good way to model fluid stream contours around airfoils?

I am an undergraduate student and am doing a project on conformal mapping for my complex analysis class. I have had one heck of a time trying to plot stream function contours to model fluid flow in ...
-1
votes
1answer
43 views

Solve returns empty list on system of 62 linear equations with undeclared known variables

Context: I am trying to solve a set of equations generated by hand from a complicated, but not particularly strange system via Newton's Second and Third Laws, and a few constraints. All the resulting ...
0
votes
1answer
59 views

Verify angle pi/4 maximizes launch range [closed]

I'm solving the equation of motion for a projectile in the x, y plane and got this: R = v0^2 sin(2 theta) / g where R is the range of how far the object will ...
8
votes
2answers
334 views

Lagrangian to Hamiltonian

I want to go from Lagrangian description to Hamiltonian one. Using the example given by Mathematica I do something like: ...
0
votes
1answer
102 views

Plotting graphical analysis of chaotic behavior

I am trying to plot some results of chaotic behavior in a system based on a paper for one of my classes. I am a physics undergrad. I found some sample code online springy.nb which I have been trying ...
0
votes
3answers
174 views

Can I convert a 3-D plot into a 2-D plot?

I am studying the Landau Free Energy Equation. First of all the plot displayed only shown negative range. can i show the positive range too? (y-axes). Then, can I turn this plot into 2-D Plot? ...
-1
votes
1answer
57 views

NDSolve and vectors [closed]

I think I can't find solution of equation below because I need use scalars, not vectors as I have tried. But I don't know how I can do express the problem with scalars. I have read Wolfram Language ...
22
votes
1answer
290 views

How to model wooden joints with mathematica's FEM?

This is a dovetail joint: and I'd like to see the stresses and deformation on the joint.I haven't seen any modeling of disconnected regions with FEM, only connected regions, so I'm curious if you ...
0
votes
1answer
131 views

Animate spherical pendulum

I want to plot the position of Spherical pendulum. First I tried to plot the simple pendulum: ...
0
votes
2answers
80 views

Determine the initial speed and launch angle of a projectile from its trajectory

I have the coordinates {x,y} needed to plot the trajectory of a projectile, which are given below: ...
0
votes
1answer
130 views

How can I solve a Hamiltonian with numerical methods?

Hamiltonian in terms of two level atom's operator (0 is ground state and 1 is excited state) which are 2*2 matrices and cavity modes are given by $a$ and $a^\dagger$. Rest of the parameters are ...
1
vote
1answer
119 views
10
votes
1answer
158 views

Beam deformation due to localized force distribution

I would like to simulate the deformation of a beam which is fixed on one end and has some localized forces applied along the top. I have been inspired by this Mathematica example: http://www....
2
votes
1answer
123 views

Improving the speed of evaluating numerical solution to a sytem of PDE

I am running a simulation for a kinetic reaction inside a pellet modeled by a system fo reaction-diffusion equations. ...
5
votes
2answers
276 views

How to see phase difference of two pendulum

i want to see the simulation of two uncoupled Simple Harmonic Motion (SHM) pendulum with different Lengths and released at different initial displacement angles. in this case adding one more pendulum ...
2
votes
2answers
91 views

How to make A simulation of 2-Dimensional Projectiles

Lets say two cannon is fired at different initial position, initial angle and initial speed. let say initial speed,angle and position for projectile 1= ...
0
votes
1answer
77 views

Making a Manipulate showing a the motion of a particle [closed]

Solving a differential equation I got to the following result -(((R[n*Pi - t/w] Cos[t/w])/(n*Pi)) Then, using this solution, I create . ...
6
votes
0answers
260 views

Problems with NDSolve for solving coupled Schrödinger-like PDEs with perfectly matched layer boundary condition

I'm trying to solve a full-vectorial wave equation for an arbitrarily shaped wave guide, by using NDSolve and perfectly matched layer (PML) conditions. The PML ...
1
vote
1answer
167 views

Boundary Problems

I am trying to study what happens to a wave as it passes different boundaries. This is the working wave equation defined on a plane ...
1
vote
0answers
107 views

How to find the eigenvalues of a custom operator using NDEigensystem? [closed]

I would like to solve a Hamiltonian presented by a 2x2 matrix. Hamiltonian is given by: ...
1
vote
1answer
192 views

Raman spectra collected at over 200 spatial points and in separate text files, how can I collate and visualize the data?

I need to do density plot and contour plot of Raman spectra with a specific peak, Raman mode, as a way to study the intensity distribution of such peak throughout the sample used. As such ...
3
votes
0answers
204 views

How to solve the Tsunami model and animate the shallow water wave?

Recently when I was learning differential equations, I noticed there is a shallow water wave equation to model the tsunami propagation. How to establish and solve the initial and boundary conditions ...
1
vote
1answer
225 views

Ball rotating in a Turntable

I made a turntable to make some experiments and make some studies about Coriolis and Euler forces acting in different frames of reference. ...
2
votes
0answers
199 views

Schrödinger equation for Hydrogen atom [closed]

I'm trying to solve Schrödinger 1D equation for hydrogen atom but I found several difficulties. To get in context I want to solve this equation For Z and l real and arbitraries. To start with I ...