3,613 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
2
votes
1
replies
55
views
Compute 1D motion profile with acceleration, deceleration and mid-course target change
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 ...
0
votes
0
answers
40
views
Ray tracing for the offner stretcher
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 ...
0
votes
1
answer
53
views
Rotate Pelvis to face the camera UE5.6
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 ...
2
votes
0
answers
62
views
Python package to compute ekman velocities in the water column from observations? [closed]
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 ...
1
vote
2
answers
139
views
How to fix the erfz function from package pracma properly?
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 ...
-1
votes
1
answer
133
views
Calculating second focal point of planetary orbit [closed]
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. ...
0
votes
0
answers
85
views
Trying to graph of the relationship of the frequency and wave number of the spin wave
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 ...
2
votes
1
answer
218
views
Physics of cubes in simulation
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 ...
3
votes
1
answer
367
views
Integration limits when integrating to infinity using quad and vectorize
I have a rather complicated physics-model (Thomas Hopfield model from https://www.researchgate.net/publication/...
1
vote
2
answers
107
views
Issues with boundary layers in step propagation
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 ...
1
vote
1
answer
221
views
FMM M2M Translation Discrepancy (Greengard's Short Course) with SciPy Spherical Harmonics
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/...
2
votes
1
answer
172
views
What's making these two neutron stars not get closer to each other? (Kilonova Simulation with Python)
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
...
0
votes
1
answer
106
views
Fourier propagation is propagating backwards
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 ...
0
votes
0
answers
54
views
Unable to add physics (collision, gravity) in my A-Frame project (Quest + PC via Netlify)
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) ...
6
votes
1
answer
161
views
Scipy OptimizeWarning: Covariance of the parameters could not be estimated when trying to fit function to data
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
...