1#ifndef RP_CONCENTRATION_WRITER_H
2#define RP_CONCENTRATION_WRITER_H
11#include <rp/fts/analyzer/Analyzer.h>
13#include <pscf/backend/TmplDeclare.h>
31 template <
int D,
class T>
56 void setup()
override;
63 void sample(
long iStep)
override;
77 std::ofstream outputFile_;
90 void writeHeader(std::ofstream& out);
98 void writeFrame(std::ofstream& out,
long iStep);
Analyzer(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
Simulator< D, T > & simulator()
Get the parent Simulator by reference.
System< D, T > & system()
Get the parent System by reference.
Periodically write c-field snapshots to a trajectory file.
void readParameters(std::istream &in) override
Read interval and output file name.
Simulator< D, T > & simulator()
Get the parent Simulator by reference.
void output() override
Close trajectory file after run.
ConcentrationWriter(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
System< D, T > & system()
Get the parent System by reference.
void sample(long iStep) override
Write a frame/snapshot to trajectory file.
void setup() override
Initialize before main simulation loop.
Base class for field theoretic PS-FTS simulator.
Base class template for classes that represent a complete system.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.