abaqus

How to run Abaqus Macro (.py) script

假装没事ソ 提交于 2019-12-08 03:58:06
问题 I am new to python. I generated a macro which is a .py script using Abaqus Macro manager. I realised that this script works only when run from the Abaqus manager and does not run by itself. Please does anyone know how to modify this script so i can run it without using the Abaqus. Thank you in advance for your help Adroit 回答1: to run a python script that relies on abaqus cae from the command line and without opening up the gui window you do: abaqus cae noGUI=script.py As mentioned if all the

Extract nodal coordinates from the deformed testsubject (abaqus-python)

自闭症网瘾萝莉.ら 提交于 2019-12-08 02:58:30
问题 I am trying to make a python script to extract the nodal coordinates from the ODB file (from abaqus). So far i have come up with the code attached below (don't mind the extra information i put behind the #, sometimes it's just so i can keep track of what i'm doing) The problem is that the coordinates i extract are those from the undeformed test subject. and i need the coordinates of the nodes from the deformed test subject. Can somebody help me with how i reach this information using python

Abaqus visualize density

浪子不回头ぞ 提交于 2019-12-08 00:51:50
问题 I'm trying to optimize the porosity distribution of a certain material. I would like to visualize the results. I can visualize the different materials using 'visualize->material' however he gives every material a random color. I would like the least dense materials to be blue and the densest to be red. So the same as for the stress plots. Is there a way to do this in Abaqus? If there's no simple way to do this in the GUI, I was wondering would it be possible by using scripting? I tried to

Generating a orphan mesh from scratch in abaqus with python

戏子无情 提交于 2019-12-06 14:02:29
问题 I am trying to generate an orphan mesh with python in Abaqus 6.13. Meaning I want to specify the coordinate locations of each of the nodes, and then another function creating the elements using the previously created nodes. I have created a list of nodes, and elements already, but I don't know what methods I should use to add them into abaqus. This creates nodes p = mdb.models[nameModel].parts[namePart] for z in range (0, z_max+1): for y in range (0, y_max+1): for x in range (0, x_max+1):

Extract nodal coordinates from the deformed testsubject (abaqus-python)

青春壹個敷衍的年華 提交于 2019-12-06 12:38:04
I am trying to make a python script to extract the nodal coordinates from the ODB file (from abaqus). So far i have come up with the code attached below (don't mind the extra information i put behind the #, sometimes it's just so i can keep track of what i'm doing) The problem is that the coordinates i extract are those from the undeformed test subject. and i need the coordinates of the nodes from the deformed test subject. Can somebody help me with how i reach this information using python code? from abaqus import * from abaqusConstants import * import __main__ import section import

How to run Abaqus Macro (.py) script

◇◆丶佛笑我妖孽 提交于 2019-12-06 09:29:44
I am new to python. I generated a macro which is a .py script using Abaqus Macro manager. I realised that this script works only when run from the Abaqus manager and does not run by itself. Please does anyone know how to modify this script so i can run it without using the Abaqus. Thank you in advance for your help Adroit to run a python script that relies on abaqus cae from the command line and without opening up the gui window you do: abaqus cae noGUI=script.py As mentioned if all the script does is define a macro, well that's all it does is define the macro and quit. Typically you need to

Abaqus脚本接口及简单应用

故事扮演 提交于 2019-12-05 19:12:06
目录 1.脚本接口简介 2. 宏录制 3. 宏回放 4. 宏编辑 5. 宏控制 1.脚本接口简介 Abaqus中的脚本接口(ASI)是在Python应用程序的基础上开发的,基于Abaqus中的脚本接口,用户可以实现下列功能。 自定义Abaqus环境文件 创建宏来自动进行前、后处理 读取或写出输出数据库文件(ODB)文件 进行参数分析 创建Abaqus插件程序 执行脚本的命令接口,可以通过GUI、命令行接口或者脚本执行命令,其脚本与内核的关系如下图所示。 提供两种GUI程序设计,分别为RSG对话框构造器和Abaqus GUI工具包。 命令行接口,直接在命令行输入python的命令 脚本执行,将脚本编程成函数,并在【File|Run Script...】来执行 2. 宏录制 Abaqus操作过程中的命令都会被记录下来,在工作目录下会生成 *.rpy 文件,在该文件中记录的内容较多,可使用宏录制的方法来记录了特定步骤的命令。 执行命令【File|Macro Manager...】,在弹出的窗口中点击【Create...】按钮,同时定义宏的名字和路径,一般选择工作目录,即“Work”,然后点击【Continue...】按钮,开始录制。录制结束时,点击【Stop Recording】即可。打开工作目录下的 abaqusMacros.py 文件,会看到记录的程序。 # -*- coding:

Generating a orphan mesh from scratch in abaqus with python

穿精又带淫゛_ 提交于 2019-12-04 19:27:15
I am trying to generate an orphan mesh with python in Abaqus 6.13. Meaning I want to specify the coordinate locations of each of the nodes, and then another function creating the elements using the previously created nodes. I have created a list of nodes, and elements already, but I don't know what methods I should use to add them into abaqus. This creates nodes p = mdb.models[nameModel].parts[namePart] for z in range (0, z_max+1): for y in range (0, y_max+1): for x in range (0, x_max+1): listNode.append(p.Node(coordinates=(x*x_div, y*y_div, z*z_div))) This creates the elements p = mdb.models

Using subroutines written in Fortran 90 with Abaqus Standard

我怕爱的太早我们不能终老 提交于 2019-12-04 17:07:44
I am using Abaqus with user-defined subroutines. To the best of my knowledge, Abaqus Standard or Explicit can be used with subroutines written specifically in Fortran 77 language, not the improved Fortran 90/95 language! Is there a way how to use Fortran 90 and later with Abaqus? By default, Abaqus expects user subroutines to be written in the older fixed-format style. However, you can use just about any modern language feature supported by your compiler. 1 This includes using modules, new intrinsics, derived types, etc, as long as you adhere to the fixed-format style. But if you find the

abaqus 子程序内部变量输出

烂漫一生 提交于 2019-12-03 11:15:01
do kblock = 1, nblock c data output and output frequence unit=1000+kblock outdir='' c 输出时间间隔 outputstep=0.02 noutputstep=period/outputstep c 工作目录调用 CALL VGETOUTDIR( OUTDIR, LENOUTDIR ) do i =1,noutputstep time_tol=abs(i*outputstep-time(1)) if ((time_tol).gt.(0.0001)) then continue else c 按单元号生成输出文本 write(cfile,'(i8.5,a4)') jelem(kblock),'.txt' cfile=TRIM(ADJUSTL(outdir))//'\'//TRIM(ADJUSTL(cfile)) open(unit, file=cfile, action="WRITE") write(unit,*) time(1) endif enddo end do 来源: https://www.cnblogs.com/structurer/p/11793129.html