5 #include <application/application.hpp>
6 #include <application/exceptions.hpp>
12 Application::Logger app(
"opacity");
13 app->Log(
"Create Absorber " + name);
17 Application::Logger app(
"opacity");
18 app->Log(
"Destroy Absorber " +
GetName());
31 auto app = Application::GetInstance();
32 auto log = app->GetMonitor(
"opacity");
38 log->Log(
"Load opacity from " + full_path);
40 }
catch (NotFoundError
const&
e) {
42 ss <<
e.what() << std::endl;
void LoadOpacity()
Load opacity from internal variable.
std::string opacity_filename_
opacity filename
Absorber(std::string name)
virtual void LoadCoefficient(std::string fname, size_t bid)
Load absorption coefficient from file.
void SetOpacityFile(std::string filename)
Set opacity filename to internal variable, does not load opacity.
void LoadOpacityFromFile(std::string filename)
Combines SetOpacityFile() and LoadOpacity()
std::string GetName() const