Modify the size of the mesh region #4755
-
Hi, In the process of building a thermal simulation model, I am using the pyaedt script, which gives me a positive loop feedback to my work.
But there is a small problem with this. This problem is that the mesh region fits tightly to the solid as shown below. My requirement is to increase the size of the mesh region slightly, which is good for the mesh quality. In terms of specific parameter changes, firstly, the X, Y, and Z positions are each reduced by 0.1mm. Secondly, XSize, YSize, and ZSize are each increased by 0.2mm. These parameter changes achieve the results I want as shown below. The version of pyaedt I am using is 0.9.2. I would be very happy to know what script would enable the modification of the mesh region size. Looking forward to your reply! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can change settings from the mesh_region object.
To print the settings available:
That line will print out one of the two dictionaries:
As an example:
|
Beta Was this translation helpful? Give feedback.
You can change settings from the mesh_region object.
You can switch between manual or automatic mesh settings using:
To print the settings available:
That line will print out one of the two dictionaries:
{'EnforceCutCellMeshing': False, 'StairStepMeshing': False, 'OptimizePCBMesh': True, 'CurvatureSizeFunction': True, 'EnableTransition': False, 'Enforce2dot5DCutCell': False, 'Enable2DCutCell': False, 'ProximitySizeFunction': True, 'MeshRegionResolution': 3}
{'2DMLMType': '2DMLM_None', 'EnableMLM': True, 'EnforceCutCellMeshing': False, 'MinGapX': '1mm', 'NoOGrids': False, 'MaxElementSizeY': '0.02…