1#ifndef RPC_CONCENTRATION_DERIVATIVE_TPP
2#define RPC_CONCENTRATION_DERIVATIVE_TPP
11#include "ConcentrationDerivative.h"
13#include <rpc/system/System.h>
14#include <rpc/fts/simulator/Simulator.h>
15#include <rpc/solvers/Mixture.h>
16#include <rpc/field/Domain.h>
17#include <rpc/fts/perturbation/Perturbation.h>
47 const int nMonomer =
system().mixture().nMonomer();
50 double vMonomer =
system().mixture().vMonomer();
51 const int meshSize =
system().domain().mesh().size();
53 if (!
system().c().hasData()) {
67 double dfdc = h * vMonomer;
70 double Hh = double(meshSize)/2.0 * vMonomer;
80 double vMonomer =
system().mixture().vMonomer();
83 outputFile_ <<
Int(step);
84 outputFile_ <<
Dbl(vMonomer);
85 outputFile_ <<
Dbl(value);
AverageAnalyzer(Simulator< D > &simulator, System< D > &system)
Constructor.
int nSamplePerOutput() const
Get value of nSamplePerOutput.
virtual void outputValue(int step, double value)
Output a sampled or block average value.
Simulator< D > & simulator()
Return reference to parent simulator.
System< D > & system()
Return reference to parent system.
virtual void outputValue(int step, double value)
Output a sampled or block average value.
void setClassName(const char *className)
Set class name string.
ConcentrationDerivative(Simulator< D > &simulator, System< D > &system)
Constructor.
virtual ~ConcentrationDerivative()
Destructor.
virtual double compute()
Compute and return the derivative of H w/ respect to concentration.
Field theoretic simulator (base class).
Main class, representing one complete system.
Wrapper for a double precision number, for formatted ostream output.
Wrapper for an int, for formatted ostream output.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Real periodic fields, SCFT and PS-FTS (CPU).
PSCF package top-level namespace.