August 9, 2023 at 2:28 pmTobias ZellerSubscriber
I am trying to control the inflation layer on a mesh via a python script and got two problems.
My current code looks like this:
Rotor_Inflation = mesh.AddInflation()
Rotor_Inflation.ScopingMethod = GeometryDefineByType.Component
Rotor_Inflation.NamedSelection = ExtAPI.DataModel.GetObjectsByName("Rotor_Face")
Rotor_Inflation.InflationOption = 1
Rotor_Inflation.FirstLayerHeight = Quantity(0.4, "mm")
Rotor_Inflation.MaximumLayers = 15
Rotor_Inflation.NamedSelection = ExtAPI.DataModel.GetObjectsByName("Rotor_Aussenkante")
Rotor_Inflation.Name = r"""Rotor_Inflation"""
I try to address everything via NameSelection, since I have already defined them in advance.
Now I have the first issue that in the second line "Rotor_Inflation.ScopingMethod = GeometryDefineByType.Component" I get the following output:
"Typenkonflikt. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))"
I would like to know if "Component" is wrong here or what else I should use?
My second question is, how do I change the "Boundary Scoping Method" as right now I'm using two times the same code (Line 3 and 7) and this is not working as well?
Hope someone can help me out.
August 11, 2023 at 1:43 pmNilay PedramSubscriber
PyAnsys is currently a set of open-source projects . Questions on PyAnsys should go through the Developer Forum. Bug reports can be made by creating 'Issues' in GitHub.
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- User manual
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- Defining rigid body and contact
- Colors and Mesh Display
© 2023 Copyright ANSYS, Inc. All rights reserved.