zjwegert / GridapTopOpt.jl

A computational toolbox for level set-based topology optimisation in Julia
MIT License
9 stars 1 forks source link

Embedded + Autodiff #67

Open JordiManyer opened 4 months ago

JordiManyer commented 4 months ago

So here are some notes on the implementation of Autodiff for embedded triangulations. A similar discussion on this can be found in here.

Overview of the problem:

We distinguish two cases:

  1. When differentiating the boundary, triangulations change. I.e some interior cells become cut, some cuts cells become interior, etc...
  2. The above does not happen, i.e all interior, cut and exterior cells remain the same. In this case, the domain is modified by moving around the cuts within their cut cell. I.e the number and shape of the sub-cells stays the same, but the area of the sub-cells is different.

Case 1:

Case 2:

JordiManyer commented 1 month ago

Current state:

We have the code working for simplicial meshes. Moving to QUAD/HEX meshes, however, requires some modification of the cutting algorithm: