58 Field(
SimInfo* info,
const std::string& filename,
const std::string& sele,
61 virtual ~Field() =
default;
63 virtual void process();
64 virtual void processFrame(
int frame);
65 virtual void postProcess();
67 virtual void writeField();
68 virtual std::string writeValue(T v);
69 virtual void writeVisualizationScript();
72 RealType getDensity(RealType dist, RealType sigma, RealType rcut);
76 string selectionScript_;
79 bool usePeriodicBoundaryConditions_;
86 std::vector<std::vector<std::vector<RealType>>> dens_;
87 std::vector<std::vector<std::vector<T>>> field_;