Institute-for-Future-Intelligence / multiphysics

Interactive Multiphysics Simulation for Everyone
https://intofuture.org/energy2d.html
GNU Lesser General Public License v3.0
58 stars 29 forks source link

Change computational grid #1

Open joaofl opened 10 years ago

joaofl commented 10 years ago

Hi,

I was wondering how could I change the computational grid of the simulator. I'm aware about the decrease on the performance, but I would like to extract some more accurate data for an experiment of mine.

It seems that the size is defined inside the Model2D.java file. If I change it, should it work fine?

And after changing it, how could I compile it?

Thank you very much.

João

charxie commented 8 years ago

Sorry, I didn't see these issues until today. For conduction simulations and probably radiation simulations, this should be fine. For convection simulations, this is more a problem due to the butterfly effect in transient simulations. A change of grid size will create impacts far greater than a butterfly as you can imagine. So I would say steady problems should be fine, but I am not sure about transient problems. I am curious how other CFD software deals with this.

joaofl commented 8 years ago

@charxie: Was there any development regarding this? It is a great simulator for dummies and for learning proposes, since going to more complex CFD can cost a lot (Open FOAM for example).

AnaMarkH commented 7 years ago

@joaofl: You might try the energy2d version in the current pull request. This update should be able to properly deal with modified grid resolutions as you intended right at the beginning.