*linemesh_saveparams

Assigns meshing parameters to a line or its segments for 1D meshing.

Syntax

*linemesh_saveparams line_id=<value> ?option1=<value1>? ?option2=<value2>? … ?optionN=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Assigns meshing parameters to the input line for 1D meshing. If break_angle is defined, the input line might be broken into several segments by this angle and the *linemesh_saveparams command needs to be used separately to set parameters for each segment of this line, since different parameters might be assigned to different segments. In that case, segment_id specifies to which segment of the broken line the command parameters are applied.

The 1D mesh parameters on the input line, or on one of its segments, can be set by either of the following two ways:
  • specify elem_density, bias_intensity and bias_style

    OR

  • specify use_chordal_values, min_size, max_size, max_deviation and max_angle

The command must be paired with a call to *linemesh_preparedata1, which initializes the mesh server for a set of lines, with some initial parameters, including the element configuration.

Inputs

line_id=<value>
The ID of the line for which the mesh parameters are set.
break_angle=<value>
If a break angle is given, the input line might be broken into several segments depending on the value of the break angle. Then we use segment_id, to specify to which segment the parameters are applied.
segment_id=<value>
When the input line is broken into several segments with a break angle, segment_id is used to specify to which segment the parameters are applied. Segment ID’s start with 0, which refers to the first segment of the broken line.
elem_density=<value>
The element density to use for that segment.
bias_intensity=<value>
The biasing value of the element length to use along the given segment.
bias_style=<value>
The style of biasing to use. Valid values are:
0 - linear
1 - exponential
2 - bell curve
use_chordal_values=<value>
Argument to specify if the parameters are set by using chordal values or not. Valid values are:
0 – not using chordal values. In this case, elem_density and bias_intensity should be provided as input arguments.
1 – using chordal values. In this case, min_size, max_size, max_deviation and max_angle should be provided as input arguments.
min_size=<value>
The required lower bound for the element size to use in meshing.
max_size=<value>
The required upper bound for the element size to use in meshing.
max_deviation=<value>
The required maximum deviation for the element size in meshing.
max_angle=<value>
The required maximum angle between the elements in meshing.

Examples

To mesh the lines ID 12 and 31, using break_angle 30.0. Assume that this angle breaks line ID 31 into two segments (segment 0 and segment 1). In this case, we need to use *linemesh_saveparams for each of these segments separately.
*createmark lines 1 31 12
*linemesh_preparedata1 lines 1 30 2
*linemesh_saveparams line_id=12 break_angle=30 segment_id=0 use_chordal_values=1 min_size=0.5 max_size=5 max_deviation=0.1 max_angle=15
*linemesh_saveparams line_id=31 break_angle=30 segment_id=0 elem_density=9 bias_intensity=7 bias_style=1
*linemesh_saveparams line_id=31 break_angle=30 segment_id=1 elem_density=6 bias_intensity=8 bias_style=2 
*linemesh_savedata1 1 2 0 0 

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2023