Generating a orphan mesh from scratch in abaqus with python

穿精又带淫゛_ 提交于 2019-12-04 19:27:15

The orphan mesh facility has a very specific usage.
If you just want to create a mesh as you would do in CAE, the Python command is .generateMesh():

mdb.models['YourModel'].parts['PartToBeMeshed'].generateMesh()

If generating and using an orphan mesh is really what you want to do: setting the location of each node, importing certain parts...

The answer has been given in the comments:

  1. Create a part from the mesh you created with the .PartFromMesh() command. It takes the name of the new part (string) as a required argument and copySets if you need the sets/surfaces/attributes to be carried over:

    mdb.models['YourModel'].parts['PartToBeCopied'].PartFromMesh(name='NewPartName', copySets=True)  
    
  2. You just created a new part containing only 1 feature and a mesh. You now need to instantiate it in the assembly with the following command:

    mdb.models['YourModel'].rootAssembly.Instance(name='YourInstanceName', part=mdb.models['YourModel'].parts['NewPartName'], dependent=True)
    

    Dependent has to be set to True since you want the mesh to be defined at a part level.

The Part module is there to work on the geometry. The assembly module helps you create an assembly of one or several parts interacting with each other. In order to define a Load, one needs an Assembly containing at least one Part, a Set of vertice/edge/surface/and/or/cells to which the load will be applied and a Step in which the load will be applied.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!