PanPhaseField SDK
|
A vector-like data structure template which handles mesh grid of phase-field model, such as composition mesh, order parameter mesh and chemical potential mesh. There is a rich variety of built-in operations for vectorizing loop-based source code. More...
#include <tensors.h>
Public Member Functions | |
VectorMesh () | |
VectorMesh (const VectorMesh &obj) | |
VectorMesh (type_int dimx, type_int dimy, type_int dimz, type_int dimc) | |
VectorMesh (T *list, vector< type_int >dims) | |
~VectorMesh () | |
bool | empty () |
vector< type_int > | size () |
VectorMesh | sub_comp (unsigned int c) |
T & | operator() (unsigned int x, unsigned int y, unsigned int z, unsigned int c) |
const VectorMesh | operator* (const T s) |
VectorMesh & | operator*= (const T s) |
VectorMesh & | operator= (const T val) |
VectorMesh & | operator= (const VectorMesh &rhs) |
const VectorMesh | operator+ (const VectorMesh &rhs) |
const VectorMesh | operator- (const VectorMesh &rhs) |
VectorMesh & | operator+= (const VectorMesh &rhs) |
VectorMesh & | operator-= (const VectorMesh &rhs) |
void | reset () |
void | clear () |
T | mean () |
T | maximum () |
vector< T > | get_local_vector (int px, int py, int pz) |
Get the local vector of the spatial location (px,py,pz) More... | |
T | minimum () |
T | std () |
A vector-like data structure template which handles mesh grid of phase-field model, such as composition mesh, order parameter mesh and chemical potential mesh. There is a rich variety of built-in operations for vectorizing loop-based source code.
|
inline |
Default constructor
|
inline |
Copy constructor
[in] | obj | the object to be copied |
|
inline |
A Constructor using dimensions of mesh
[in] | dimx | the dimension along x-axis |
[in] | dimy | the dimension along y-axis |
[in] | dimz | the dimension along z-axis |
[in] | dimc | the dimension of vector at a mesh point |
|
inline |
A copy constructor using an array of dimensions
[in] | list | the serialized list to be extracted and copied |
[in] | dims | the dimension of the 3D mesh [x,y,z, and vector length] |
|
inline |
Deconstructor
|
inline |
Is the mesh empty
|
inline |
Get the size of the mesh
|
inline |
Get a mesh of scaler which is the c-th dimension of vector
[in] | c | a dimension index of vector |
|
inline |
Get value by index
[in] | x | the 1st index of 3D mesh |
[in] | y | the 2nd index of 3D mesh |
[in] | z | the 3rd index of 3D mesh |
[in] | c | the dimension index of vector |
|
inline |
Multiply operator. Scale values in mesh by a constant
|
inline |
Multiply AND assignment operator. Scale values in mesh by a constant
|
inline |
Assignment operator. Assign values in mesh by a constant
|
inline |
Assignment operator by another mesh
|
inline |
Additive operator
|
inline |
Substractive operator
|
inline |
Additive AND assignment operator
|
inline |
Substractive AND assignment operator
|
inline |
Reset mesh to zero
|
inline |
Release the memory of mesh
|
inline |
Get mean value of the mesh
|
inline |
Get max value of the mesh
|
inline |
Get the local vector of the spatial location (px,py,pz)
[in] | px | |
[in] | py | |
[in] | pz |
|
inline |
Get min value of the mesh
|
inline |
Get std of the mesh