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


Public Member Functions | |
| MovingBC (double rho_low, double rho_high) | |
| void | set_rho_low (double rho_low) |
| void | set_rho_high (double rho_high) |
| void | set_xpos (double xpos) |
| double | get_xpos () const |
| void | set_xwidth (double xwidth) |
| double | get_xwidth () const |
| void | set_alpha (double alpha) |
| void | set_disp (double disp) |
| void | set_threshold (double threshold) |
| double | get_threshold () const |
| const std::string & | get_modifier_name () const override |
| Get the name of the field modifier. | |
| void | apply (Model &m, double) override |
| Apply the field modification to the model (pure virtual) | |
| void | fill_bc (Model &m) |
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. | |
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.