5,789 questions
0
votes
0
answers
54
views
Verilog & Vivado - How to load memory initialization files into BRAM on post-synthesis simulations
I am designing a 16 bit microcontroller for a college project using Vivado and Verilog. On behavioral simulations i use $readmemh and everything runs fine, the instructions are loaded from memory and ...
Tooling
0
votes
17
replies
189
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....
0
votes
0
answers
82
views
True slope parameter for quantile regression with heterogeneous error [migrated]
I am trying to perform a Monte-Carlo simulation on quantile regression using R. Currently I am getting stuck simulating the data from the model below.
Y=beta_0+beta_1*X1*u1+u2
where, u2~N(0,1),u1~exp(...
1
vote
0
answers
41
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
21
views
Using GT Automation / Scripting API in GT-SUITE 2016 (GT-ISE) for CFD Coupling Cases
I’m working with GT-SUITE 2016 (GT-ISE) and want to automate creating and running CFD-coupled simulations using the GT Automation / Scripting API.
The official docs mainly cover manual setup for ...
0
votes
0
answers
122
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(&...
Advice
0
votes
1
replies
42
views
Realism and Reliability of Ngspice Simulations
I am interested in learning about circuitry, but I'm scared on investing money for soldering tools, breadboards, and components and later become discouraged and end up wasting money in the process.
I ...
3
votes
2
answers
242
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 ** ...
2
votes
1
answer
84
views
Python multiprocessing parallelization
I have a class with methods to simulate sources across 16 detectors using the Gelsa package. In my main script, I call the method generate.sources. I am trying to use multiprocessing to speed up the ...
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
votes
1
answer
132
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. ...
1
vote
1
answer
104
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 ...
0
votes
0
answers
41
views
SOFA: elastic band tunnels through pegs under high strain/fast motion
I control two grippers with two Geomagic devices in a SOFA scene. The task is to grasp a soft elastic band (a torus) and place it into target configurations (shown at the beginning of the task).
When ...
1
vote
1
answer
53
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 ...
0
votes
2
answers
107
views
Is there a better way to simulate work in unit tests? [closed]
My company is finally starting to introduce unit tests.
While going through some of the new tests, I came across this one:
[Test]
public void GetCorrectTimeoutInfoFromTimeSpan()
{
// Arrange
...
1
vote
0
answers
106
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 ...
1
vote
2
answers
106
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 ...
2
votes
1
answer
171
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
...
1
vote
1
answer
54
views
How can I prevent direction-biased sorting while moving values in a grid of tiles?
I am attempting to make a simple, flowing dynamic across a grid of tiles for a game. Essentially, I want water values of cells in the grid to flow to one adjacent cell each frame according to a couple ...
0
votes
1
answer
49
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
1
answer
102
views
Warning Signs in INET 4.5.4 with OMNeT++ 6.1 Despite Successful Build — Still Getting Runtime Errors
Title: Warning Signs in INET 4.5.4 with OMNeT++ 6.1 Despite Successful Build — Still Getting Runtime Errors
Hi everyone,
I’m working on a project using INET Framework version 4.5.4 with OMNeT++ 6.1, ...
0
votes
0
answers
51
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 ...
0
votes
0
answers
39
views
MATLAB: Simulated Annealling getting stuck on a given iteration?
I am currently trying to use simulannealbnd to choose a vector x consisting of n x m elements that minimize a scalar objective function. Call this scalar Ftop, which is actually a negative scalar. So ...
1
vote
1
answer
138
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 ...
3
votes
1
answer
114
views
The simulation results of Vivado are inconsistent with those of HDLBits
I studied Verilog and do my exercises on HDLBits. I came up with a question when trying to solve this problem: https://hdlbits.01xz.net/wiki/Exams/2014_q3fsm
I wrote the following codes according to ...
2
votes
1
answer
57
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
39
views
Reading Values from TIA Simulation
I need to read the values of some Outputs from the TIA PLC simulator.
Is there any way to get this done ?
Currently i'm able to connect to the plc simulator but I cannot read any value as it's giving ...
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 ...
2
votes
0
answers
79
views
Why does survival::survreg produce an extreme estimation?
In the context of a simulation study, I simulate many survival datasets including the following variables:
trt: whether the patient received treatment or placebo (0/1)
Evt: whether the patient died ...
1
vote
0
answers
25
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 ...
0
votes
0
answers
114
views
OMNeT++ crash when trying to open analyzes file
I just started working with OMNeT++ and installing it on my PC, I have a simulation from a github that I want to modify and add my components to.
This simulation works fine but when I try to see the ...
1
vote
0
answers
59
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 (...
0
votes
0
answers
50
views
Problem with foreach(). Why my simulation function works outside foreach()?
I have a 300-line script that defines the function sim(pars, n.sim).
The problem is in my attempt to use more than one core of my laptop.
I run my simulation, wrapping the right parameters like this:
...
1
vote
1
answer
144
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 ...
2
votes
1
answer
85
views
Writing from particles to grid in parallel without locks efficiently [closed]
I have the following setting. I have a set of particle sin a simulation and a grid with cells.
Each particle needs to update a neighbourhood around itself in the grid.
Thus I can think of two options:
...
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 ...
6
votes
1
answer
250
views
Accurate 2D collision simulation in Rust
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 ...
0
votes
1
answer
44
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 ...
3
votes
1
answer
94
views
Optimization of LEDs for uniform light on surface
So I have this problem where i want to make a pattern of LEDs such that the most uniform light is achieved within an area on a plane 5cm away. I can't change the power of the LEDs individually and I ...
2
votes
0
answers
41
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 ...
0
votes
1
answer
35
views
Calculate fitted values from simulated posterior distribution for multiple factors in R
I am trying to simulate data from a liner mixed model in R using the sim() function from the arm package.
Here is a subset of my data.
> dput(data)
structure(list(id = c(989001026313185, ...
1
vote
0
answers
35
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 ...
1
vote
0
answers
58
views
ManiSkill and Habitat installation problems
I'm trying to run Habitat 2.0 (I need only Habitat 2.0) track using the instructions from these github repo https://github.com/Jiayuan-Gu/hab-mobile-manipulation?tab=readme-ov-file#installation but ...
0
votes
1
answer
89
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
2
answers
114
views
How to Set Remote ID for a Drone via MAVLink from GCS?
I am working on a custom implementation to send MAVLink messages from a Ground Control Station (GCS) to a simulated drone. Specifically, I need to set the Remote ID of the drone.
I attempted to use ...
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
102
views
What would be the reason that Ubuntu fails to execute the xdotool key period command?
running a script that uses the "xdotool", "key comma" and "xdotool", "key period".
Yet it seems to skip the period commands entirely or perhaps can't interpret ...
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
1
answer
107
views
How to correctly pass externally defined material and insulation without "non-fixed condition" error?
I am working on a Modelica model where I want to dynamically assign materials and insulation based on parameters set in a .mos script. I define materials as parameters using a function that depends on ...
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) {
...