WARPXM v1.10.0
Loading...
Searching...
No Matches
Array

Namespaces

namespace  wxm
 Base namespace for everything not included in the global namespace.
 
namespace  wxm::dfem
 
namespace  wxm::dfem::array
 

Classes

class  wxm::dfem::array::UniqueSubdomainArray
 The UniqueSubdomainArray class is used to represent a scalar existing within a portion of the domain (subdomain) where vector size is 1. More...
 

Typedefs

typedef std::map< int, wxm::dfem::array::UniquePatchArray * > wxm::dfem::array::UniqueSubdomainArray::unique_patch_array_map
 

Functions

 wxm::dfem::array::UniqueSubdomainArray::UniqueSubdomainArray (const WmDomain &domain, const std::string &subdomain_name, bool is_virtual, const WxRange &element_range)
 Constructor.
 
virtual wxm::dfem::array::UniqueSubdomainArray::~UniqueSubdomainArray ()
 Destructor.
 
void wxm::dfem::array::UniqueSubdomainArray::fill (const real &value)
 Fill subdomain with a value.
 
virtual void wxm::dfem::array::UniqueSubdomainArray::dump (WxIoBase &io, WxIoNodeType &group_node) const
 Write out the array to file.
 
virtual void wxm::dfem::array::UniqueSubdomainArray::load (WxIoBase &io, const WxIoNodeType &group_node)
 Load object from file.
 
UniquePatchArraywxm::dfem::array::UniqueSubdomainArray::patch_array (const int patch_index)
 Get the array associated with patch_index.
 
const UniquePatchArraywxm::dfem::array::UniqueSubdomainArray::patch_array (const int patch_index) const
 Get the array associated with patch_index.
 
const std::string & wxm::dfem::array::UniqueSubdomainArray::name () const
 
bool wxm::dfem::array::UniqueSubdomainArray::is_virtual () const
 

Variables

const WmDomainwxm::dfem::array::UniqueSubdomainArray::_domain
 Reference to domain object.
 
std::string wxm::dfem::array::UniqueSubdomainArray::_subdomain_name
 Name of subdomain in mesh.
 
unique_patch_array_map wxm::dfem::array::UniqueSubdomainArray::_patch_array_map
 Collection of patches found in subdomain.
 
const WxRangewxm::dfem::array::UniqueSubdomainArray::_element_range
 Range for each element.
 
WxRange wxm::dfem::array::UniqueSubdomainArray::_global_range
 Global range of array.
 
int wxm::dfem::array::UniqueSubdomainArray::_mesh_id
 Mesh id.
 
bool wxm::dfem::array::UniqueSubdomainArray::_is_virtual
 

Friends

std::ostream & wxm::dfem::array::UniqueSubdomainArray::operator<< (std::ostream &stream, const wxm::dfem::array::UniqueSubdomainArray &array)
 

Detailed Description

Typedef Documentation

◆ unique_patch_array_map

Function Documentation

◆ dump()

virtual void wxm::dfem::array::UniqueSubdomainArray::dump ( WxIoBase io,
WxIoNodeType group_node 
) const
virtual

Write out the array to file.

Parameters
ioI/O object to use for writing
group_nodegroup node to write to

◆ fill()

void wxm::dfem::array::UniqueSubdomainArray::fill ( const real value)

Fill subdomain with a value.

Parameters
valueValue to fill with

◆ is_virtual()

bool wxm::dfem::array::UniqueSubdomainArray::is_virtual ( ) const
inline

◆ load()

virtual void wxm::dfem::array::UniqueSubdomainArray::load ( WxIoBase io,
const WxIoNodeType group_node 
)
virtual

Load object from file.

This method is passed a group node from which its data should be read and then constructed.

Parameters
ioI/O object to use for writing
group_nodesgroup nodes to read from

◆ name()

const std::string & wxm::dfem::array::UniqueSubdomainArray::name ( ) const
inline

◆ patch_array() [1/2]

UniquePatchArray & wxm::dfem::array::UniqueSubdomainArray::patch_array ( const int  patch_index)

Get the array associated with patch_index.

Parameters
patch_indexPatch identification index
Returns
Array associated with patch

◆ patch_array() [2/2]

const UniquePatchArray & wxm::dfem::array::UniqueSubdomainArray::patch_array ( const int  patch_index) const

Get the array associated with patch_index.

Parameters
patch_indexPatch identification index
Returns
Array associated with patch

◆ UniqueSubdomainArray()

wxm::dfem::array::UniqueSubdomainArray::UniqueSubdomainArray ( const WmDomain domain,
const std::string &  subdomain_name,
bool  is_virtual,
const WxRange element_range 
)

Constructor.

Parameters
domainDomain object
subdomain_nameName of subdomain
is_virtualwhether this data exists for purely computational reasons (true) or is physically relevant (false)
element_rangeRange of each element's dataset

◆ ~UniqueSubdomainArray()

virtual wxm::dfem::array::UniqueSubdomainArray::~UniqueSubdomainArray ( )
virtual

Destructor.

Variable Documentation

◆ _domain

const WmDomain& wxm::dfem::array::UniqueSubdomainArray::_domain
protected

Reference to domain object.

◆ _element_range

const WxRange& wxm::dfem::array::UniqueSubdomainArray::_element_range
protected

Range for each element.

◆ _global_range

WxRange wxm::dfem::array::UniqueSubdomainArray::_global_range
protected

Global range of array.

◆ _is_virtual

bool wxm::dfem::array::UniqueSubdomainArray::_is_virtual
protected

◆ _mesh_id

int wxm::dfem::array::UniqueSubdomainArray::_mesh_id
protected

Mesh id.

◆ _patch_array_map

unique_patch_array_map wxm::dfem::array::UniqueSubdomainArray::_patch_array_map
protected

Collection of patches found in subdomain.

◆ _subdomain_name

std::string wxm::dfem::array::UniqueSubdomainArray::_subdomain_name
protected

Name of subdomain in mesh.

Friends

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
const wxm::dfem::array::UniqueSubdomainArray array 
)
friend