![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Adapter to wrap functional field ops into FieldModifier interface. More...
#include <memory>#include <string>#include <utility>#include "openpfc/field/operations.hpp"#include "openpfc/field_modifier.hpp"
Go to the source code of this file.
Functions | |
| template<typename Fn > | |
| std::unique_ptr< FieldModifier > | pfc::field::make_legacy_modifier (std::string field_name, Fn fn) |
| Create a FieldModifier from a coordinate-space lambda. | |
Adapter to wrap functional field ops into FieldModifier interface.
| std::unique_ptr< FieldModifier > pfc::field::make_legacy_modifier | ( | std::string | field_name, |
| Fn | fn | ||
| ) |
Create a FieldModifier from a coordinate-space lambda.
| Fn | Callable signature: double(const Real3&) or double(const Real3&, double) |
| field_name | Name of the target real field in the model |
| fn | Function mapping coordinates (and optionally time) to values |

