I have been using Fenics to model some simple electrostatic problems, but now I need to simulate more complicated geometries. Assuming
- I have created a mesh of several objects, and know their positions in space
- Each node in those objects carries properties of those objects (dielectric constant/etc)
which software and approach should I use to subdivide the free space between these objects (and some bounding box style boundary), so that
- Mesh density depends on distance from objects / geometric complexity
- Fenics will know where the boundary is, and the boundary conditions (zero potential at "infinity")
- Fenics will know the values of charge / dielectric in this free space (set to some default for example)
In my simple problems I have used hand coded functions for determining boundary, calculating boundary conditions, and for objects (such as a capacitor's plates) I have used their geometry to assign charges/etc (for example if (distance from sphere center < radius) charge = 1.0 else 0
)