OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
Full

Construct discrete field with specified geometry.

Construct discrete field with specified geometryCreates a field with N-dimensional array storage and physical coordinate system mapping. The geometry (origin, discretization, bounds) is immutable after construction.

Parameters
dimensionsSize in each dimension [nx, ny, nz]
offsetsGlobal offset for subdomains (typically {0,0,0} for full domain)
originPhysical coordinates of the first grid point
discretizationSpacing between grid points in each direction

domain field

// 64³ domain, unit spacing, origin at (0,0,0)
{64, 64, 64}, // dimensions
{0, 0, 0}, // no offset (full domain)
{0.0, 0.0, 0.0}, // origin
{1.0, 1.0, 1.0} // unit spacing
);
// Physical domain: [0, 64) x [0, 64) x [0, 64)
Represents the global simulation domain (the "world").
Definition world.hpp:91