tardis.transport.montecarlo.base module

class tardis.transport.montecarlo.base.MonteCarloTransportSolver(*args, **kwargs)[source]

Bases: HDFWriterMixin

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

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, opacity_state, macro_atom_state, plasma, no_of_packets, no_of_virtual_packets=0, iteration=0)[source]
run(transport_state, iteration=0, total_iterations=0, show_progress_bars=True)[source]

Run the montecarlo calculation

Parameters:
modeltardis.model.SimulationState
plasmatardis.plasma.BasePlasma
no_of_packetsint
no_of_virtual_packetsint
total_iterationsint

The total number of iterations in the simulation.

Returns:
None