tum-pbs/PhiFlow

Custom geometry

Zhaozhiwhy opened this issue · 1 comments

Is it possible to define some complex geometry domain for simulation? For example, a triangle, ellipse or even a car domain in the karman vortex street? I think it should be grid first, then to be defined as a class of geometry. But I don't know is it could be achieved?

holl- commented

Hi, heightmaps have recently been added to version 3.0. These allow you to built complex geometries that run very efficiently. You can combine two or more heightmaps to model all sides of your geometry.

Theoretically, you can also define your own Geometry class, but that requires in-depth knowledge of the geometry system, so I don't recommend that.