Questions tagged [software]

The tag has no usage guidance.

587 questions
Filter by
Sorted by
Tagged with
52 views

Good Physics Engine Recommendations [closed]

Basically, I am looking for a precise physics engine I can use to run tests and tune a PID controller. The simulation is relatively simple: a small rocket with air brakes reaching a target altitude. ...
54 views

Cosmological numerical computations

I am unsure where to ask this question, whether here or in the Mathematica stackexchange, but either way, I was wondering what are some recommendations for cosmological computations specifically using ...
38 views

Using multiple sources in Zemax mixed mode

In Ansys Zemax OpticStudio [I'm using 2023 R1.00 Pro (11)] sequential mode, the Multi-Configuration Editor can be used to make multiple paths for rays to trace through after the rays depart from a ...
• 31
51 views

Adding damping to a spring Lagrangian [closed]

I have written a program that produces a Lagrangian. Additionally, I need damping for the spring I am simulating in the Lagrangian. Here is the code: ...
• 89
1 vote
28 views

I am trying to model the effective radiating temperatures of various three-dimensional solids (Tetrahedron, cube, octahedron, etc.) given a specific incident radiation. Are there any (free) softwares ...
74 views

Yet another question on time dilation on basic special relativity (with code) [closed]

I've been trying the book Computation Physics and came up with the following exercise: Exercise 2.4: A spaceship travels from Earth in a straight line at relativistic speed v to another planet x ...
• 161
1 vote
75 views

Static solution to an implicitly dynamic problem - heat equation

Heat equation This is the heat equation: $\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2}$ ...
• 123
1 vote
52 views

Magnetic force expression in COMSOL, what does the T stand for?

During a recent project I've used COMSOL to help evaluate the force excerted on a steel ball from an electromagnet. The formula used by COMSOL is: \textbf{F} = \int_{\partial\...
• 11
63 views

Hermiticity of Majorana Fermions: SYK Model

The SYK Hamiltonian is defined as $$H = -\frac{1}{4!}\sum_{i,j,k,l=0}^{L-1} J_{ijkl} c^x_{i}c^x_{j}c^x_{k}c^x_{l},$$ where $J_{ijkl}$ is a random all-to-all interaction strength which is normally ...
• 11.9k
23 views

Zou He boundary condition for Lattice Boltzmann

I am utilizing this paper "https://arxiv.org/pdf/0811.4593.pdf" to implement the Zou-He boundary condition, aiming to enforce a velocity of 1 at the inlet of the complex geometry. The ...
• 1
23 views

Circle to Polygon & Circle to Circle Velocity Resolution

I current am working a 2d physics engine, but have recently hit some bumps in the road. Polygon to polygon collision and velocity resolution works without issue, but I am struggling to get working ...
93 views

Sublattice model for ternary system

Much like in an earlier post of mine, I'm now calculating the phase diagram of a ternary system (Ag-Al-Cu, to be specific), which has some phases modelled as sublattices (using this publication for ...
• 25
82 views

How to draw topological defect line in LaTeX?

This is somewhat between TeX stackexchange and physics stackexchange. With Latex, it became much more easier to write equations, and with tikz, pictures can be drawn. However, with the introduction of ...
• 3,256
44 views

How is the trajectory of a star found relative to the Sun?

So i know we can get radial velocity by measuring blue shift and then we can use the distance to the star and its proper motion to get its tangential velocity. In the case of Bernards star, its ...
82 views

Does using Mathematica to do integrals in problems from Griffith's EM hamper my physics education?

I am a sophomore taking an Electromagnetic Theory class using Griffiths. When working on the problems in the text I sometimes encounter integrals that are quite involved at least compared to what I am ...
266 views

Metric tensor calculation tool? [duplicate]

The Einstein field equations are $G_{\mu\nu}+\Lambda g_{\mu\nu}=\kappa T_{\mu\nu}$ which would be easy enough to solve if not for all of the nonlinear dependencies on $g$ that the Einstein tensor $G$ ...
65 views

Special relativity velocity addition formula precision [closed]

I tested the special relativity addition formula $$u_{\text{total}}=\frac{v+u}{1+\frac{vu}{c^2}}$$ and found that addition of small numbers converges to smaller speed, but bigger numbers to bigger ...
46 views

1 vote
134 views

3D projectile motion simulator with drag is not constrained to a 2D plane

This is an example of the problem. I've set the initial velocities to be $(x,y,z) = (100,10,100)$ and the drag-coefficient and CS-area to be 1. As you can see the motion is not constrained to one ...
28 views

Simulation software for electrons scattering effects in materials

I am currently trying to find a software where I can simulate the effects of an electron beam hitting different materials of certain thicknesses, and get information such as how many backscatter, how ...
34 views

Need Recommendations for Nuclear Reaction Modelling Software

Working on a project where I need to model nuclear reactions with different fuel pellet shapes. Does anyone have recommendations for software that's good for this? Any advice or experiences are also ...
159 views

Coupled quantum harmonic oscillator: Decomposition in terms of number basis representation for numerical implementation

Consider the Hamiltonian of a coupled quantum harmonic oscillator \begin{align} \hat{H}&=\frac{1}{2m}(p_1^2+p_2^2)+\frac{m\omega^2}{2}(q_1^2+q_2^2)+\alpha(q_2-q_1)^2 \\&=\frac{1}{2m}(p_1^2+...
• 272
171 views

Boundary/contour tracing of a binary image in Python

I'm studying percolation on a square lattice. I identify clusters on the binary lattice using the SciPy API ndimage.label. My goal is to study the external perimeter (hull) of each of these clusters. ...
73 views

Lagrange multipliers method for a bead on a parabola-shaped wire [closed]

I have this simulation problem that looks very easy at first look (and maybe it is, especially using Lagrange equations of the 2nd. kind). I am using the Lagrange multipliers and I am kinda not sure ...
• 113
84 views

Why would spherical velocity be zero along a numerically-integrated null geodesic?

I am writing a numerical solver for the null geodesics of an arbitrary spacetime metric, but currently mostly targetting black hole spacetimes. I am attempting to numerically integrate the geodesic ...
• 181
1 vote
152 views

Construct an operator using outer product of two MPS using TeNPy

I am fairly new to Matrix Product State (MPS) formalism, but I've used Density Matrix Renormalisation Group (DMRG) techniques before. I'm learning to use TeNPy, and a particular problem I am trying to ...
33 views

103 views

How to find nonlinear conductance?

For quantum transport at the level of linear response, there is the Landauer-Buttiker formula. And for tight-binding models, there are programs targeting such calculations, such as the kwant package. ...
• 3,701