OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 VTT Technical Research Centre of Finland Ltd
2// SPDX-License-Identifier: AGPL-3.0-or-later
3
27#ifndef PFC_TYPES_HPP
28#define PFC_TYPES_HPP
29
30#include <array>
31#include <complex>
32#include <unordered_map>
33#include <vector>
34
35namespace pfc {
36
37template <class T> using Vec3 = std::array<T, 3>;
38
39using Field = std::vector<double>;
40using RealField = std::vector<double>;
41using RealFieldSet = std::unordered_map<std::string, RealField &>;
42using ComplexField = std::vector<std::complex<double>>;
43using ComplexFieldSet = std::unordered_map<std::string, ComplexField &>;
44
45// template <class T> using Field = std::vector<T>;
46
47} // namespace pfc
48
49#endif