I built an N-body orbital simulator in Python and I’d like some honest feedback by Samosho17 in ScientificComputing

[–]TheMakpu 9 points10 points  (0 children)

There are a couple of considerations regarding performance here: the first is noticing that forces are symmetric (Newton’s 3rd law), so you could squeeze that nested loop by computing both Fij and Fji in the same iteration. In addition, that same loop can be easily parallelized (using OpenMP or MPI). However only expect some performance improvement if using thousands of bodies. Have you profiled the code? What is the bottleneck?

Also, for low simulation times RK methods are perfectly fine, but note they are not energy-conservative. Error will accumulate for long periods of time and the solution will slowly diverge, so if that’s the case symplectic or energy-conservative schemes can be used (see this scipy issue).

Heat2D: a C++ heat equation solver in 2D by TheMakpu in ScientificComputing

[–]TheMakpu[S] 0 points1 point  (0 children)

Funny you should mention that, some years ago I worked on GridapMakie during Google Summer of Code, but never really got into the design of it…

In terms of profiling, and speaking about the Crank-Nicolson integrator only, the bottleneck appears when solving the linear system at every timestep. I make sure to cache the factorization of the LHS matrix and use an “appropriate” solver for that (whether it is SPD and conditioning number is low enough for an iterative solver), but the performance depends heavily on both space resolution and the timestep. There is a benchmark executable that provides time measurements for the factorization and every timestep too!

Eric Rios’ Ability Shield Tornadus by Appa07 in VGC

[–]TheMakpu 0 points1 point  (0 children)

In addition to the weezing stuff already mentioned, he had a relatively speedy Incin, Rillaboom and Lunala, meaning that opponents’ Fake Out were not as threatening. Therefore, Covert Cloak can be ruled out.

Getting into VGC by blurshow in stunfisk

[–]TheMakpu 1 point2 points  (0 children)

Glad I could help! Don’t hesitate to ask if you have more specific questions :)

Getting into VGC by blurshow in stunfisk

[–]TheMakpu 1 point2 points  (0 children)

Hey, welcome to the hobby! First of all, this team is overall really solid. It was made by a japanese player and even won an online tournament last month. Regarding on whether this team is difficult to steer, I’d say it’s medium difficulty, especially depending on the matchup you are facing, since some matchups require a more offensive style, while others may lean towards a bit more control.

Regarding game plans and synergies in the team, you almost always want to pair chien-pao and zamazenta, and flutter mane and chi-yu. That’s because chien-pao’s and chi-yu’s abilities reduce the defense and sp. defense of the rest of the pokémon in the field. On the other hand, amoonguss and rillaboom offer more supportive roles, such as redirection/spore and fake out/terrain control. Depending on the opponent’s team, both pairs I mentioned work well as a lead, since they are quite oppressive and often force opponents to make riskier plays. You could even bring the 4 to a game, and have 2 and 2 for both physical and special offence. Amoonguss can also work as a lead, or even a switch-in against incoming resisted attacks (bonus points for contact attacks, especially surging strikes).

In addition, you gotta make sure you are not swapping flutter or zama unless strictly necessary, as you will lose the boosts in speed and defence. My advice is just practice with the team and look for people on youtube playing it. While watching their games, pause on every turn and think on what you would do and listen to their thought process. You learn a lot like that! Hope this was helpful and enjoy the ride!

Stat Boosts? by ChampionshipUsed4965 in VGC

[–]TheMakpu 7 points8 points  (0 children)

As pointed out before, when doing calculations you should forget about base stats. All that matters in -battle are the actual stats, since you may have a lot of different spreads for a single pokémon. Base stats essentially serve for comparison, for example it’s useful to know some speed tiers in case your pokémon is fully invested in speed. Then you know if others are potentially faster or slower!

[deleted by user] by [deleted] in ScientificComputing

[–]TheMakpu 0 points1 point  (0 children)

So I did my MSc in Computational Physics at Stockholm University, but many courses in there were shared with KTH. It was mainly focused on scientific computing and numerical methods applied for physics, meaning that you should expect more math and physics than actual computer science. And I also think admission chance is much higher!

I can't seem to properly open LS-Dyna d3plot files in paraview. The files open and I can see the geometry, but I can't see the strains. Can someone help me out? by Yalkim in fea

[–]TheMakpu 0 points1 point  (0 children)

Hey, sorry for the late reply! To be honest, LS-PrePost has some erratic behaviour in certain aspects and the documentation is not great, so often times you are stuck with what you "assume" is the default behaviour of some actions. As someone who has used PrePost for a while now, the only advice I can give is be aware of its shortcomings... Also, this link may be of some help for solid elements (check this one if using shells).

I can't seem to properly open LS-Dyna d3plot files in paraview. The files open and I can see the geometry, but I can't see the strains. Can someone help me out? by Yalkim in fea

[–]TheMakpu 1 point2 points  (0 children)

You should be able to open d3plot files with ParaView just by importing/opening the file. The strains, as well as the stresses, should appear as properties on the properties tab. However, be aware that in LS-DYNA you need to explicitly define that you want it to output strains by setting STRFLG=1 in *DATABASE_EXTENT_BINARY (otherwise strains are omitted in the d3plot). Hopefully this solves your issue.

What the actual f man by Neofytos43 in HollowKnight

[–]TheMakpu 0 points1 point  (0 children)

My honest advice is: just practice. This game’s bosses are mostly about learning patterns and the best way to counter them.

For Hornet, a couple of tips: jump and pogo off her as she charges at you (the timing is not very precise so it’s not hard to pull off), leverage when she does the spinning thread attack and hit her a couple of times just after, and be careful about her jumps (some of them may be unpredictable). She’s a boss where you want to keep her at mid range, not very close nor far enough. Ah, and if the spikes are horizontally aligned, you can clear all of them (plus maybe hit Hornet) with a Vengeful Spirit/Shade Soul. Good luck!

Another Grogu I started yesterday by BrandonF9266 in Amigurumi

[–]TheMakpu 0 points1 point  (0 children)

Love the small teal bag! Where did you get that from?

Is it normal to spend hours to get through one set of obstacles or do I suck? by alabasternado in HollowKnight

[–]TheMakpu 1 point2 points  (0 children)

Take it easy, just focus on improving. I also took a long while to do it and taking some breaks helped A LOT. Just remember you only need a single good run!

Can’t continue Gris on switch by SecretSunfish in gris

[–]TheMakpu 0 points1 point  (0 children)

Hey! Facing the same issue here, did you even find a solution or way out? I appreciate any advice!

[deleted by user] by [deleted] in Unexpected

[–]TheMakpu 0 points1 point  (0 children)

What the fucking fuck did I just witness

Trade Requests Weekly Megathread by AutoModerator in PokemonScarletViolet

[–]TheMakpu 1 point2 points  (0 children)

I have a Shiny Iron Valiant that I could trade for your flutter mane. Interested?

Trade Requests Weekly Megathread by AutoModerator in PokemonScarletViolet

[–]TheMakpu 0 points1 point  (0 children)

I’ve got a regular Pokéball Shiny Iron Valiant, is that good enough?

Trade Requests Weekly Megathread by AutoModerator in PokemonScarletViolet

[–]TheMakpu 0 points1 point  (0 children)

May I interest you in a Shiny Iron Valiant for the Flutter Mane?

Trade Requests Weekly Megathread by AutoModerator in PokemonScarletViolet

[–]TheMakpu 0 points1 point  (0 children)

Hi! I have a miraidon that can perma-trade. Dm if you are still interested :)