OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
pfc::PhysicalBounds Struct Reference

Physical space bounds (min and max coordinates) More...

#include <strong_types.hpp>

Collaboration diagram for pfc::PhysicalBounds:

Public Member Functions

 PhysicalBounds (const Real3 &lo, const Real3 &hi)
 Construct from lower and upper bounds.
 

Public Attributes

Real3 lower
 Lower bounds.
 
Real3 upper
 Upper bounds.
 

Detailed Description

Physical space bounds (min and max coordinates)

Represents a rectangular region in physical space with lower and upper bounds. Used to specify the physical extent of the simulation domain.

Note
Zero-cost: Struct of two Real3 arrays, no overhead
Trivially copyable: No heap allocation or deep copy
PhysicalBounds bounds({-10.0, -10.0, -10.0}, {10.0, 10.0, 10.0});
double volume = (bounds.upper[0] - bounds.lower[0]) *
(bounds.upper[1] - bounds.lower[1]) *
(bounds.upper[2] - bounds.lower[2]);
Physical space bounds (min and max coordinates)
Definition strong_types.hpp:534
Represents the global simulation domain (the "world").
Definition world.hpp:91

Constructor & Destructor Documentation

◆ PhysicalBounds()

pfc::PhysicalBounds::PhysicalBounds ( const Real3 &  lo,
const Real3 &  hi 
)
inline

Construct from lower and upper bounds.

Parameters
loLower bounds
hiUpper bounds

The documentation for this struct was generated from the following file: