11#include <util/containers/DArray.h>
13namespace Util {
class FileMaster; }
85 bool writeHeader =
true)
const;
99 bool writeHeader=
true)
const;
111 bool writeHeader=
true)
const;
125 std::string
const& filename,
126 bool writeHeader=
true)
const;
150 std::string
const& filename)
const;
163 int polymerId,
int vertexId,
164 std::ostream& out)
const;
175 int polymerId,
int vertexId,
176 std::string
const& filename)
const;
195 std::string
const& filename);
220 std::string
const& filename);
230 Domain const * domainPtr_;
238 Domain const& domain()
const
248 return *fileMasterPtr_;
One-dimensional spatial domain and discretization grid.
Read and write fields to file.
void extend(DArray< Field > const &fields, int m, std::ostream &out)
Add points to the end of a field mesh and write to stream.
void writeField(Field const &field, std::ostream &out, bool writeHeader=true) const
Write a single field to an output stream.
void writeVertexQ(Mixture const &mixture, int polymerId, int vertexId, std::ostream &out) const
Write product of incoming q fields for one vertex to stream.
void associate(Domain const &domain, FileMaster const &fileMaster)
Get and store addresses of associated objects.
void remesh(DArray< Field > const &fields, int nx, std::ostream &out)
Interpolate an array of fields onto a new mesh and write to stream.
void writeFields(DArray< Field > const &fields, std::ostream &out, bool writeHeader=true) const
Write a set of fields, one per monomer type, to an output stream.
void writeBlockCFields(Mixture const &mixture, std::ostream &out) const
Write block concentration fields for all blocks to an output stream.
void readFields(DArray< Field > &fields, std::istream &in)
Read a set of fields, one per monomer type.
Mixture of polymers and solvents.
Dynamically allocatable contiguous array template.
A FileMaster manages input and output files for a simulation.
#define UTIL_ASSERT(condition)
Assertion macro suitable for debugging serial or parallel code.
PSCF package top-level namespace.
Utility classes for scientific computation.