Skip to main content
Filter by
Sorted by
Tagged with
Best practices
2 votes
1 replies
54 views

I need an analytic solution for a 1D motion controller. Initial state: x=0, v=0. Parameters: a_acc = 50, a_dec = 30, v_max = 40. Given a target position (e.g. x=20) the object should: accelerate up ...
Spartak Aghababyan's user avatar
0 votes
0 answers
40 views

Please help me refine the ray tracing code of the Stretcher Offner in MATLAB. I used the formulas from the article to plot graphs from Figure 3, showing the dependence of the group delay on the ...
Дмитрий Киселев's user avatar
0 votes
1 answer
52 views

I am in the process of making an active ragdoll character in ue5.6. I have gotten the ragdoll walking, grabbing, hanging, jumping, and all sorts of fun stuff. But I am currently stuck on how to make ...
End3r6's user avatar
  • 1
2 votes
0 answers
62 views

Is there any python package to compute ekman velocities in the water column from wind data observations? I have wind direction and velocity on an specific location and I would like to obtain a ...
Eva Chamorro Garrido's user avatar
1 vote
2 answers
139 views

I need to use the function erfz (error function that takes complex arguments) for fitting Voigt profiles. It seems like it is only implemented in R in the pracma package as erfz(z). I tried to ...
Cesiumix's user avatar
-1 votes
1 answer
133 views

With a 2d physics simulation in JavaScript I am trying to determine the second focus of an ellipse. My system's eccentricity is too low. The point moves around too much and isn't where it should be. ...
Timtams's user avatar
0 votes
0 answers
84 views

I've been trying to make this code into a function and gather the wave number, but how do I get the frequency and then collect the data bt changing the wave number and then graphing. Below here is the ...
Tommy Wigenton's user avatar
3 votes
1 answer
217 views

I want to create a website that can repeat that experiment from Youtube video. And i made it, its working, but it has problem: when input number is entered above 2-3 thousand, the big block, when ...
Hazmen's user avatar
  • 63
3 votes
1 answer
365 views

I have a rather complicated physics-model (Thomas Hopfield model from https://www.researchgate.net/publication/...
Thomas's user avatar
  • 33
1 vote
2 answers
107 views

I am trying to create a function which receives the transversal profile of a beam and outputs the transversal profile propagated by some distance. To exemplify the task, here is the profile of a ...
Henrique Guerra's user avatar
1 vote
1 answer
221 views

I'm implementing the Fast Multipole Method (FMM) for Coulomb interactions, following "A Short Course on the Fast Multipole Method" by Leslie Greengard: http://math.nyu.edu/faculty/greengar/...
Eder Lima de Albuquerque's user avatar
2 votes
1 answer
172 views

Here's my code that I've made to simulate two neutron stars resulting in a kilonova: import numpy as np import matplotlib.pyplot as plt G = 6.6743e-11 c = 299792458 R_ns = 12000 m1 = m2 = 3.5e31 ...
AYUSH's user avatar
  • 29
0 votes
1 answer
105 views

I am trying to write a code which propagates a beam a certain distance through Fourier propagation. Here is the relevant excerpt of the code: import numpy as np import scipy from matplotlib import ...
Henrique Guerra's user avatar
0 votes
0 answers
54 views

I'm developing an A-Frame (HTML/JS) project for use on Meta Quest 1 and on PC via Netlify to create a simple VR escape game. I want to add physics (collisions, gravity on objects, impassable walls) ...
STban's user avatar
  • 1
6 votes
1 answer
160 views

I'm trying to plot some data with a non-linear fit using the function: kB and Bv being a constant while J'' is the independent variable and T is a parameter. I tried to do this in Python: #Constants ...
Tom291's user avatar
  • 601
0 votes
1 answer
200 views

I'm using the suntime class that is based on: "Calculate sunrise and sunset times for a given GPS coordinate within PostgreSQL". I'm struggling with the following: At the end of the ...
E. M.'s user avatar
  • 23
0 votes
0 answers
136 views

I want to know if pybullet is accurate enough to use it to simulate physics environments to train machine learning models. I want to create a line following robot that follows a line based on what it ...
alienare 4422's user avatar
0 votes
0 answers
51 views

I’m working on a 3D side-scrolling game in Unity where I want to cast rays from a Spot Light to detect obstacles behind which I want to generate a shadow platform (similar to Projection: First Light). ...
UserStudentPressure's user avatar
2 votes
1 answer
71 views

Based on the information provided in these lecture notes, the leapfrog integration algorithm should preserve area (for single-body systems) in phase space. I implemented the algorithm for a Coulomb ...
AJB's user avatar
  • 111
1 vote
1 answer
59 views

I have been trying to make a leapfrog integration to document the variation of the hamiltonian over time for the 3BP, but I never really grasped how to implement it using the normal half-step method ...
Nnx_0C's user avatar
  • 13
1 vote
0 answers
61 views

I am working on generating a quartic trajectory with a quintic finish with known points and an acceleration limit on matlab. After creating this trajectory using the constants I calculated I am trying ...
Mehmet Emre Kılıç's user avatar
6 votes
1 answer
254 views

I have created a 2D physics simulation in rust that works for the most part. It involves creating balls which collide with each other and their container. I have looked at a lot of resources and found ...
FreddieLumsden's user avatar
0 votes
0 answers
75 views

I have a box, which is used in a similar fashion to a Sokoban box. Here is a screenshot: The box has an Area3D collider on each vertical side. When the player enters the Area3d the box is moved ...
FatMunkey's user avatar
0 votes
0 answers
55 views

My iOS app uses RealityKit with Physics to move entities. It requires to put objects on a board. This must be done with a totally inelastic impact, i.e. the object must not bounce back when put on the ...
Reinhard Männer's user avatar
-1 votes
2 answers
45 views

trying to make a flappy bird clone and i cant seem to make the player and walls collide (very new beginner) so was looking for solutions and none of them worked for me using UnityEngine; public class ...
Mulankunas's user avatar
0 votes
0 answers
59 views

Results of my code on top of which I would like to plot the cycle: I’m struggling to plot a Rankine cycle using the provided thermodynamic points. I can input any data they want, but I can’t find the ...
TurboCapra's user avatar
0 votes
0 answers
65 views

I am looking at the decay of $Z\rightarrow e+e-$. I am trying to plot d$\sigma$/dcos$\theta_{e-}$ vs cos$\theta_{e-}$ where $\theta_{e-}$ is the angle, in the correspondent Z rest frame, between the ...
Chris G's user avatar
2 votes
0 answers
60 views

I have used the wavefunction of hydrogen and started plotting the electron clouds for each specific electron orbital. I used the Numpy, SciPy for calculations and used plotly's graph objects for ...
Thisanda Ayuka's user avatar
1 vote
2 answers
113 views

I am modelling a Coupled Spring-Mass-System: Two objects with masses m1 and m2, and are coupled through springs with spring constants k1 and k2, with damping d1 and d2. Method 1: taking a cookbook-...
Daniel Liu's user avatar
0 votes
0 answers
110 views

I am trying to understand the trackpy algorithm for calculating MSD in comparison to a simple manual method of calculating it. My intention is to use trackpy to analyze the tracks of Brownian ...
nithilamk's user avatar
2 votes
1 answer
86 views

I need to find the intersection of a straight line and a stress-strain curve to determine the offset yield strength. I've been trying to use the following code, which successfully prints the curve ...
Clem Entwistle's user avatar
2 votes
1 answer
71 views

I've been trying to make a toggle button to turn on and off the gridlines on my graph every time it's clicked. I understand how the toggle works as I was able to do it for some lines being animated ...
Nelly's user avatar
  • 35
0 votes
0 answers
66 views

I am modeling a radar image based on my already modeled field of sea surface waves. Faced with the problem that the final image does not work right. It turns out to be some kind of nonsense. You can ...
Varga's user avatar
  • 49
1 vote
0 answers
80 views

I am trying to simulate a 3D double pendulum using Python, SymPy, and SciPy. The goal is to solve the Lagrange equations and animate the results. However, the script runs indefinitely, and I have ...
Andrej Horehleď's user avatar
1 vote
0 answers
106 views

I created a script that simulates gravity between satellites and a planet and predicts the orbit of the satellite based on the orbital elements calculated by the satellite's velocity and position ...
Privvet's user avatar
  • 21
1 vote
1 answer
110 views

Clip of wonky orbit I made a rudimentary (I'm still extremely proud of it) orbital sim. The satellite does not go around the planet on the second pass the same way it went around on the first pass. ...
Privvet's user avatar
  • 21
0 votes
0 answers
43 views

I've been trying to compute the entanglement entropy for Bell Diagonal states. I tried many implementations in python and all of them gave me that all possible states have this entropy equal to 1. ...
C. R. L.'s user avatar
0 votes
0 answers
68 views

I try to simulate the following problem: Compute the density of states numerically of a BCS superconductor with magnetic impurities using the tight binding model of 1D chain with periodically border ...
ivana curci's user avatar
0 votes
1 answer
64 views

I am trying to generate trajectory between 2 points A and B along surface of a hemisphere. Constraints: The end point of the trajectory(Point B) should have velocity in a certain direction given by (...
Pratham's user avatar
  • 115
0 votes
0 answers
65 views

The ITO(n)/a-Si(p) interface creates an opposing diode for the c-Si(n) based SHJ.I am trying to implement tunnelling using bbt.nonlocal and tat.nonlocal models.No matter how small the qtmesh is, I ...
Rushikesh Jadhav's user avatar
1 vote
1 answer
49 views

Problem: I want my "Follow Coordinates System (FCS)" to reach the position of a "Set Coordinates System (SCS)" while maintaining a trapezoidal velocity profile using given ...
Imm's user avatar
  • 31
0 votes
0 answers
51 views

I'm trying to implement a simple molecular dynamic simulation in Python for N atoms with periodic boundary conditions while allowing coordinate wrapping to visualize the atoms interacting through ...
Lana.s's user avatar
  • 47
0 votes
1 answer
134 views

I'm trying to implement a simple MD simulation in Python (I'm new to this),I'm using LJ potential and force equations along with Verlet method. I posted another question about the same code yesterday ...
Lana.s's user avatar
  • 47
1 vote
1 answer
79 views

I'm trying to implement a simple MD simulation in Python (I'm new to this),I'm using LJ potential and force equations along with Verlet method: def LJ_VF(r): #r = distance in Å #Returns V in (...
Lana.s's user avatar
  • 47
0 votes
0 answers
110 views

I’m working on a script to perform measurements with a Keithley 6487 and am currently experiencing difficulties with reading voltage and current values. Although I have some experience with PyVISA on ...
8905t's user avatar
  • 21
1 vote
1 answer
92 views

I'm creating a simulation for a binary star system in python using matplotlib. I want it to change based on the users inputs through sliders I've provided. When I first created this without any real ...
Nelly's user avatar
  • 35
1 vote
0 answers
53 views

I am working on a numerical project using Python3 to estimate the phase transition of a 2-D Ising model using deep learning. I have completed up to the point of calculating the spin coordination using ...
Hayato's user avatar
  • 11
1 vote
1 answer
86 views

Background: Antiresonance is the phenomenon when the amplitude of a system (say an oscillator) shows a significant dip. Here is an article in Wikipedia discussing the same in a coupled system. The ...
Sourin Dey's user avatar
0 votes
0 answers
48 views

I am working on a Python project to generate rocket engines according to user parameters. However, I've been dealing with the thermochemistry calculations for quite a while and I do not know what to ...
MAKS_Enjoyer's user avatar
2 votes
1 answer
121 views

I am coding a physics simulator for simulating the static behavior of objects floating in water (mainly ships). Object position is described by immersion depth (draft), and two angles (heel and trim). ...
K.S.'s user avatar
  • 77

1
2 3 4 5
73