Skip to content

materials.GetListMaterialProperties #847

Closed Answered by dipinknair
Dirk-Haverkamp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. This is accessible through add_mechanical_python_libraries function. Here is how to use it.

Start pymechanical app

from ansys.mechanical.core import App
app=App(version=241)  #version may vary
app.update_globals(globals())
print(app)

import function and materials

from ansys.mechanical.core.embedding.app_libraries import add_mechanical_python_libraries
add_mechanical_python_libraries(app)

import materials

import geometry and materials needed then call required function from materials

mat = body.Material
print(materials.GetListMaterialProperties(mat))

ref: https://mechanical.docs.pyansys.com/version/stable/user_guide_embedding/libraries.html

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Dirk-Haverkamp
Comment options

@dipinknair
Comment options

@koubaa
Comment options

Answer selected by dipinknair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants