def spectrum_virtual(self): if np.all(self.montecarlo_virtual_luminosity == 0): warnings.warn( "MontecarloRunner.spectrum_virtual" "is zero. Please run the montecarlo simulation with" "no_of_virtual_packets > 0", UserWarning) return TARDISSpectrum(self.spectrum_frequency, self.montecarlo_virtual_luminosity)
def __init__(self, seed, spectrum_frequency, virtual_spectrum_range, sigma_thomson, enable_reflective_inner_boundary, inner_boundary_albedo, line_interaction_type, distance=None): self.seed = seed self.packet_source = packet_source.BlackBodySimpleSource(seed) self.spectrum_frequency = spectrum_frequency self.virtual_spectrum_range = virtual_spectrum_range self.sigma_thomson = sigma_thomson self.enable_reflective_inner_boundary = enable_reflective_inner_boundary self.inner_boundary_albedo = inner_boundary_albedo self.line_interaction_type = line_interaction_type self.spectrum = TARDISSpectrum(spectrum_frequency, distance) self.spectrum_virtual = TARDISSpectrum(spectrum_frequency, distance) self.spectrum_reabsorbed = TARDISSpectrum(spectrum_frequency, distance)
def spectrum_reabsorbed(self): return TARDISSpectrum(self.spectrum_frequency, self.montecarlo_reabsorbed_luminosity)
def spectrum(self): return TARDISSpectrum(self.spectrum_frequency, self.montecarlo_emitted_luminosity)
def __init__(self, seed, spectrum_frequency, distance=None): self.packet_source = packet_source.BlackBodySimpleSource(seed) self.spectrum_frequency = spectrum_frequency self.spectrum = TARDISSpectrum(spectrum_frequency, distance) self.spectrum_virtual = TARDISSpectrum(spectrum_frequency, distance) self.spectrum_reabsorbed = TARDISSpectrum(spectrum_frequency, distance)