pyopensn.source.PointSource
- class pyopensn.source.PointSource
Point sources, defined by its location and a group-wise strength vector.
A source object stores the cells it applies to on the mesh of the problem (or response evaluator) it was most recently added to. Sharing it between problems on the same mesh is safe; for problems on different meshes, create a separate source object for each mesh.
Wrapper of
opensn::PointSource.- __init__(self: pyopensn.source.PointSource, **kwargs) None
Construct a point source from its location and strength.
- Parameters:
location (Tuple[float, float, float]) – Coordinates of the point source.
strength (List[float]) – Group-wise point source strength.
strength_function (Callable) – Callable that returns the source strength for a given group (and optionally time). It must accept either (group, time) for transient problems or just (group) for steady-state. If strength_function is provided, do not specify start_time/end_time; implement any time dependence inside the callback instead.