WARPXM v1.10.0
Loading...
Searching...
No Matches
wxm::dfem::variable::distributed_component_t Class Reference

#include <distributed_variable.h>

Public Member Functions

 distributed_component_t (const WmDomain &domain, const std::vector< std::string > &subdomain_names, const std::vector< std::string > &virtual_subdomains, const WxRange &element_range)
 Constructor.
 
 ~distributed_component_t ()
 Destructor.
 
void fill (const real &value)
 Fill the distributed variable with a value for each component.
 
wxm::dfem::array::patch_array_tpatch_array (const int patch_index)
 Aquire a patch array for a specified component.
 
const wxm::dfem::array::patch_array_tpatch_array (const int patch_index) const
 Aquire a patch array for a specified component.
 
bool has_patch_array (const int patch_index) const
 Check if patch array exists.
 
void dump (WxIoBase &io, WxIoNodeType &group_node) const
 Write out the array to file.
 
void load (WxIoBase &io, const WxIoNodeType &group_node)
 Load object from file.
 
array::subdomain_array_tget_subdomain_array (const std::string &subdomain)
 

Protected Types

typedef std::map< int, wxm::dfem::array::patch_array_t * > patch_array_map_t
 
typedef std::map< std::string, wxm::dfem::array::subdomain_array_t * > subdomain_arrays_t
 

Protected Attributes

patch_array_map_t _patch_array_map
 
subdomain_arrays_t _subdomain_arrays
 
const WmDomain_domain
 
const std::vector< std::string > & _subdomain_names
 
const std::vector< std::string > & virtual_subdomains_
 
WxRange _element_range
 

Member Typedef Documentation

◆ patch_array_map_t

◆ subdomain_arrays_t

Constructor & Destructor Documentation

◆ distributed_component_t()

wxm::dfem::variable::distributed_component_t::distributed_component_t ( const WmDomain domain,
const std::vector< std::string > &  subdomain_names,
const std::vector< std::string > &  virtual_subdomains,
const WxRange element_range 
)

Constructor.

◆ ~distributed_component_t()

wxm::dfem::variable::distributed_component_t::~distributed_component_t ( )

Destructor.

Member Function Documentation

◆ dump()

void wxm::dfem::variable::distributed_component_t::dump ( WxIoBase io,
WxIoNodeType group_node 
) const

Write out the array to file.

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

◆ fill()

void wxm::dfem::variable::distributed_component_t::fill ( const real value)

Fill the distributed variable with a value for each component.

Parameters
valueValue to fill component with

◆ get_subdomain_array()

array::subdomain_array_t * wxm::dfem::variable::distributed_component_t::get_subdomain_array ( const std::string &  subdomain)

◆ has_patch_array()

bool wxm::dfem::variable::distributed_component_t::has_patch_array ( const int  patch_index) const

Check if patch array exists.

Parameters
patch_indexPatch of interest
Returns
True if component exists on patch

◆ load()

void wxm::dfem::variable::distributed_component_t::load ( WxIoBase io,
const WxIoNodeType group_node 
)

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
grpNodegroup node to read from

◆ patch_array() [1/2]

wxm::dfem::array::patch_array_t & wxm::dfem::variable::distributed_component_t::patch_array ( const int  patch_index)

Aquire a patch array for a specified component.

Parameters
component_indexComponent of interest
patch_indexPatch of interest
Returns
Array containing patch data

◆ patch_array() [2/2]

const wxm::dfem::array::patch_array_t & wxm::dfem::variable::distributed_component_t::patch_array ( const int  patch_index) const

Aquire a patch array for a specified component.

Parameters
component_indexComponent of interest
patch_indexPatch of interest
Returns
Array containing patch data

Member Data Documentation

◆ _domain

const WmDomain& wxm::dfem::variable::distributed_component_t::_domain
protected

◆ _element_range

WxRange wxm::dfem::variable::distributed_component_t::_element_range
protected

◆ _patch_array_map

patch_array_map_t wxm::dfem::variable::distributed_component_t::_patch_array_map
protected

◆ _subdomain_arrays

subdomain_arrays_t wxm::dfem::variable::distributed_component_t::_subdomain_arrays
protected

◆ _subdomain_names

const std::vector<std::string>& wxm::dfem::variable::distributed_component_t::_subdomain_names
protected

◆ virtual_subdomains_

const std::vector<std::string>& wxm::dfem::variable::distributed_component_t::virtual_subdomains_
protected

The documentation for this class was generated from the following file: