Recent content by Timo

  1. T

    Physics Tenure tracks and dead ends in academia

    There are permanent non-professoral university positions that I would still count as academia. My PhD advisor, for example, was not given tenure. He officially now is responsible for lab security (as a theoretical physicist). I have been at two physics institutes that had a permanent position...
  2. T

    Physics Need career guidance after masters in physics

    A Masters in physics does not help with a career in Computer Science by itself. The reason why many physicists end up in computer areas are 1) being a nerd that studies physics correlates with being a nerd that learns coding by themself, and 2) a Masters in physics doesn't really prepare for any...
  3. T

    Help with Monte Carlo Wang-Landau JDoS

    It is not guaranteed that you constructed all microstates. So if that's what you meant by "[not] all microstates will be identified", then you are correct. Simple example: A 20x20 Ising model has 2^400= 2.5*10^120 microstates. Generating 10^10 microstates per second (10 per nanosecond) would...
  4. T

    How to normalize the density of states in JDoS Wang-Landau?

    I assume that you talk about an Ising like model. If you sample in E and m, then the number of states with E_groundstate is one for m=+N and m=-N (where N is the number of spins total and m assumed to be in units of spins pointing up). The number of states with E_groundstate and any other...
  5. T

    Courses Advice on Becoming a Particle Phenomenologist

    Phenomenology is indeed considered as theory if you make a theory/experiment divide. Purely based on the course names: QFT 1, QFT 2 and particle physics sound like no-brainers there. Nuclear physics and particle astrophysics sound like solid choices, depending on whether your interest is the...
  6. T

    Python How does Python tell that an integer is actually an integer?

    Since I did not know what "bin" does, I looked it up. You seem to assume it gives you the representation that Python uses internally to represent an object. I think it doesn't: "The bin() method converts and returns the binary equivalent string of a given integer. If the parameter isn't an...
  7. T

    Engineering Many rejections - Not knowing why

    Judging from the other responses you got on this I may be alone with my opinion, but: I do not think that your PhD supervisor is qualified to give you career advice outside of academia. Most university professors never had a full-time job outside of academia. It is also unlikely that former...
  8. T

    Troubleshooting Matrix File Uploads: Why Am I Getting Zeros?

    On 2nd though, here is another suspicion what goes wrong: Check the code where you output your matrix: Maybe your code assumes a 4x4 matrix and fills the missing entries with 0 or access to uninitialized memory locations like matrix[0][1]?
  9. T

    Troubleshooting Matrix File Uploads: Why Am I Getting Zeros?

    The code looks fine to me. And when I run it, it works as expected: I created a file data.dat with the entries 1234 5678 9012 3456 and ran it with your code, extended by a main int main() { using namespace std; ifstream file("data.dat"); vector<vector<int>> matrix...
  10. T

    Java Read a csv file and process the data

    My Java is a bit rusty. But the code looks very readable to me. This is what it does: Read the data from a file into an array of strings, where each entry represents a single line in the data file. Extract the first line (I assume that is what Array.remove(0) does) and split it into an array of...
  11. T

    Python Is there a Python function that finds an unknown inside an integral?

    One approach would be to define f(h) = the_integral(h) - C, and then use some scipy root solver to find h such that f(h) = 0.
  12. T

    Problems with Landau Wang algorithm in fortran

    So I had a look at the code. I've never seen Fortran code before, but here's a few comments based on what I understood: Most importantly, the line DO while ((ln_f > eps).and.(istep < MCtot)) seems to terminate the sampling when MCtot steps are reached. Your configuration file sets them at 10k...
  13. T

    Problems with Landau Wang algorithm in fortran

    I didn't really look into your code specifically, yet. But I got a little interested in the question and started writing an own version. The first thing I wonder about is why you are approaching this model with a Monte-Carlo approach. The model seems simple enough to handle without. You already...
  14. T

    Question about operator overloading

    A reference to an object is actually the closest thing you can get to the object itself. You are assuming that when you pass by value, f(Length right), you'd pass the object. That is not the case. You are actually passing a copy of the object. It is the &-case that passes the object. You can...
  15. T

    Trying to decide which programming language I want to learn

    :oldbiggrin:. I actually introduced a bug into our software yesterday that was totally avoidable if I had read the comment around line 4000 (of 27k) in the file I was editing.
Back
Top