0
$\begingroup$

This question is about computation/computational physics.

Imagine that you want to solve $10^6$ equations of motion, and you have $10^6$ degrees of freedom (position of the particle).

How many RAM memory would you need (theoretically) to do this?

(I am not interested in the final answer, I am just interested in the thinking of estimate this.)

Thank you

$\endgroup$
3
  • $\begingroup$ I would imagine you would need to store $10^6$ floating point numbers. A double uses up 8 bytes, so you would need around 8MBs. $\endgroup$ – Yuval Filmus Aug 28 '17 at 18:01
  • 4
    $\begingroup$ This probably highly depends on the type of the equations, and how you intend to solve them $\endgroup$ – Ariel Aug 28 '17 at 22:19
  • $\begingroup$ This might be a better fit for Computational Science but it seems off-topic here, to me. $\endgroup$ – David Richerby Feb 28 '18 at 18:43
1
$\begingroup$

As a first approximation, most of the memory will be spent on storing $10^6$ floating point numbers (one per degree of freedom). Assuming double precision numbers are used, each number takes up 8 bytes, for a total of 8MB.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.