5,789 questions
Tooling
0
votes
5
replies
57
views
Looking for Advice on Simulators for Autonomous Sailboat Navigation Testing
I am developing an autonomous navigation algorithm for a small robotic sailboat, and I need to test and validate the control and navigation logic in a 3D/2D simulation environment before field testing....
1
vote
0
answers
40
views
Want to get rid of "jagged teeth" from DTS simulator made in matlab
So I made a program in matlab that numerically simulates a DTS system and its almost right but there's one detail that there's "jagged teeth" in the graphic diagram ( circled in blue ) ...
0
votes
0
answers
121
views
AttributeError: 'NoneType' object has no attribute 'columns' BPTK-Py
Depreciation_DM = model.constant("Depreciation_DM")
Depreciation_DM.equation = 0.0708
DMPIncRate = model.constant("DMPIncRate")
DMPIncRate.equation = 0.0284
DMPInc = model.flow(&...
3
votes
2
answers
236
views
BPTK-Py: base ** variable_exponent in equation returns 1.0; np.power/np.log not supported on Converter
I’m building a simulation in BPTK-Py and need a power with a variable exponent inside a node equation:
Resale_Value_DM1.equation = 1 - Depreciation_DM
Resale_Value_DM2.equation = Resale_Value_DM1 ** ...
1
vote
1
answer
107
views
Hard reset gekko model to initial state
I am working on a simulation tool for a certain heat exchange system. I first design the system using a certain routine, and then assess it's off-design performance. For the off-design performance I ...
1
vote
1
answer
95
views
How to distinguish between OS-triggered vs app-simulated input events in Android?
I’m working on an Android project where I need to handle user input events (KeyEvent, MotionEvent) consistently.
Sometimes these events come from real user input (keyboard/touch), and other times I ...
1
vote
1
answer
48
views
Initial Storage for Storage Yards in Material Library
My model simulates a container terminal with a storage yard. This results in a large number of containers needed at the beginning of the model for loading processes. Unfortuantely, my model version of ...
1
vote
0
answers
98
views
Simulation 6 Dof on Mujoco (Joint always moving without controlling)
I'm new and currently working on my 6 Dof Arm project, right now I am try to simulate it using Mujoco but I don't really understand why and how it works, here is the problem: My 6 Dof Arm is always ...
2
votes
1
answer
165
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
35
views
Solidworks simulation API problem accessing Study.Results
In Solidworks simulation I'm having trouble making a VBA macro to automate some operations on Load Case Manager results sets. A part of the code fails at an odd point for an unknown reason, and I can'...
0
votes
0
answers
44
views
Mapping Phone Quaternion Data to Vulkan Coordinates and having Consistent Rotation Behavior
I'm working on a Vulkan project that takes my phone Quaternion data through a UDP connection, and then is used to transform the coordinates of a sword. However, the model doesn't accurately represent ...
1
vote
1
answer
126
views
Scipy and quantum physics
I m trying to find the eigenstates of the Hamiltonian of the hydrogene atom in a 1D problem. I'm defining my space grid, then my Hamiltonian and finally I use the function eigh from scipy.linalg to ...
2
votes
1
answer
53
views
Run ARX Simulation with initial condition with GEKKO
I want to do a temperature simulation with ARX models and found Gekko as framework for it.
I was able to run basically the example of apmonitor and give my simulation an initial condition when using ...
0
votes
0
answers
46
views
End-to-End DVB-RCS2 Simulation phase noise
There is an example on matlab End-to-End DVB-RCS2 Simulation: link.
Why is the influence of phase noise not modeled in this example?
Is this an incorrect simplification of the model or does the phase ...
1
vote
0
answers
24
views
SPH in N-body-simulation with gravity dampens planetary rotation
I implemented a N-body-simulation that combines gravity and SPH (smoothed particle hydrodynamics). With this I can get nice "planets" that warp when they get close and that can collide. But ...
1
vote
0
answers
57
views
How can I optimize the SPH part (OpenCL) of my N-Body-Simulation
I implemented a N-body simulation that combines gravity and SPH (smoothed particle hydrodynamics). I want to optimize the SPH part. I use spacial hashing for the neighborhood search. On the host side (...
1
vote
1
answer
140
views
Improving performance of a threadpool
I am tying to write my own threadpool, I am noticing that currently, trying to use this custom made threadpool is slower than doing the exact same work in a single threaded fashion and I don't ...
1
vote
1
answer
58
views
Does this leapfrog method work for the 3 body problem?
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 ...
0
votes
1
answer
38
views
How to create agents from a resource pool in AnyLogic instead of creating a new agent using source block?
I am creating an AnyLogic model in which the customers (agents) generate a demand that is fulfilled by a retail store through a delivery within 10 minutes. I am using the following process to generate ...
2
votes
0
answers
37
views
Unreal Engine and Niagara component simulation in a Level
So I am trying to render a Niagara Component in a world only when a prompt a specific thing which in my case is a diagnosis - it registers in UE_Logs but doesn't show up, it only appears after the ...
1
vote
0
answers
33
views
Hodgkin Huxley model - incorrect membrane potential?
I am using Hodgkin Huxley model of neuron and stimulating it with microsecond pulses. No matter what I try, I can't seem to get "logical" response of neuron aka membrane potential. Is this ...
0
votes
1
answer
78
views
Follow up: building a for-loop to run ODE simulation through different parameter sets in R
I ended up trying to build a for-loop to achieve my end goal (running an ODE function modeling disease transmission through different scenarios/parameter sets in the most transparent way possible) but ...
1
vote
0
answers
82
views
Boundaries of $past(d) and d in D Flip Flop
I am trying to understand the behavior of the $past() operator in System Verilog using a D Flip Flop with assertion. Looking at the second posedge of the clk, shouldn't $past() refer to the first ...
0
votes
1
answer
67
views
Incorrect modeling of the spectrum of a sequence of pulse signals [closed]
I have a task to simulate a sequence of rectangular pulses. As a result, I wrote Python code, but the end results are not encouraging.
#!/bin/python
import numpy as np
from numpy.fft import fft
...
1
vote
0
answers
41
views
How can I make my red cells repell of blue cells?
How can i achive this, without changing behaviour in the code, rather the forces array. i want them to move, and not just fight in 1 place.
class Sprite {
constructor(posX, posY) {
...