Skip to content

Mesher options

Luc edited this page Jan 6, 2020 · 4 revisions

Lateral discretization

Set one the 2 following arguments with their corresponding value:

  • --lat_step: target lateral space (in m)
  • --nb_pts_lat: number of nodes laterally

The first option is recommanded to build an unstructured mesh. The last argument is not compatible with more than 2 constraint lines.

Illustration lateral discretization

Longitudinal discretization

Specify the argument --long_step with the target longitudinal space (in m).

The optional argument --constant_long_disc can be used to generate a mesh with the same number of nodes laterally: Illustration of argument constant_long_disc

Discretization of floodplains

Only the tool mesh_crue10_run.py has the optional argument --floodplain_step to specify the length (in m) of element edges. The "casiers" are simply not meshed if this argument is not provided.

Constraint lines

Constraint lines can be defined in a geometry file and its path specify after the optional argument --constraint_lines.

If this argument is not provided, the whole river reach wdith is meshed.

Illustration of constraint lines

Interpolation of X and Y coordinates

By default coordinates of nodes are interpolated linearly along points of the constraint lines.

The argument --interp_constraint_lines can be set the string FINITE_DIFF (or CARDINAL) to smooth the interpolation (Cubic Spline interpolation):

Illustration of interp_constraint_lines

Planar projection of cross-sections

Cross-sections can be projected along a straight line with the optional argument --project_straight_line.

Illustration of project_straight_line

💡 mesh_mascaret_run.py does not provide this option because cross-sections are built orthogonal to hydraulic axis.