**join_bsets#

Description#

This command is provided in order to join bsets together.

Syntax#

**join_bsets requires a new bset name, and needs one or more existing bsets to be entered which will be joined in the new set.

**join_bsets new-bset \(~\,\) *bsets bset1  …  bsetN \(~\,\) [ *remove_duplicates ]

where bset1bsetN indicate the character name of pre-existing boundary sets (faset or liset).

If the remove_duplicates option is specified, boundary elements appearing more than once in the union are not repeated (the verification is not done by default, for performance reasons).

Example#

Here is a typical example:

**extract_surface   % detects the geometrical zones
**join_bsets pressure_zone
 *bsets surface_2 surface_3 surface_7

This first example doesn’t require the remove_duplicates option, since extract_surface generates disjoint surfaces.

Incidentally, this mesher can also be used to remove potential duplicates in an existing bset:

**nset inner_surf
 *function abs(z)<1.e-3;               % picks all nodes at z=0

**bset inner_surf_with_duplicates      % when this surface is internal
 *use_nset inner_surf                  % all faces are duplicated

**join_bsets inner_surf_no_duplicates  % so we use join_bsets to remove them
 *bsets inner_surf_with_duplicates
 *remove_duplicates
**bset_align                           % and make sure orientation is correct
 *bsets inner_surf_no_duplicates
 *normal (0. 0. 1.)