Mesh Control
 
Mesh controls define the characteristics of a mesh. Mesh controls specify the minimum or maximum size of the elements, the distribution of nodes along edges, hard points and hard curves, mesh ID numbering, mesh ID offsets, and the displacement coordinate system. The functions described in this section provide access to the data and contents of the Creo Simulate mesh control objects. Mesh controls use the ProType field in the ProMechitem structure as PRO_SIMULATION_MESH_CNTRL.
Functions Introduced:
The function ProMechmeshcntrlTypeGet() returns the type of mesh control. The types of mesh controls are:
PRO_MECH_MC_AGEM_EDGE_DISTR—Specifies the edge distribution data for AutoGEM. Use the function ProMechmeshcntrlAutogemedgedistrdataGet() to access the AutoGEM edge distribution data for the mesh control item. Use the function ProMechmeshcntrlAutogemedgedistrdataSet() to modify the AutoGEM edge distribution data for the mesh control item.
Note:
 
If you are creating a new mesh control using this type of data, you should assign the model as a reference using the function ProMechmeshcntrlReferencesSet().
PRO_MECH_MC_AGEM_MIN_EDGE—Specifies the minimum edge and face angles for AutoGEM. Use the function ProMechmeshcntrlAutogemminedgedataGet() to access the AutoGEM minimum edge data for the mesh control item. Use the function ProMechmeshcntrlAutogemminedgedataSet() to modify the AutoGEM minimum edge data for the mesh control item.
Note:
 
If you are creating a new mesh control using this type of data, you should assign the model as a reference using the function ProMechmeshcntrlReferencesSet().
PRO_MECH_MC_AGEM_MAX_ELEMENT_SIZE—Specifies the maximum element size for the AutoGEM mesh. Use the function ProMechmeshcntrlAutogemelemsizedataGet() to access the AutoGEM maximum element data for the mesh control item. Use the function ProMechmeshcntrlAutogemelemsizedataSet() to modify the AutoGEM maximum element data for the mesh control item.
Note:
 
If you are creating a new mesh control using this type of data, you should assign the model as a reference using the function ProMechmeshcntrlReferencesSet().
PRO_MECH_MC_AGEM_EDGE_LEN_CRV—Specifies the ratio of edge lengths of mesh elements adjacent to concave surfaces to the radius of curvature of the concave surfaces. Use the function ProMechmeshcntrlAutogemedgelencrvdataGet() to access the edge length by curvature data for the mesh control item. Use the function ProMechmeshcntrlAutogemedgelencrvdataSet() to set the edge length by curvature ratio.
PRO_MECH_MC_EDGE_DISTRIBUTION—Specifies the number of nodes on one or more edges of the curves in the model. Use the function ProMechmeshcntrlEdgedistrdataGet() to access the edge distribution data for the mesh control item. Use the function ProMechmeshcntrlEdgedistrdataSet() to set the edge distribution data.
Note:
 
If you are creating a new mesh control using this type of data, you should assign the model as a reference using the function ProMechmeshcntrlReferencesSet().
PRO_MECH_MC_DISPL_CSYS—Specifies the displacement coordinate system used for displaying results for nodes associated with points, edges, curves, or surfaces.
PRO_MECH_MC_MAX_ELEMENT_SIZE—Specifies the maximum element size for the mesh. Use the function ProMechmeshcntrlElemsizedataGet() to access the maximum element size data for the mesh control item. Use the function ProMechmeshcntrlElemsizedataSet() to set the maximum element size for the mesh.
Note:
 
If you are creating a new mesh control using this type of data, you should assign the model as a reference using the function ProMechmeshcntrlReferencesSet().
PRO_MECH_MC_MIN_ELEMENT_SIZE—Specifies the minimum element size for the mesh. Use the function ProMechmeshcntrlElemsizedataGet() to access the minimum element size data for the mesh control item. Use the function ProMechmeshcntrlElemsizedataSet() to set the maximum element size for the mesh.
PRO_MECH_MC_SHELL_CSYS—Specifies the coordinate system used for displaying results for nodes associated with shell or quilt surfaces. Use the function ProMechmeshcntrlShellcsysGet() to access the shell coordinate system for the mesh control item. Use the function ProMechmeshcntrlShellcsysSet() to set the shell coordinate system for the mesh control item.
PRO_MECH_MC_HARD_POINT—Specifies a datum point that is defined as a hard point. Use the function ProMechmeshcntrlHardpointGet() to access the hard point data for the mesh control item. Use the function ProMechmeshcntrlHardpointSet() to set the hard point data for the mesh control item.
PRO_MECH_MC_HARD_CURVE—Specifies a datum curve that is defined as a hard curve. This type has no data, only references. Use the function ProMechmeshcntrlHardcurveSet() to set the mesh control item to be of the type hard curve. The reference for the item will be used for the control.
PRO_MECH_MC_IDS_OFFSET—Specifies the offset for the node IDs and element IDs for a component. Use the function ProMechmeshcntrlIdsoffsetGet() to access the offset data for the mesh control item. Use the function ProMechmeshcntrlIdsoffsetSet() to set the offset data.
PRO_MECH_MC_MESH_NUMBERING—Specifies a node and an element ID range for a component. Use the function ProMechmeshcntrlNumberingGet() to access the numbering data for the mesh control item. Use the function ProMechmeshcntrlNumberingSet() to set the numbering data for the mesh control item.
PRO_MECH_MC_SUPPRESS—Specifies the components that must be ignored while applying the mesh control to the assembly level. Use the function ProMechmeshcntrlSuppressGet() to access the suppress data for the mesh control item. Use the function ProMechmeshcntrlSuppressSet() to set the suppress data for the mesh control item.
PRO_MECH_MC_AGEM_SUPPRESS—Specifies the type of AutoGEM controls that you want the mesh generator to ignore at the assembly level. Use the function ProMechmcautogemsuppressTypeGet() to access the types of AutoGEM control suppressed by this AutoGEM control data. Use the function ProMechmcautogemsuppressTypeSet() to set the type of AutoGEM control suppressed by this AutoGEM control data.
The functions ProMechmeshcntrlAutogemsuppressGet() and ProMechmeshcntrlAutogemsuppressSet() access and set the suppress data for the AutoGEM control items.
These functions support only the following AGEM mesh control types:
PRO_MECH_MC_AGEM_EDGE_DISTR
PRO_MECH_MC_AGEM_MIN_EDGE
PRO_MECH_MC_AGEM_ISOLATE_EXCLUDE
PRO_MECH_MC_AGEM_MAX_ELEMENT_SIZE
PRO_MECH_MC_AGEM_EDGE_LEN_CRV
PRO_MECH_MC_AGEM_HARD_POINT
PRO_MECH_MC_AGEM_HARD_CURVE
PRO_MECH_MC_ALL
PRO_MECH_MC_AGEM_ISOLATE_EXCLUDE—Specifies points, edges, curves, and surfaces from the model to isolate during analysis. The function ProMechmeshcntrlAutogemisolateexcludedataGet() returns the list of entities that AutoGEM can detect and isolate using mesh refinement. Use the function ProMechmeshcntrlAutogemisolateexcludedataSet() to set the entities for AutoGEM isolation using mesh refinement.
PRO_MECH_MC_AGEM_HARD_POINT—Specifies points, point features, or point patterns on the model to guide the AutoGEM mesh creation process. This control type has only references and no data associated with it. Use the function ProMechmcautogemHardpointSet() to set the AutoGEM mesh control item as hard point.
PRO_MECH_MC_AGEM_HARD_CURVE—Specifies the datum curves on the model to guide the AutoGEM mesh creation process. This control type has only references and no data associated with it. Use the function ProMechmcautogemHardcurveSet() to set the AutoGEM mesh control item as hard curve.
PRO_MECH_MC_ALL—Specifies all the types of mesh controls.
Note:
 
If you are creating a new mesh control using this type of data, you should assign the model as a reference using the function ProMechmeshcntrlReferencesSet().
The function ProMechmeshcntrlReferencesGet() returns the references for each of the mesh control type. Use the function ProMechmeshcntrlReferencesSet() to set the references used by the mesh control item.
這是否有幫助?