ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
A vector or scalar field interpolated from a regular grid. More...
#include <Interpolated.hpp>
Public Types | |
using | value_type = typename Utils::decay_to_scalar< Utils::Vector< T, codim > >::type |
Type of the values, usually Utils::Vector<T, 3> for vector fields and T for scalar fields. | |
using | jacobian_type = detail::jacobian_type< T, codim > |
using | storage_type = boost::multi_array< value_type, 3 > |
Public Member Functions | |
Interpolated (const boost::const_multi_array_ref< value_type, 3 > &global_field, const Utils::Vector3d &grid_spacing, const Utils::Vector3d &origin) | |
Interpolated (const Interpolated &rhs) | |
Interpolated & | operator= (const Interpolated &rhs) |
Utils::Vector3d | grid_spacing () const |
storage_type const & | field_data () const |
Utils::Vector3d | origin () const |
Utils::Vector3i | shape () const |
std::vector< T > | field_data_flat () const |
Serialize field. | |
value_type | operator() (const Utils::Vector3d &pos, double={}) const |
jacobian_type | jacobian (const Utils::Vector3d &pos, double={}) const |
bool | fits_in_box (const Utils::Vector3d &box) const |
A vector or scalar field interpolated from a regular grid.
This is an interpolation wrapper around a boost::multi_array, which can be evaluated on any point in space by spline interpolation.
T | Underlying type of the field values, see value_type |
codim | Dimension of the field: 3 for a vector field, 1 for a scalar field. |
Definition at line 65 of file Interpolated.hpp.
using FieldCoupling::Fields::Interpolated< T, codim >::jacobian_type = detail::jacobian_type<T, codim> |
Definition at line 72 of file Interpolated.hpp.
using FieldCoupling::Fields::Interpolated< T, codim >::storage_type = boost::multi_array<value_type, 3> |
Definition at line 73 of file Interpolated.hpp.
using FieldCoupling::Fields::Interpolated< T, codim >::value_type = typename Utils::decay_to_scalar<Utils::Vector<T, codim> >::type |
Type of the values, usually Utils::Vector<T, 3> for vector fields and T
for scalar fields.
Definition at line 70 of file Interpolated.hpp.
|
inline |
Definition at line 81 of file Interpolated.hpp.
|
inline |
Definition at line 96 of file Interpolated.hpp.
|
inline |
Definition at line 103 of file Interpolated.hpp.
|
inline |
Serialize field.
Definition at line 110 of file Interpolated.hpp.
|
inline |
Definition at line 137 of file Interpolated.hpp.
References Utils::Vector< T, N >::broadcast(), Utils::hadamard_product(), and FieldCoupling::Fields::Interpolated< T, codim >::shape().
|
inline |
Definition at line 102 of file Interpolated.hpp.
|
inline |
Definition at line 129 of file Interpolated.hpp.
|
inline |
Definition at line 118 of file Interpolated.hpp.
|
inline |
Definition at line 97 of file Interpolated.hpp.
|
inline |
Definition at line 104 of file Interpolated.hpp.
|
inline |
Definition at line 105 of file Interpolated.hpp.
Referenced by FieldCoupling::Fields::Interpolated< T, codim >::fits_in_box().