Pymapdl composition graded material #3325
-
I created a geometry and did the mesh printed the element_ids then I assigned the hundreds of materials(with different Elastic Modulus and Poison ratio) to the element_ids, then I gave the boundary conditions. Now I want to export everything especially the information and relationship between element_ids and material_ids to workbench and go on to the topology optimization. Could I transfer all those information to .cdb file and not miss anything in the workbench? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @FreidaMing If you have elements, materials, etc assigned using MAPDL commands ( Now, if you have other variables, for instance an array, where you have stored information (for instance, a mapping between elements ID and their percentage of composite material A), then those arrays I'm not sure they are exported. Pinging @mikerife and @mcMunich for infor. I know the CDB does contain some parameters definitions, but I am not sure if all the parameters are stored in the CDB file. If they are not saved (or even if they are), you could use |
Beta Was this translation helpful? Give feedback.
-
@FreidaMing @germa89 |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Thanks for looking into this. I appreciate it.
I assigned the material-id to element_id as the code screenshot. The excel
with the information of material_id and element_id is also attached. I also
attached .cdb file. When I open it in workbench, I only find one material
in the material list. Even in the report, I did not find any information
related to element_ids and material_ids. I am not sure which step is wrong.
Could you please give me any ideas? If needed, I will also attach my
original code file in the next email. Thanks agian for all your help.
best,
Yalan
3Dmesh.cdb
<https://drive.google.com/file/d/1lZBqvwMq_jhfDxNLOzRyODecVMMm0U84/view?usp=drive_web>
[image: image.png]
[image: image.png]
…On Mon, Aug 5, 2024 at 8:23 AM Mike Rife ***@***.***> wrote:
@ FreidaMing @germa89 You can double check what the External Model system
in Workbench supports with respect to importing MAPDL commands here. Mike —
Reply to this email directly, view it on GitHub, or unsubscribe. You are
receiving this
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
@FreidaMing
<https://urldefense.com/v3/__https://github.com/FreidaMing__;!!KwNVnqRv!CZbjBr2hj6OAAr06_b_U-mA2hlGxzqwCktPTqSz2loUFCB218CCzyegMhMLr5PyCGxys4kwP6fN-Pe0T3nOur-w$>
@germa89
<https://urldefense.com/v3/__https://github.com/germa89__;!!KwNVnqRv!CZbjBr2hj6OAAr06_b_U-mA2hlGxzqwCktPTqSz2loUFCB218CCzyegMhMLr5PyCGxys4kwP6fN-Pe0TD6CXUCM$>
You can double check what the External Model system in Workbench supports
with respect to importing MAPDL commands here
<https://urldefense.com/v3/__https://ansyshelp.ansys.com/public/account/secured?returnurl=*Views*Secured*corp*v242*en*wb2_help*wb2h_ModelLoadapp.html__;Ly8vLy8vLw!!KwNVnqRv!CZbjBr2hj6OAAr06_b_U-mA2hlGxzqwCktPTqSz2loUFCB218CCzyegMhMLr5PyCGxys4kwP6fN-Pe0T5X4yt8o$>
.
Mike
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/ansys/pymapdl/discussions/3325*discussioncomment-10243312__;Iw!!KwNVnqRv!CZbjBr2hj6OAAr06_b_U-mA2hlGxzqwCktPTqSz2loUFCB218CCzyegMhMLr5PyCGxys4kwP6fN-Pe0TWjpD3Xw$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/BFYJOG7IG2VYB5UZMOQWZMDZP54GPAVCNFSM6AAAAABL7Q4GZKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRUGMZTCMQ__;!!KwNVnqRv!CZbjBr2hj6OAAr06_b_U-mA2hlGxzqwCktPTqSz2loUFCB218CCzyegMhMLr5PyCGxys4kwP6fN-Pe0T1HsuIco$>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Mike,
The information you provided is very helpful. I have resolved the issue
based on the information you provided. Thank you! 🙏
Best,
Yalan
…On Mon, Aug 5, 2024 at 7:46 PM Mike Rife ***@***.***> wrote:
@ FreidaMing The screen shots did not make it in your post. Looking at the
model, cdb file, there are two copies of the elements. Did you mean for
that? Also the elements are only assigned either material ID 1 or 672.
Though there are more material
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
@FreidaMing
<https://urldefense.com/v3/__https://github.com/FreidaMing__;!!KwNVnqRv!A5v7RgKZ9l_5v29O1MCKV_cqbFuVy2QuVOhQQmto5pcqiaahYA_Fdr1eUcAfeY7jBphH6JaXavxwHGTJDW6kTTk$>
The screen shots did not make it in your post.
Looking at the model, cdb file, there are two copies of the elements. Did
you mean for that? Also the elements are only assigned either material ID 1
or 672. Though there are more material models in the cdb file. Do you mean
to do that?
Using External Model to import the cdb file then link over to an WB
Mechanical model, with links to the Engineering Data and the Model cells,
does result in the proper importing of the model. The colors are going to
look odd as there are coincident elements in the model. Hiding the copy of
the mesh it does show the same model as in MAPDL.
Mike
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/ansys/pymapdl/discussions/3325*discussioncomment-10248129__;Iw!!KwNVnqRv!A5v7RgKZ9l_5v29O1MCKV_cqbFuVy2QuVOhQQmto5pcqiaahYA_Fdr1eUcAfeY7jBphH6JaXavxwHGTJG9Z_G2I$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/BFYJOG2LKQLMCCBVDJ3PZVLZQAMGNAVCNFSM6AAAAABL7Q4GZKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRUHAYTEOI__;!!KwNVnqRv!A5v7RgKZ9l_5v29O1MCKV_cqbFuVy2QuVOhQQmto5pcqiaahYA_Fdr1eUcAfeY7jBphH6JaXavxwHGTJxRFeQ8M$>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi @FreidaMing
If you have elements, materials, etc assigned using MAPDL commands (
ET
,MAT
,SECT
, etc) when you export the model as aCDB
file, those material, element configurations, sections, etc... will all be saved in that file.Now, if you have other variables, for instance an array, where you have stored information (for instance, a mapping between elements ID and their percentage of composite material A), then those arrays I'm not sure they are exported. Pinging @mikerife and @mcMunich for infor. I know the CDB does contain some parameters definitions, but I am not sure if all the parameters are stored in the CDB file.
If they are not saved (or even if they are), you could use
PARSAV
…