![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Comprehensive examples of built-in Initial Condition classes. More...
#include <iostream>#include <memory>#include <mpi.h>#include <openpfc/initial_conditions/constant.hpp>#include <openpfc/initial_conditions/file_reader.hpp>#include <openpfc/initial_conditions/random_seeds.hpp>#include <openpfc/initial_conditions/seed_grid.hpp>#include <openpfc/initial_conditions/single_seed.hpp>#include <openpfc/openpfc.hpp>#include <openpfc/results_writer.hpp>
Functions | |
| void | print_section (const std::string &title) |
| void | print_field_stats (const Field &field, const std::string &name, MPI_Comm comm) |
| void | demo_constant_ic () |
| void | demo_single_seed () |
| void | demo_seed_grid () |
| void | demo_random_seeds () |
| void | demo_file_reader () |
| void | demo_composition () |
| int | main (int argc, char **argv) |
Comprehensive examples of built-in Initial Condition classes.
This example demonstrates:
Compile and run: mpicxx -std=c++17 -I/path/to/openpfc/include 09_initial_conditions.cpp \ -L/path/to/openpfc/lib -lopenpfc -lheffte -o 09_initial_conditions mpirun -np 4 ./09_initial_conditions