Physical spacing between grid points.
More...
#include <strong_types.hpp>
|
|
Real3 | value |
| | Underlying array value.
|
| |
Physical spacing between grid points.
Represents the physical distance between adjacent grid points in each dimension. Defines the resolution of the computational grid in physical units.
- Note
- Zero-cost:
sizeof(GridSpacing) == sizeof(Real3)
-
Trivially copyable: No heap allocation or deep copy
Physical spacing between grid points.
Definition strong_types.hpp:370
Represents the global simulation domain (the "world").
Definition world.hpp:91
- Examples
- 04_diffusion_model.cpp, and world_strong_types_example.cpp.
◆ GridSpacing()
| pfc::GridSpacing::GridSpacing |
( |
const Real3 & |
v | ) |
|
|
inline |
Construct from Real3 (implicit for backward compatibility)
- Parameters
-
| v | Spacing in each dimension |
◆ get()
| const Real3 & pfc::GridSpacing::get |
( |
| ) |
const |
|
inlinenoexcept |
Get underlying value.
- Returns
- Reference to underlying Real3
◆ operator const Real3 &()
| pfc::GridSpacing::operator const Real3 & |
( |
| ) |
const |
|
inlinenoexcept |
Implicit conversion to Real3.
- Returns
- Reference to underlying Real3
◆ operator!=()
Inequality comparison.
- Parameters
-
- Returns
- true if values are not equal
◆ operator==()
Equality comparison.
- Parameters
-
- Returns
- true if values are equal
The documentation for this struct was generated from the following file: