pyopensn.source.PointSource

class pyopensn.source.PointSource

Point sources, defined by its location and a group-wise strength vector.

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.