# Questions tagged [physics]

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

825 questions
Filter by
Sorted by
Tagged with
50 views

### Mathematica VectorPlot no longer displays the plot it used to, despite the code being exactly the same? [closed]

I'm trying to plot the electric field of source charges. I was working on this the other day, and the plots I had were working just as I had intended. After continuing work today, I realized that ...
164 views

### Solving 3D Nonlinear Integral Partial Differential Equation

I am trying to solve Equation number (1.2) numerically in MATHEMATICA. This equation is solved in the papers https://arxiv.org/pdf/2205.05193.pdf, https://arxiv.org/pdf/2202.13264.pdf, and https://...
1 vote
67 views

### How can I expand this code to track two particles instead of one?

I'm attempting to track the position of two particles by recording a .tiff file of their visual movement under a microscope. I use Mathematica to Binarize with a high enough threshold so that only ...
• 11
102 views

### Unable to solve the given equation

I am trying to solve the given system in terms of $r$, for which I use the following code: ...
• 585
50 views

• 109
1 vote
112 views

### How to create a matrix with multiple variables defining the elements?

I am a learner start using Mathematica to study quantum mechanics. In many cases, I am try to construct matrix with functions like this: For example, let f be a function taking 4 variables x1,x2,x3,x4,...
410 views

### Droplet of water-alcohol mixture spreading due to evaporation-caused surface tension gradient

I am trying to solve a coupled system of PDEs for 2 functions h[t,r] and c[t,r], with initial conditions of ...
• 81
102 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 ...
1 vote
70 views

### FunctionInterpolation with some datapoints to start with [closed]

Motivation: I am using FunctionInterpolation[COMSOL[x]] in combination with COMSOL to search for the interpolation of my COMSOL model. COMSOL needs a lot of time to ...
125 views

### Error in Metropolis-Hastings with three states?

I wanted to create a simple example of the Metropolis-Hastings algorithm as a sanity check but the check failed and the results do not line up. I have a vector of energies $\vec E=(E_1,E_2,E_3)$ and ...
179 views

### Convergence plot of Lyapunov exponents

I am trying to reproduce the convergence plot of the four Lyapunov exponents for a string from this paper (page 12, figure 7). The code that I have used till now to find the equations is given below: <...
• 585
1 vote
90 views

### Using Loop to find a specific Energy

I am given a Hamiltonian: ...
• 585
1 vote
77 views

• 585
1 vote
53 views

### Gaussian 16 fchk and log file import in mathematica

I am working with Gaussian log files and fchk files imported into Mathematica and I noticed a few things. The ExampleData in documentation for these files use Gaussian 03 output files, while the ...
• 613
233 views

### Stretching a mesh

Imagine I want to stretch a mesh with a 'rubberband-type' effect. That is, upon and elastic stretch from both side edges, the mesh centres simply scale as follows where the points are seeds for ...
• 4,388
I am trying to calculate precise values for certain expressions, see the image below. The output testZPF of the function $\Delta$Fn should be a single output. I am ...