![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Space-time varying BC: Oscillating left boundary. More...


Public Member Functions | |
| OscillatingBC (double frequency, double amplitude, double mean=0.0) | |
| const std::string & | get_modifier_name () const override |
| Get the name of the field modifier. | |
| void | apply (Model &model, double time) 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 | ~FieldModifier ()=default |
| Destructor for the FieldModifier class. | |
Space-time varying BC: Oscillating left boundary.
This demonstrates:
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.
|
inlineoverridevirtual |
Get the name of the field modifier.
This function is responsible for getting the name of the field modifier.
Reimplemented from pfc::FieldModifier.