I am hoping to import a field from a numpy array, one defined on the same dimensions as the mesh. I then want to interpolate it and have it as a grid function to operate upon in my weak formulation.
The field would be bounded between 0 and 1, representing a diffuse interface (or diffuse immersed boundary) where 0 is outside of the computational domain, 1 is inside, and anything in-between represents the boundary.
Is this possible?