Skip to main content

Questions tagged [physics]

Refers to real-world physics. For simulation of physics in games use the [game-physics] tag instead, for questions using an existing physics engine use [physics-engine]. Physics is a science that studies the interactions of energy and matter. Questions with this tag concern the simulation or implementation of real-world physics concepts in programming.

0 votes
0 answers
55 views

Calculating and assigning Christoffel symbols to variables with python

I like to calculate the Christoffel symbols from a given line element and assign the expressions of each of Christoffel symbols to the variables in a user-defined function. I am using the Python ...
raf's user avatar
  • 243
1 vote
1 answer
48 views

How to implement proportional guidance in 2D

I am trying to implement proportional navigation in order to create a missile class that receives the target location every frame update and intercepts it accordingly. I would like the missile to ...
Stephan's user avatar
  • 63
0 votes
0 answers
11 views

AFM assylum research .ibw file- Data Plot

I am trying to plot data from assylum research software for AFM scanning. All files are .ibw type. I am trying it on Matlab. No matter what I do Matlab can't open data of the Ibw files. I am using Mac ...
Fariha Tasnim's user avatar
0 votes
1 answer
79 views

Unity 3D - Raycasts wont register in time if player has high enough velocity

hope someone here smarter than me can figure out my mistake. I have a simple platformer game using raycasts to check if you’re standing on the ground. I tried colliders, but started using raycasts to ...
Madswint's user avatar
1 vote
1 answer
19 views

TensorFlow second derivative calculation always returns zero in Quantum PINN solver

I'm attempting to implement a simple Physics-Informed Neural Network (PINN) for Solving the time-independent Schrödinger equation given an arbitrary scalar potential. The details aren't, I think, ...
PerplexedDimension's user avatar
0 votes
1 answer
30 views

Quantum harmonic oscillator in sympy: Matrix elements of Hamiltonian not as expected

I'm trying to calculte matrix elements of teh Hamiltonian for teh harmonic oscillator. I use the solutions from sympy.physics.quatnum.qho_1d. My expectations would be that <pis(i)|H|psi(j)>=0 if ...
Rudolf Weeber's user avatar
1 vote
0 answers
44 views

How to get stable collisions using verlet intergration?

I have been working on this simple physics system for a while and i originaly started with euler physics but couldn't manage to get stable collisions working and after switching to verlet integration ...
Lewis Bamford's user avatar
0 votes
0 answers
12 views

Hurdle to implement periodic boundary conditions in Integer quantum hall effect on time-multiplex setup

I'm trying to compute the band structure of a system with periodic and open boundary conditions in MATLAB. The original code works fine and able to generate this : . which is representing open ...
shome's user avatar
  • 1,402
-1 votes
2 answers
57 views

Impulse force differences in Unity vs Unreal

Let's take a sphere of 30 kg on a plane. I want to make the ball jump. The gravity is set to -10 in Unity or -1000 in Unreal. In Unity, I use this line to make my ball jump: AddForce(Vector3.up * 9 * ...
Émile Pettersen-Coulombe's user avatar
-1 votes
0 answers
23 views

Physics-Informed Neural Network is not learning the underlying physics problem at all

I am trying to train a Fully Connected Neural Network (FCN) to learn the behavior of a Ordinary Differential Equation (ODE). Initial Problem My ODE is describing the behavior of a heating system and ...
Lukas Hierzegger's user avatar
-1 votes
0 answers
16 views

Bug in updating a system of differential equations

I am working right now with python to solve an ordinary differential equation involving some background function A_0. Very concisely, the problem I want to solve is something like this: while not ...
dolefeast's user avatar
0 votes
1 answer
61 views

Tips for improving the look of projectiles in Unity

Is there some better way of instantiating simple projectiles in Unity so that they look better (esp while moving). Currently, it looks like this for me (blue marks player's move direction, yellow ...
Astantos's user avatar
  • 121
-1 votes
1 answer
26 views

Circular motion finding points on the route

I need help, have been racking my brain for two days without success I have a plane that is given several parameters: starting point (x,y), speed in a straight line (it is constant), the starting ...
kingfxp123123's user avatar
2 votes
0 answers
34 views

How to deal with "real" data and closed formed equation in machine learning? [closed]

My goal is to perform regression over a set of data coming from the "real world" (sensors). The data is in tabular format. There are 6 independent features with very different values (...
user19296578's user avatar
1 vote
1 answer
24 views

Why is there a loss of energy in matter.js newtons cradle?

In the live simulation available at https://brm.io/matter-js/demo/#newtonsCradle, how can the issue of energy loss be resolved? Despite setting friction to zero, energy loss still occurs. Does anyone ...
texi's user avatar
  • 50

15 30 50 per page
1
2 3 4 5
240