113 GridImage(
World &world, QColor bg = Qt::black, QObject *parent=0);
123 void drawSites(QList<int> &sites, QColor color,
int layer);
133 void drawCharges(QList<ChargeAgent *> &charges, QColor color,
int layer);
140 void save(QString name,
int scale=3);
164 virtual void saveTrapImage(
const QString& name =
"%stub-traps.png");
167 virtual void saveHoleImage(
const QString& name =
"%stub-%step-holes.png");
170 virtual void saveElectronImage(
const QString& name =
"%stub-%step-electrons.png");
173 virtual void saveCarriersImage(
const QString& name =
"%stub-%step-carriers.png");
176 virtual void saveDefectImage(
const QString& name =
"%stub-defects.png");
179 virtual void saveImage(
const QString& name =
"%stub-%step-all.png");
void writeVMDInitFile()
write a VMD script useful for opening the XYZ file
XYZWriter * m_xyzWriter
writer in charge of writing xyz files
Definition: writer.h:207
OutputStream m_stream
output file stream
Definition: writer.h:79
ExcitonWriter * m_excitonWriter
writer in charge of writing multiple carrier's information (excitons)
Definition: writer.h:216
OutputStream m_stream
output file stream
Definition: writer.h:36
ExcitonWriter(World &world, const QString &name, QObject *parent=0)
constructs the writer, has the same parameters as OutputInfo
QImage m_image
the image we draw onto
Definition: writer.h:146
virtual void saveCoulombEnergy(const QString &name="%stub-%step.coulomb")
output the Coulomb potential as (x, y, z, v) to a file; requires the use of the GPU ...
A class to output carrier stats (lifetime and pathlength)
Definition: writer.h:63
FluxWriter * m_fluxWriter
writer in charge of writing source & drain information
Definition: writer.h:210
virtual void reportXYZStream()
output xyz information (at the current step) to the xyz file
World & m_world
reference to world
Definition: writer.h:204
World & m_world
reference to the world object
Definition: writer.h:96
virtual void reportExciton(ChargeAgent &charge1, ChargeAgent &charge2, bool recombined=false)
output carrier information (for example pathlength) on two carriers at once to the exciton file ...
GridImage(World &world, QColor bg=Qt::black, QObject *parent=0)
create the image and painter, setting the background and size
void write()
Write XYZ of the current step to the stream.
A class that organizes output.
Definition: writer.h:156
void write(ChargeAgent &charge1, ChargeAgent &charge2, bool recombined=false)
write the exciton statistics to the stream
World & m_world
reference to the world object
Definition: writer.h:149
A class to hold all objects in a simulation.
Definition: world.h:51
virtual void initialize()
open the various output streams if they are turned on
World & m_world
reference to the world object
Definition: writer.h:76
virtual void saveDefectImage(const QString &name="%stub-defects.png")
save an image of defects as png
virtual void saveGridPotential(const QString &name="%stub.grid")
output the grid potential as (x, y, z, v) to a file
OutputStream m_stream
output file stream
Definition: writer.h:99
virtual void saveElectronImage(const QString &name="%stub-%step-electrons.png")
save an image of electrons (at the current step) as png
A class to output exciton stats (lifetime and pathlength)
Definition: writer.h:83
World & m_world
reference to the world object
Definition: writer.h:56
void write()
write the flux statistics of the current step to the stream
void drawCharges(QList< ChargeAgent * > &charges, QColor color, int layer)
draw some sites
virtual void reportFluxStream()
output information about Sources and Drains (at the current step) to the main output file ...
CarrierWriter(World &world, const QString &name, QObject *parent=0)
constructs the writer, has the same parameters as OutputInfo
A class to represent moving charged particles.
Definition: chargeagent.h:13
void write(ChargeAgent &charge)
write the charge carrier statistics to the stream
void drawSites(QList< int > &sites, QColor color, int layer)
draw some sites
virtual void reportCarrier(ChargeAgent &charge)
output carrier information (for example pathlength) to the carrier file
A class to output xyz files.
Definition: writer.h:20
FluxWriter(World &world, const QString &name, QObject *parent=0)
constructs the writer, has the same parameters as OutputInfo
OutputStream m_stream
output file stream
Definition: writer.h:59
virtual void saveHoleImage(const QString &name="%stub-%step-holes.png")
save an image of holes (at the current step) as png
A class to draw images of the grid.
Definition: writer.h:103
Logger(World &world, QObject *parent=0)
create Logger
QPainter m_painter
the painter that paints the image
Definition: writer.h:143
virtual void saveTrapImage(const QString &name="%stub-traps.png")
save an image of trap sites as png
World & m_world
reference to the world object
Definition: writer.h:33
A class to output source and drain info.
Definition: writer.h:43
virtual void saveCarriersImage(const QString &name="%stub-%step-carriers.png")
save an image of holes and electrons (at the current step) as png
XYZWriter(World &world, const QString &name, QObject *parent=0)
constructs the writer, has the same parameters as OutputInfo
void save(QString name, int scale=3)
save the image to a file
A class to combine QFile, QTextStream and OutputInfo (QFileInfo).
Definition: output.h:69
virtual void saveImage(const QString &name="%stub-%step-all.png")
save an image of electrons, holes, defects, and traps (at current step) as png
CarrierWriter * m_carrierWriter
writer in charge of writing carrier information
Definition: writer.h:213