OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
world_query_helpers_example.cpp File Reference

Example: Using World query convenience functions. More...

#include <iomanip>
#include <iostream>
#include <openpfc/core/world.hpp>
Include dependency graph for world_query_helpers_example.cpp:

Functions

void print_world_info (const World &world, const std::string &name)
 
int main ()
 

Detailed Description

Example: Using World query convenience functions.

Demonstrates the new helper functions for querying World properties:

  • physical_volume(): Calculate domain volume
  • is_1d/is_2d/is_3d(): Check dimensionality
  • dimensionality(): Get dimensionality as integer
  • get_lower_bounds/get_upper_bounds(): Domain bounds