cashocs.interpolate_levelset_function_to_cells#
- cashocs.interpolate_levelset_function_to_cells(levelset_function: fenics.Function, val_neg: float, val_pos: float, cell_function: fenics.Function) None [source]#
Interpolates jumping values to the mesh cells based on the levelset function.
- Parameters:
levelset_function (fenics.Function) – The levelset function representing the domain.
val_neg (float) – The value inside the domain (levelset_function < 0).
val_pos (float) – The value outside the domain (levelset_function > 0).
cell_function (fenics.Function) – The piecewise constant cell function, into which the result is written.
- Return type:
None