Blog articles

2022

Back to top ↑

2021

Back to top ↑

2017

Creating an animation with d3.js

54 minute read

Introduction In Part 8 of the series on return algorithms for plasticity we animated the closest-point return algorithm as shown below.

Geometric closest point return algorithm

23 minute read

Introduction In Part 7, we saw that for isotropic elastic materials and perfect associated plasticity, the trial stress and the actual stress are at the shor...

Exploring closest point return plasticity

16 minute read

Introduction In Part 6, I explained why a backward Euler stress update and a closest point return from the trial stress to the yield surface are closely rela...

The plane stress return algorithm

15 minute read

Introduction In the previous part of this discussion, I derived plane stress expressions for linear elasticity, the Drucker-Prager yield function, and the as...

XML format for particle input files

31 minute read

Introduction Let us now change tack slightly and return to an issue I had talked about earlier in Input files: reading XML. Typical input files in research ...

Plotting particles with vtk.js

20 minute read

Introduction In the previous articles in this series we talked about: Part 1: Reading VTK format particles with Javascript in a browser Part 2: Saving ...

Setting up the Three.js scene and camera

13 minute read

Introduction In the previous articles in this series we talked about: Part 1: Reading VTK format particles with Javascript in a browser Part 2: Saving ...

Setting up the Three.js renderer

12 minute read

Introduction The previous articles in this series were about: Part 1: Reading VTK format particles with Javascript in a browser Part 2: Saving the read...

Plotting VTK particles with Three.js

11 minute read

Introduction In Part 2 of this series, we showed how the particle data are saved into a Vuex store. Now we are ready to visualize the data. In this article...

Saving particle data in a Vuex store

13 minute read

Introduction In the first part of this series on scientific visualization in Javascript, we saw how data in VTK unstructured grid format produced by C++ simu...

Reading VTK particles in Javascript

16 minute read

In our previous article we discussed the process of calling XML functions in C++ to write data produced by particle simulations in XML format files. These o...

Particle data in VTK XML

11 minute read

In my previous post on writing VTK output files I described how mesh data can be output in VTK XML format. In this article I will talk about how I output par...

Writing VTK XML files in C++

16 minute read

I visualize the output of my simulations using either LLNL’s Visit or Kitware’s ParaView. These tools are wonderful for dealing with large datasets and can ...

Reading JSON in C++

11 minute read

In my previous post on reading XML input files, I discussed how input files can be made more human friendly with XML markup. In some situations, it may be p...

Input files: Reading XML

14 minute read

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 las...

Command pattern for regression testing

8 minute read

A few days ago I had to refactor a 20,000 line class that was being used as a regression tester for discrete element and peridynamics simulations. After som...

Formatting C++ code

3 minute read

Every once in a while I need to recall how clang-format is set up and run on my Ubuntu 16.04 machine. This post is meant to act as a reminder.

Back to top ↑

2014

Sampling large data sets (Part 2)

6 minute read

Recall that we had found a set of points that samples a cylindrical domain uniformly. However, these points do not match the locations of our sensors and we...

Sampling large data sets (Part 1)

4 minute read

The amount of data is large. Before we analyze the whole set of data, we can find trends by examining a smaller set of sensors. A smaller set is also usef...

Back to top ↑