Skip to main content

Biswajit Banerjee's blog

Visualizing ellipsoidal particles with three.js

Submitted by Biswajit Banerjee on

You will find my new article on visualizing ellisoids with three.js at http://www.parresianz.com/javascript/typescript/threejs/vue/vtk-threejs-ellipsoid/

This series contains almost all the information you will need to create your own viz tools in javascript.

-- Biswajit

Javascript frontend for simulations?

Submitted by Biswajit Banerjee on

I've been exploring the possibility of frontend development for engineering simulations in Javascript.  Following on from the previous post on generating VTK XML particle data output files from our simulation, her's a new post on reading in those files in Javascript.  See my article at http://www.parresianz.com/javascript/typescript/vue/vuex/xml/reading-vtk-particles/.

-- Biswajit

Reading input files in your C++ research code

Submitted by Biswajit Banerjee on

Mechanics research codes are typically written by graduate students who aim to get their work done as quickly as possible. These codes are not meant to last beyond the publication of a few related papers. These files have the advantage that they can be read in quickly using an input file stream and the code for doing that can be written in minutes. 

Regression testing with the Command design pattern

Submitted by Biswajit Banerjee on

Computational mechanics practitioners are not typically known for practising well-established software engineering techniques. That makes code developed by various research groups next to impossible to understand and modify.  I still see requests on iMechanica on how to implement Drucker-Prager models when every freshman student probably has their own implementation.  It is likely that the person who developed a particular code cannot themselves understand the code a few years after the relevant paper has been published.  

Modernizing your old c++ code

Submitted by Biswajit Banerjee on

Continuing yesterday's thread on new C++ productivity tools, here's another one on using clang-tidy to modernize your code automatically to C++11/14. Life becomes markedly easier after the code has been updated.  Check out my post at http://www.parresianz.com/c++/clang-tidy/ to see how I've integrated clang-tidy into my toolchain.

-- Biswajit