Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [simulation]

Simulation is the process of mimicking the behaviour of a real physical process or system using a representative model.

0 votes
0 answers
43 views

What techniques are there to take averages and errors in a Monte Carlo simulation in C? Can my code be improved?

I'm trying to perform a Monte Carlo simulation in C and these are the steps I'm following: We assume an infinite reservoir compound of CO and NO molecules with partial pressures 𝑦CO and 𝑦NO(= 1 − 𝑦...
Auyk's user avatar
  • 1
2 votes
1 answer
158 views

How to add damped constraint force to constrained dynamics simulation?

I have implemented a constraint dynamics physics simulation as proposed by Andrew Witkin et al 1990, but I cannot get the initial constraint "snapping" correctly. I implemented $$ JWJ^{T} \...
EmmanuelMess's user avatar
0 votes
0 answers
40 views

Advanced computing on FPGA

I am an absolute beginner in the FPGA topic (so far I have only implemented a couple of simple logic gates in Verilog and simulated them in ModelSim). I studied digital electronics, logic elements, ...
ayr's user avatar
  • 131
0 votes
0 answers
56 views

Why is Magnetic Susceptibility not showing the expected transition in 2D&3D Ising Model?

I'm trying to code the Ising Model with the metropolis algorithm to study the ferromagnetic-paramagnetic transitions. The code seems to work ; the equilibration happens. While equilibrating, the ...
SSsaha's user avatar
  • 1
0 votes
1 answer
50 views

Would a Co-simulation orchestrator work when a model uses a variable step size integrator

In every paper i was able to find, detailling the process of writing a co-simulation orchestrator (either Jacobi or Gauss-siedel), the paper assumed that both models were to compute their outputs on ...
J.M's user avatar
  • 131
0 votes
0 answers
34 views

Synchronous integration vs asynchronous integration in simulations with complex problems

Lets say i want to create a detailed simulation of a complex system. For instance a drone. This simulation will have to contain a few models, each one with it's own requirements, for instance A 6Dof ...
J.M's user avatar
  • 131
0 votes
0 answers
51 views

Calculating a 2D Ewald sum for a multipolar expansion

I am attempting to calculate the potential of a particle at the center of an infinite two-dimensional lattice as per the following reference: Reference: Lambin, PH & Senet, P. Ewald Summation of ...
JasonC's user avatar
  • 43
0 votes
0 answers
76 views

How can I compute the longest relaxation time?

Cross-posted on Stats.SE and on MMSE. In the case of Monte Carlo simulations: Autocorrelation Time ($\tau_{\text{int}}$): A measure of how many steps are needed for the correlations in the chain to ...
user366312's user avatar
2 votes
1 answer
422 views

How to leverage the GPU for parallel 3-body problem computations

I have a 3-body simulation which must run millions of times. As far as I know, the GPU shines when it gets to preform simple operations on huge matrices/arrays. Currently I'm debugging and running my ...
Remeraze's user avatar
1 vote
0 answers
102 views

Can I reduce my simulation error with a staggered grid, postprocessing and compatibility equation feedback?

What I did Using the finite difference method, I solved with a certain amount of error the following system of hyperbolic partial differential equations in cylindrical coordinates (the problem is ...
FriendlyNeighborhoodEngineer's user avatar
0 votes
0 answers
47 views

2nd-order backward difference approximation for temporal terms of Euler–Bernoulli beam

I am trying to solve the Euler–Bernoulli beam numerically in structural dynamics analysis: $$\frac{\partial^2w(x,t)}{\partial t^2}= \frac {q(x,t)}{\mu(x)}-\frac {1}{\mu(x)}\frac {\partial^2}{\partial ...
Chaozhi Qiu's user avatar
0 votes
0 answers
65 views

Determining Stainless Steel Pipe Length for Heat Transfer to Reach 1000°C

I'm working on a Uni project where I need to determine the length of a stainless steel pipe that is required to heat a fluid up to 1000°C. The pipe will be placed in an oven that can reach up to 1400°...
Apo's user avatar
  • 1
0 votes
0 answers
45 views

How do we calculate solvent accessible surface area (SASA) for a system simulated with annealing protocols in Gromacs?

I calculated SASA for 4 systems using the following command. The trajectory file (run.xtc) is not treated with gmx trjconv option. In my MD simulation, I followed two annealing cycles in each 50 ns ...
Ema 's user avatar
  • 21
0 votes
0 answers
13 views

Simulating a dataset from model output when model includes multiple binary deviation-coded variables

I am trying to simulate data using parameters from a glmer() model output. The model, which comes from a published paper, is as follows: DV ~ 1 + group* sex *verb type + trial number + (1 |participant)...
HungryHippo's user avatar
0 votes
0 answers
72 views

Softening vs Smoothing Length... Is There a Difference?

I have a simple questions on terminology. Is there a difference between softening length and smoothing length? I have been using the 2 terms interchangeably as the minimum distance between particles ...
dcro's user avatar
  • 1

15 30 50 per page