|
WARPXM v1.10.0
|
The UniquePatchArray class defines a dataset associated with a patch of the domain which has a single value This class will be used for discontinuous FEM methods. More...
#include <unique_patch_array.h>
The UniquePatchArray class defines a dataset associated with a patch of the domain which has a single value This class will be used for discontinuous FEM methods.
Public Member Functions | |
| UniquePatchArray (const WmUnstructuredPatch &patch, const WxRange &element_range) | |
| Constructor for UniquePatchArray. | |
| UniquePatchArray (const UniquePatchArray &other) | |
| Copy Constructor. | |
| virtual | ~UniquePatchArray () |
| Virtual Destructor. | |
| const WmUnstructuredPatch & | patch () const |
| Get the patch this array is setup for. | |
| virtual void | dump (WxIoBase &io, WxIoNodeType &group_node) const |
| Write out the array to file. | |
| virtual void | load (WxIoBase &io, const WxIoNodeType &group_nodes) |
| Load object from file. | |
| const WxRange & | element_range () const |
| Get the range of data associated with each mesh element. | |
| real & | operator[] (int index) override |
| Return data at index 0 This overrides default behavior to take index 0 because size should be 1. | |
| const real & | operator[] (int index) const override |
| Return data at index 0 This overrides default behavior to take index 0 because size should be 1. | |
Public Member Functions inherited from wxm::array::patch_array_t | |
| patch_array_t ()=default | |
| Default Constructor. | |
| patch_array_t (const WxRange &range) | |
| Allocate the array for a given range. | |
| patch_array_t (const patch_array_t &other)=default | |
| Copy Constructor. | |
| virtual | ~patch_array_t () |
| Destructor. | |
| patch_array_t & | operator= (const patch_array_t &other) |
| Assignment operator - makes a shallow copy. | |
| const WxRange & | interior_range () const |
| Returns range of interior of dataset. | |
Public Member Functions inherited from wxm::array::array_allocation_t< real > | |
| array_allocation_t ()=default | |
| Default Constructor. | |
| array_allocation_t (const WxRange &range) | |
| Allocate the array for a given range. | |
| array_allocation_t (const array_allocation_t &other)=default | |
| Copy Constructor. | |
| virtual | ~array_allocation_t () |
| Destructor. | |
| array_allocation_t & | operator= (const array_allocation_t &other) |
| Assignment operator - makes a shallow copy. | |
| void | fill (const real &value) |
| Fill array with a value. | |
| real * | data () |
| Access the underlying data array. | |
| const real * | data () const |
| virtual real & | operator[] (int index) |
| virtual const real & | operator[] (int index) const |
| real & | operator() (size_t i, size_t j) |
| 2D array access | |
| const real & | operator() (size_t i, size_t j) const |
| 2D array access | |
| const real & | operator() (size_t i, size_t j, size_t k) const |
| 3D array access | |
| real & | operator() (size_t i, size_t j, size_t k) |
| 3D array access | |
| const WxRange & | range () const |
Protected Attributes | |
| const WmUnstructuredPatch & | _patch |
| Patch associated with array. | |
| WxRange | _element_range |
| Range describing each element. | |
| WxRange | _global_range |
| Range describing global dataset in subdomain - used for data io. | |
| WxRange | _local_range |
| Range describing local dataset in subdomain - used for data io. | |
Protected Attributes inherited from wxm::array::patch_array_t | |
| WxRange | _interior_range |
| Range describing interior range of dataset. | |
Protected Attributes inherited from wxm::array::array_allocation_t< real > | |
| WxRange | _range |
| Range of data. | |
| std::shared_ptr< std::vector< real > > | _data |
| Shared pointer containing data. | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const wxm::dfem::array::UniquePatchArray &array) |
Additional Inherited Members | |
Protected Member Functions inherited from wxm::array::array_allocation_t< real > | |
| void | copy (const array_allocation_t &other) |
| void | link (const array_allocation_t &other) |
| void | allocate () |
| void | terminate () |
| wxm::dfem::array::UniquePatchArray::UniquePatchArray | ( | const WmUnstructuredPatch & | patch, |
| const WxRange & | element_range | ||
| ) |
Constructor for UniquePatchArray.
| patch | Patch associated with dataset |
| element_range | Range of data defined for each element |
| wxm::dfem::array::UniquePatchArray::UniquePatchArray | ( | const UniquePatchArray & | other | ) |
Copy Constructor.
|
virtual |
Virtual Destructor.
|
virtual |
Write out the array to file.
| io | I/O object to use for writing |
| group_node | group node to write to |
|
inline |
Get the range of data associated with each mesh element.
|
virtual |
Load object from file.
This method is passed a group node from which its data should be read and then constructed.
| io | I/O object to use for writing |
| group_nodes | group nodes to read from |
|
inlineoverridevirtual |
Return data at index 0 This overrides default behavior to take index 0 because size should be 1.
Reimplemented from wxm::array::array_allocation_t< real >.
|
inlineoverridevirtual |
Return data at index 0 This overrides default behavior to take index 0 because size should be 1.
Reimplemented from wxm::array::array_allocation_t< real >.
|
inline |
Get the patch this array is setup for.
|
friend |
|
protected |
Range describing each element.
|
protected |
Range describing global dataset in subdomain - used for data io.
|
protected |
Range describing local dataset in subdomain - used for data io.
|
protected |
Patch associated with array.