tardis.transport.montecarlo.modes.classic.solver module

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

Bases: HDFWriterMixin

This class modifies the MonteCarloTransportState to solve the radiative transfer problem.

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: Configuration, packet_source: BasePacketSource) → Self[source]

Create a new MontecarloTransport instance from a Configuration object.

Parameters:
configtardis.io.config_reader.Configuration
Returns:
MontecarloTransport
hdf_name = 'transport'
hdf_properties = ['transport_state']
initialize_transport_state(simulation_state, opacity_state, macro_atom_state, plasma, no_of_packets, iteration=0)[source]
run(transport_state: MonteCarloTransportState, show_progress_bars: bool = True, record_full_histories: bool = False) → None[source]

Run the montecarlo calculation.

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

record_full_historiesbool, optional

Record full real-packet histories in transport_state.tracker_full_df even without r-packet tracking, e.g. for virtual-packet post-processing.

run_classic(transport_state: MonteCarloTransportState, show_progress_bars: bool = True, record_full_histories: bool = False) → None[source]

Run the montecarlo calculation using classic mode (no continuum).

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

record_full_historiesbool, optional

Record full real-packet histories in transport_state.tracker_full_df even without r-packet tracking, e.g. for virtual-packet post-processing.