![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Comprehensive examples of the DiscreteField API. More...
#include <algorithm>#include <cmath>#include <complex>#include <iostream>#include <numeric>#include <openpfc/array.hpp>#include <openpfc/discrete_field.hpp>
Functions | |
| void | print_section (const std::string &title) |
| template<size_t D> | |
| void | print_array (const std::array< double, D > &arr, const std::string &name) |
| template<size_t D> | |
| void | print_array_int (const std::array< int, D > &arr, const std::string &name) |
| void | demo_creation_and_initialization () |
| void | demo_indexing () |
| void | demo_coordinate_operations () |
| void | demo_interpolation () |
| void | demo_complex_fields () |
| int | main () |
Comprehensive examples of the DiscreteField API.
This example demonstrates:
Compile and run: g++ -std=c++17 -I/path/to/openpfc/include 08_discrete_field.cpp \ -o 08_discrete_field ./08_discrete_field