tardis.transport.montecarlo.modes.iip.solver module

class tardis.transport.montecarlo.modes.iip.solver.MCTransportSolverIIP(*args: Any, **kwargs: Any)[source]

Bases: HDFWriterMixin

Solve Type IIP Monte Carlo radiative transfer.

Build and evolve the continuum-enabled transport state.

Create a new instance and initialize HDF properties.

Parameters:
*argsAny

Positional arguments passed to the parent class.

**kwargsAny

Keyword arguments passed to the parent class.

Returns:
HDFWriterMixin

The new instance with initialized HDF properties.

classmethod from_config(config, packet_source, enable_virtual_packet_logging=False)[source]

Create a new MontecarloTransport instance from a Configuration object.

Parameters:
configtardis.io.config_reader.Configuration
virtual_packet_loggingbool
Returns:
MontecarloTransport
hdf_name = 'transport'
hdf_properties = ['transport_state']
initialize_transport_state(simulation_state: object, opacity_state: object, macro_atom_state: object | None, no_of_packets: int, no_of_virtual_packets: int = 0, iteration: int = 0) → MonteCarloTransportState[source]

Initialize transport state from explicit opacity inputs.

run(transport_state, show_progress_bars=True)[source]

Run the Monte Carlo calculation using IIP mode (continuum always enabled).

Parameters:
transport_statetardis.transport.montecarlo.transport_state.TransportState

Transport state containing all the data needed for the Monte Carlo simulation

show_progress_barsbool

Show progress bars

Returns:
v_packets_energy_histndarray

Histogram of energy from virtual packets