OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
openpfc.hpp File Reference

Main convenience header that includes all OpenPFC public API components. More...

Include dependency graph for openpfc.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Main convenience header that includes all OpenPFC public API components.

This is the primary include file for OpenPFC users. Including this single header provides access to all public API components:

  • Core infrastructure (World, Decomposition, FFT)
  • Physics models (Model base class)
  • Simulation orchestration (Simulator, Time)
  • Initial conditions (Constant, Seed, FileReader, RandomSeeds, SeedGrid, etc.)
  • Boundary conditions (FixedBC, MovingBC)
  • I/O (ResultsWriter, BinaryReader)
  • Utilities (Array, MultiIndex, DiscreteField, utils)

Most users should start with this header for maximum convenience:

int main(int argc, char** argv) {
pfc::mpi::Environment env(argc, argv);
// Your simulation code here
}
Main convenience header that includes all OpenPFC public API components.

For faster compilation times, advanced users can include specific headers:

Physics model abstraction for phase-field simulations.
Simulation orchestration and time integration loop.
World class definition and unified interface.

This file is part of the Core API module, serving as the main entry point for all OpenPFC functionality.

See also
core/world.hpp for computational domain setup
model.hpp for physics model implementation
simulator.hpp for running simulations
docs/getting_started/ for tutorials and examples
Author
OpenPFC Contributors
Date
2025