1#ifndef RPG_CONCENTRATION_DERIVATIVE_H
2#define RPG_CONCENTRATION_DERIVATIVE_H
11#include "AverageAnalyzer.h"
12#include <rpg/System.h>
13#include <rpg/fts/simulator/Simulator.h>
18 template <
int D>
class System;
19 template <
int D>
class Simulator;
73 #ifndef RPG_CONCENTRATION_DERIVATIVE_TPP
Analyze averages and block averages of several real variables.
virtual void readParameters(std::istream &in)
Read interval, outputFileName and (optionally) nSamplePerOutput.
virtual void sample(long iStep)
Compute a sampled value and update the accumulator.
virtual void setup()
Setup before loop.
int nSamplePerOutput() const
Get value of nSamplePerOutput.
Simulator< D > & simulator()
Return reference to parent simulator.
System< D > & system()
Return reference to parent system.
virtual void output()
Write final results to file after a simulation.
Evaluate the derivative of H with respect to concentration.
ConcentrationDerivative(Simulator< D > &simulator, System< D > &system)
Constructor.
virtual void outputValue(int step, double value)
Output a sampled or block average value.
virtual ~ConcentrationDerivative()
Destructor.
virtual double compute()
Compute and return the derivative of H w/ respect to concentration.
Field theoretic simulator (base class).
Main class for calculations that represent one system.
void setClassName(const char *className)
Set class name string.
PSCF package top-level namespace.
Utility classes for scientific computation.