32#ifndef PFC_INITIAL_CONDITIONS_FILE_READER_HPP
33#define PFC_INITIAL_CONDITIONS_FILE_READER_HPP
37#include "../binary_reader.hpp"
38#include "../field_modifier.hpp"
44 std::string m_filename;
50 const std::string &get_filename()
const {
return m_filename; }
55 const FFT &fft =
m.get_fft();
56 const auto &world =
m.get_world();
61 Field &
f =
m.get_real_field(get_field_name());
62 std::cout <<
"Reading initial condition from file" << get_filename()
Definition binary_reader.hpp:42
Definition field_modifier.hpp:240
Definition file_reader.hpp:42
void apply(Model &m, double) override
Apply the field modification to the model (pure virtual)
Definition file_reader.hpp:54
The Model class represents the physics model for simulations in OpenPFC.
Definition model.hpp:95
FFT class for distributed-memory parallel Fourier transforms.
Definition fft.hpp:248
Represents the global simulation domain (the "world").
Definition world.hpp:91