Skip to main content
replaced http://physics.stackexchange.com/ with https://physics.stackexchange.com/
Source Link

Inspired by this questionquestion, I modified the script to run a simple simulation of Taylor-Green vortex using LBM and post-processes it using P5*js (an official Javascript port of the Processing API). Unfortunately, it is not performing well, but as I am new to Javascript programming, I lack the insight to really optimize the code. Getting some advice and suggestions for improvement would be greatly appreciated.

Inspired by this question, I modified the script to run a simple simulation of Taylor-Green vortex using LBM and post-processes it using P5*js (an official Javascript port of the Processing API). Unfortunately, it is not performing well, but as I am new to Javascript programming, I lack the insight to really optimize the code. Getting some advice and suggestions for improvement would be greatly appreciated.

Inspired by this question, I modified the script to run a simple simulation of Taylor-Green vortex using LBM and post-processes it using P5*js (an official Javascript port of the Processing API). Unfortunately, it is not performing well, but as I am new to Javascript programming, I lack the insight to really optimize the code. Getting some advice and suggestions for improvement would be greatly appreciated.

Tweeted twitter.com/StackCodeReview/status/652616443708764162
added 221 characters in body
Source Link
nluigi
  • 193
  • 10

Edit 1: Running the profiler in Chrome results in:

enter image description here

This shows that most of the CPU is being used by P5*JS rather than the code.

Edit 1: Running the profiler in Chrome results in:

enter image description here

This shows that most of the CPU is being used by P5*JS rather than the code.

Spelling.
Source Link
ferada
  • 11.1k
  • 25
  • 63

Inspired by this question, I modified the script to run a simple simulation of Taylor-Green vortex using LBM and post-processes it using P5*js (an official jsJavascript port of the Processing API). Unfortunately, it is not performing well, but as iI am a new to Javascript programming, I lack the insight to really optimize the code. Getting some advice and suggestions for improvement would be greatly appreciated.

Inspired by this question, I modified the script to run a simple simulation of Taylor-Green vortex using LBM and post-processes it using P5*js (an official js port of the Processing API). Unfortunately, it is not performing well, but as i am a new to Javascript programming, I lack the insight to really optimize the code. Getting some advice and suggestions for improvement would be greatly appreciated.

Inspired by this question, I modified the script to run a simple simulation of Taylor-Green vortex using LBM and post-processes it using P5*js (an official Javascript port of the Processing API). Unfortunately, it is not performing well, but as I am new to Javascript programming, I lack the insight to really optimize the code. Getting some advice and suggestions for improvement would be greatly appreciated.

added 444 characters in body
Source Link
nluigi
  • 193
  • 10
Loading
deleted 325 characters in body
Source Link
nluigi
  • 193
  • 10
Loading
edited title
Link
Quill
  • 11.9k
  • 5
  • 40
  • 93
Loading
edited title
Link
nluigi
  • 193
  • 10
Loading
Source Link
nluigi
  • 193
  • 10
Loading