abaqus

Abaqus Surface getSequenceFromMask

北慕城南 提交于 2021-02-07 04:05:59
问题 I am writing script in Abaqus, where I crush circle and square with cut circle (like cheese). I need to put Contact between parts so I need Surface. macro manager generates: s1 = a.instances['kolo-1'].edges side1Edges1 = s1.getSequenceFromMask(mask=('[#1 ]', ), ) a.Surface(side1Edges=side1Edges1 , name='kolkoSurf') The problem is: getSequenceFromMask(mask=('[#1 ]', ), ) How to get this #1? Can I replace it? I searched little and there were some ideas to use: 'find', 'face', 'COORDS' but I

Abaqus Surface getSequenceFromMask

回眸只為那壹抹淺笑 提交于 2021-02-07 04:00:57
问题 I am writing script in Abaqus, where I crush circle and square with cut circle (like cheese). I need to put Contact between parts so I need Surface. macro manager generates: s1 = a.instances['kolo-1'].edges side1Edges1 = s1.getSequenceFromMask(mask=('[#1 ]', ), ) a.Surface(side1Edges=side1Edges1 , name='kolkoSurf') The problem is: getSequenceFromMask(mask=('[#1 ]', ), ) How to get this #1? Can I replace it? I searched little and there were some ideas to use: 'find', 'face', 'COORDS' but I

Abaqus Surface getSequenceFromMask

陌路散爱 提交于 2021-02-07 03:59:04
问题 I am writing script in Abaqus, where I crush circle and square with cut circle (like cheese). I need to put Contact between parts so I need Surface. macro manager generates: s1 = a.instances['kolo-1'].edges side1Edges1 = s1.getSequenceFromMask(mask=('[#1 ]', ), ) a.Surface(side1Edges=side1Edges1 , name='kolkoSurf') The problem is: getSequenceFromMask(mask=('[#1 ]', ), ) How to get this #1? Can I replace it? I searched little and there were some ideas to use: 'find', 'face', 'COORDS' but I

Abaqus DFLUX subroutine in Fortran

六月ゝ 毕业季﹏ 提交于 2021-01-28 08:40:49
问题 this is my first post here and I hope I will be clear describing the issues I'm having with Abaqus subroutine . I'm quite a newbie using Fortran . Basically, my goal is to define a non-uniform surface heat flux over an open cross-section tube and I'm using the DFLUX subroutine . Being open cross-section, the flux is influenced by the self-shadowing of the structure and has to be defined accordingly. Apparently the subroutine is called at each integration point, so that the coordinates of

Can't connect Abaqus PDE to Abaqus/CAE

不想你离开。 提交于 2021-01-27 10:43:32
问题 When I try to run Abaqus PDE (Python development environment) for example from the windows command line with the command: abaqus cae -pde I get the following error in the command line: pde:atxGuiSvr.ipcSvrStart(start=1,atxCaePort=51422):class'socket.gaierror'>: [Errno 11001] getaddrinfo failed and Abaqus PDE can't connect to the Abaqus/CAE. Therefore when I try to run a python script in APDE (in Kernel) I get the following error in the APDE: Spawn: abq6144 cae -rt d:/ABQ_Temp/postProc.py ***

Can't connect Abaqus PDE to Abaqus/CAE

放肆的年华 提交于 2021-01-27 10:41:56
问题 When I try to run Abaqus PDE (Python development environment) for example from the windows command line with the command: abaqus cae -pde I get the following error in the command line: pde:atxGuiSvr.ipcSvrStart(start=1,atxCaePort=51422):class'socket.gaierror'>: [Errno 11001] getaddrinfo failed and Abaqus PDE can't connect to the Abaqus/CAE. Therefore when I try to run a python script in APDE (in Kernel) I get the following error in the APDE: Spawn: abq6144 cae -rt d:/ABQ_Temp/postProc.py ***

Abaqus: script to select elements on a surface

被刻印的时光 ゝ 提交于 2021-01-01 10:07:35
问题 I am trying write an Abaqus/Python script that will select all the elements that "belong" to a certain face. I.e. taking all the elements that have a connection to one face of a meshed cube (I will calculate the total force acting on that face for force-displacement or stress-strain curves later). If I do it using the GUI I get: mdb.models['Model-1'].rootAssembly.Set(elements= mdb.models['Model-1'].rootAssembly.instances['Part-1-1'].elements.getSequenceFromMask( mask=('[#0:5 #fff80000 #ff #f

Abaqus: script to select elements on a surface

核能气质少年 提交于 2021-01-01 10:07:01
问题 I am trying write an Abaqus/Python script that will select all the elements that "belong" to a certain face. I.e. taking all the elements that have a connection to one face of a meshed cube (I will calculate the total force acting on that face for force-displacement or stress-strain curves later). If I do it using the GUI I get: mdb.models['Model-1'].rootAssembly.Set(elements= mdb.models['Model-1'].rootAssembly.instances['Part-1-1'].elements.getSequenceFromMask( mask=('[#0:5 #fff80000 #ff #f

Submit a job, wait for its completion and after submit another job

喜欢而已 提交于 2020-07-06 15:54:14
问题 I need to run multiple times the same abaqus .inp file (slightly changed within runs) and after each run ends I need to submit a abaqus python script that will read the results. I've done the following: #run the programme os.system('abaqus job=file_name cpus=2') #get results and write them to myresults.txt os.system('abaqus viewer noGUI=python_name.py') However, the main program executes the second line before the program started in the first line ends. As a result I get an error. How can I

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

你说的曾经没有我的故事 提交于 2020-05-11 00:42:51
问题 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'