The Geometric Tolerancing model¶
This use case assesses the form-defect conformity of a machined plate. The
plate is the unit square meshed with a 4x4 grid (32 triangles). The form
defect is the out-of-plane field z = 0.05 sin(2 pi x) sin(2 pi y)
transported by PushForwardOverMesh, while
the probe location is uniform over the plate
(UniformOverMesh). A part is non-conforming when the
local defect amplitude exceeds the tolerance (default 0.03). The mesh is
fully synthetic: no external data is required.
Workflow¶
Build
UniformOverMeshover the plate mesh (or estimate it withUniformOverMeshFactoryfrom a measurement sample).Transport the defect field with
PushForwardOverMesh.Compute the non-conformity probability against the tolerance.
Load the use case¶
We can load this model from the use cases module as follows :
>>> from openturns.usecases.geometric_tolerancing import GeometricTolerancing
>>> m = GeometricTolerancing()
>>> # Load the plate mesh (32 triangles) and the defect distribution
>>> mesh = m.plate
>>> defect = m.defect
API documentation¶
- class GeometricTolerancing(tolerance=0.03)
Form-defect tolerancing of a machined plate (fully synthetic).
The plate is the unit square meshed with a 4x4 grid. The form defect is the out-of-plane field
z = 0.05 sin(2 pi x) sin(2 pi y)transported byPushForwardOverMesh, while the probe location is uniform over the plate (UniformOverMesh). A part is non-conforming when the local defect amplitude exceeds thetolerance(default 0.03). No external data is required.- Attributes:
- tolerancefloat
Conformity threshold on the defect amplitude.
Methods
nonConformityProbability([size])Monte Carlo estimate of the non-conformity probability.
Examples
>>> from openturns.usecases import geometric_tolerancing >>> m = geometric_tolerancing.GeometricTolerancing() >>> print(m.plate.getSimplicesNumber()) 32
- nonConformityProbability(size=20000)
Monte Carlo estimate of the non-conformity probability.
OpenTURNS