![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Comprehensive examples of the FieldModifier API. More...
#include <cmath>#include <iostream>#include <memory>#include <mpi.h>#include <openpfc/openpfc.hpp>
Classes | |
| class | GaussianIC |
| Custom field modifier: Gaussian initial condition. More... | |
| class | DirichletBC |
| Custom boundary condition: Fixed Dirichlet BC at right boundary. More... | |
| class | OscillatingBC |
| Space-time varying BC: Oscillating left boundary. More... | |
Functions | |
| void | print_section (const std::string &title) |
| void | demo_custom_initial_condition () |
| void | demo_boundary_condition () |
| void | demo_space_time_bc () |
| void | demo_composition () |
| Demonstrate composition of multiple field modifiers. | |
| int | main (int argc, char **argv) |
Comprehensive examples of the FieldModifier API.
This example demonstrates:
Compile and run: mpicxx -std=c++17 -I/path/to/openpfc/include 07_field_modifiers.cpp \ -L/path/to/openpfc/lib -lopenpfc -lheffte -o 07_field_modifiers mpirun -np 4 ./07_field_modifiers
| void demo_composition | ( | ) |
Demonstrate composition of multiple field modifiers.
This shows how to combine:
Modifiers are applied in sequence, each building on the previous.
