![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|


Public Member Functions | |
| void | set_value (double value) |
| double | get_value () const |
| void | apply (Model &, double) override |
| Apply the field modification to the model (pure virtual) | |
Public Member Functions inherited from pfc::FieldModifier | |
| void | set_field_name (const std::string &field_name) |
| const std::string & | get_field_name () const |
| virtual const std::string & | get_modifier_name () const |
| Get the name of the field modifier. | |
| virtual | ~FieldModifier ()=default |
| Destructor for the FieldModifier class. | |
Apply the field modification to the model (pure virtual)
This is the main interface method that derived classes must implement to define their modification logic. The method receives full mutable access to the Model and current simulation time, allowing arbitrary modifications.
Implementation Responsibilities:
model.get_real_field() or model.get_complex_field()model.get_world() and model.get_fft()Typical Implementation Pattern:
| model | Mutable reference to the Model containing fields to modify |
| time | Current simulation time (useful for time-dependent BCs) |
time is typically 0.0 time reflects current simulation time Implements pfc::FieldModifier.