SideSet

class SideSet

Side set.

Public Functions

int get_id() const

Get side set ID.

Returns:

Side set ID

const std::string &get_name() const

Get side set name.

Returns:

Side set name

int get_size() const

Get the number of sides in the set.

Returns:

Side set size

int get_element_id(std::size_t idx) const

Get an element ID of a side in the side set.

See also

get_size

Parameters:

idx – Index of the side. Can be 0..<size of the side set>.

Returns:

Element ID

const std::vector<int> &get_element_ids() const

Get element IDs.

Returns:

Array of element IDs

const std::vector<int> &get_side_ids() const

Get side IDs.

Returns:

Array of side IDs

int get_side_id(std::size_t idx) const

Get an local side number of a side in the side set.

See also

get_size

Parameters:

idx – Index of the side. Can be 0..<size of the side set>.

Returns:

Local side number

void set_id(int id)

Set side set ID.

Parameters:

id – Desired ID of the side set

void set_name(const std::string &name)

Set side set name.

Parameters:

name – Desired name of the side set

void set_sides(const std::vector<int> &elems, const std::vector<int> &sides)

Set side set sides.

Note

Size of elems and sides should be equal.

Parameters:
  • elems – List of element IDs that will comprise the side set

  • sides – List of local side numbers that will comprise the side set

void add(int elem, int side)

Add an (elem_id, side_id) pair into the side set.

Parameters:
  • elem – Element ID

  • side – Local side number