abaqus

Accelerate a slow loop in Abaqus-python code for extracting strain data from .odb file

拥有回忆 提交于 2020-05-11 00:37:58
问题 I have a .odb file, named plate2.odb, that I want to extract the strain data from. To do this I built the simple code below that loops through the field output E (strain) for each element and saves it to a list. from odbAccess import openOdb import pickle as pickle # import database odbname = 'plate2' path = './' myodbpath = path + odbname + '.odb' odb = openOdb(myodbpath) # load the strain values into a list E = [] for i in range(1000): E.append(odb.steps['Step-1'].frames[0].fieldOutputs['E'

Getting started with GETFEM++ (in windows) for linear elasticity (material is linear. Not the final response) [closed]

别说谁变了你拦得住时间么 提交于 2020-04-07 10:41:49
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 days ago . I am interested to work on solid mechanics problems with contacts. The installation guide does not seem to help much. Anyone here using this? Can you help with setting it up? My objective is to move to open source (alter to MatLab)with good community support. Is this good enough?

ABAQUS中用Python调取(多个)参考点

冷暖自知 提交于 2020-02-15 08:08:23
ABAQUS中建立复杂模型,尤其是复杂接触或者复杂约束时,往往采用参数化更为高效,这些问题中常常会建立为数不少的参考点,对这些参考点的读取和调用是不可避免地,但ABAQUS模型中的Python对象众多,且各适用于不同的函数,导致常常出现如下错误: TypeError: region; found Feature, expecting Region 本文讨论的问题也是基于此类报错。 下面先看看笔者遇到的问题(比较简单): 在建立钢绞线实体模型的过程中,需要在模型两端施加约束和荷载,笔者意图建立两个参考点来约束钢绞线两端面,如图: 创建参考点: RP1 = myAssembly.ReferencePoint(point=(0.0, 0.0, -10.0)) RP2 = myAssembly.ReferencePoint(point=(0.0, 0.0, 210)) 建立好参考点后,对右端点施加固定约束: myModel.DisplacementBC(name='BC-Right', createStepName='Initial', region=RP1, u1=SET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=SET, amplitude=UNSET, distributionType=UNIFORM, fieldName='',

如何让机器自动的逐个计算一系列的job文件呢?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-29 00:06:16
[转载]Abaqus中实现多个job的连续执行 2019-05-08 战神之家 阅 378 转 1 转藏到我的图书馆 原文地址: Abaqus中实现多个job的连续执行 作者: 欣事浩茫 如何让机器自动的逐个计算一系列的job文件呢? ------------------------------------------ ABAQUS/cae 创建job界面不支持队列方式,可以在abaqus command命令窗口输入以下命令: 批处理文件内容: cmd/c abaqus job=beam interactive cmd/c abaqus job=beam1 interactive cmd/c abaqus job=beam2 interactive cmd/c abaqus job=beam3 interactive ... cmd/c abaqus job=beamn interactive 采用以上格式写好后, 存成批处理文件bat, 如 abc.bat, 然后在abaqus command 窗口内输入abc后回车 可一次提交,然后连续逐步的执行多个job计算。 以上命令末尾如没有interactive一词,则表示一次提交全部,将不是逐个提交,等前面的计算完再提交后一个。 -----------------------------------------------------

应用Abaqus有限元软件动力学模块模拟岩石在压头作用下的变形特征。

无人久伴 提交于 2020-01-18 04:39:01
三维有限元模型如图所示,压头为直径5mm的圆柱体,岩石为100mm×100mm×100mm的立方体。由于岩石比压头大得多,其边界对变形、位移和应力场的影响可以忽略不计。由于模型的几何形状和力的分布是对称的,为了减少计算时间,采用了四分之一的模型。此外,圆柱压头被视为刚体,在刚体上设置一个参考点与之绑定,只限制其在Z方向上的自由。同时,在岩石底部施加完全固定的约束,在岩石的A侧和B侧分别施加垂直于X轴和Y轴的对称约束。在模拟中,施加静载为1 kN,施加的动载频率在100hz - 150hz之间,振幅在0.5 kN - 1 kN之间,分析动荷载对岩石变形位移和应力场的影响。 标题 模拟结果: 圆柱压头冲击过程中静、动载荷作用下岩石Mises应力对比 作者:LiSQ 来源: CSDN 作者: 小游园 链接: https://blog.csdn.net/s0302017/article/details/103946978

Getting element mass in Abaqus postprocessor

大憨熊 提交于 2020-01-17 04:08:48
问题 I want to hide all elements in my model with mass less than a value. Is it possible? I found only way to see mass of elements by creating set for each element in History Output, but it sounds stupid because the number of elements. Is there any way to do it? 回答1: You can create a display group based on the currently displayed field output variable. Element mass isn't available, but element volume is. (you have to request EVOL as an output before running the analysis). you should already know

Python: Overwrite import of numpy from Abaqus with different version of numpy

北城余情 提交于 2020-01-03 04:54:08
问题 The Abaqus that I run has a pre-installed library (numpy) which has version 1.6.2 This is the only pre-installed module which is present as an "addon" for Abaqus (other than the native Abaqus CAE libraries). I want to be able to run a python script, executed with abaqus cae nogui=makro.py , so that I can have access to scipy as well. I am doing all this in a very strict environment (no moving around of folders at installation directories) I have tried the following: import sys sys.path.insert

Faster way to partition a Face with Sketch in ABAQUS with scripting

倾然丶 夕夏残阳落幕 提交于 2019-12-25 08:49:32
问题 My aim is to obtain a transition mapped quad meshing on a long rectangular region which is a parametrised model. The final mesh can be seen as follows: The only way I could realise this final output mesh was to partition the face with sketch and then, using adequate mesh controls and seeding on the respective edges. For this reason, I started with generating a block on the left hand side of the geometry like this: Thereafter, a "for" loop was used in the Python script running from the left

ABAQUS subroutine runs when configured as a program but not as a subroutine

微笑、不失礼 提交于 2019-12-25 02:55:56
问题 I am writing a DISP subroutine for ABAQUS 6.14, starting with small steps -- trying to open and read the file containing the displacement data. So far I have a fortran script which runs perfectly when configured as an independent program but crashes when ABAQUS runs it as a subroutine. The working version : PROGRAM DISP INTEGER nnodes, IOS PARAMETER (nnodes = 5652) REAL A(nnodes,4) WRITE(*,*) 'hello world' OPEN(UNIT=11,FILE ="displaced_shape.dat",IOSTAT=IOS) WRITE(*,*) IOS DO ix = 1,nnodes

How to run ML within Abaqus material subroutine?

浪尽此生 提交于 2019-12-24 23:19:06
问题 I'm using Abaqus to run FEA simulations which include a material user subroutine (umat), written in Fortran 77 to define the material model. Currently I'm need to use data from the simulation (at run time) to train a machine learning algorithm (SVR or Random Forest Regression are yet to be chosen). Naturally most of the ML modules are in python, not in Fortran, so I have tried the following approach so far: Within the UMAT I'm calling the python script via command line, the data is written in