SchemeExt:Eda:tet-mesh-options

From DocR21

Jump to: navigation, search

Contents

Action

Set tetrahedral mesh generation parameters.

Filename

scm/scmext/vabridge/vabridge_scm_dev.cpp

APIs

None

Syntax

(eda:tet-mesh-options ["edgelength" el_value] ["growthrate" gr_value] ["meshfile" mf_value] )

Argument Types

Argument Scheme Data Type
el_value real
gr_value real
mf_value string

Returns

VA_Tet_Mesh_Opts 

Description

These options are designed to provide additional information to the EDA Mesh generation operations.

Arguments

  • el_value is a double precision value that specifies a target edge length of generated elements. The edge length constraint may not be satisfied for elements generated near preserved edges of the volume due to preserved edge sizing. By default it is set to 1.0.
  • gr_value is a double precision value that specifies a maximum growth rate. The growth rate governs the rate at which the size of adjacent elements can grow. The ratio of edge lengths of adjacent elements will not exceed the specified growth rate. By default it is set to 2.0.
  • mf_value is a string value used to specify the path to the a file where a mesh was stored in binary format. (File input).

Note: Mesh files can be created using "journalling". They then can be used to report errors with the mesher or to be read back in using this options object



Example

; Create geometry
(define b (solid:sphere (position 0 0 1) 0.5))
(define c (solid:cylinder 0 0 0 0 0 1 1))
(bool:unite b c)
 
; Generate mesh with default values
(define mesh_01 (eda:generate-tet-mesh b))
(eda:mesh-element-count mesh_01)
;313
 
; Generate mesh with Target Edge Length set
(define mesh_opts_02 (eda:tet-mesh-options "edgelength" 0.125))
(define mesh_02 (eda:generate-tet-mesh b mesh_opts_02))
(eda:mesh-element-count mesh_02)
;366
 
; Generate mesh with Maximum Growth Rate set 
(define mesh_opts_04 (eda:surface-mesh-options "growthrate" 100))
(define mesh_04 (eda:generate-tet-mesh b mesh_opts_04))
(eda:mesh-element-count mesh_04)
;329
Personal tools
Live