• 大小: 0.41M
    文件类型: .zip
    金币: 2
    下载: 3 次
    发布日期: 2021-04-15
  • 语言: Python
  • 标签: easy  pbc  EasyPBC  farecf  

资源简介

easy PBC插件,可以自动添加周期性边界条件,python开源代码

资源截图

代码片段和文件信息

##      EasyPBC Ver. 1.3   (08/10/2018) updated on (03/11/2018) for error No. 4 and 2D check.
##      EasyPBC is an ABAQUS CAE plugin developed to estimate the homogenised effective elastic properties of user created periodic(RVE)
##      Copyright (C) 2018  Sadik Lafta Omairey
##
##      This program is distributed in the hope that it will be useful
##      but WITHOUT ANY WARRANTY; without even the implied warranty of
##      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##      GNU General Public License for more details.
##
##      You should have received a copy of the GNU General Public License
##      along with this program.  If not see .
##      Kindly do not re-distribute  
##      Citation: Omairey S Dunning P Sriramula S (2018) Development of an ABAQUS plugin tool for periodic RVE homogenisation.
##      Engineering with Computers. https://doi.org/10.1007/s00366-018-0616-4
##      Email sadik.omairey@gmail.com to obtain the latest version of the software.




## Importing ABAQUS Data and Python modules ##

from abaqus import *
from abaqusConstants import *
import __main__
import math
import section
import regionToolset
import displayGroupMdbToolset as dgm
import part
import material
import assembly
import step
import interaction
import load
import mesh
import job
import sketch
import visualization
import xyPlot
import displayGroupOdbToolset as dgo
import connectorBehavior
import time
import os
import sys
import ctypes
import multiprocessing
path = os.getcwd()


## Plugin main GUI function ##

def feasypbc(partinstmeshsensE11E22E33G12G13G23CPUonlyPBC):
        for T in (range(1)):
                start = time.time()
                modelName = part
                instanceName = inst
                upperName= inst.upper()
                
                fail = []
                keycheck2 =[inst]
                
                if part not in (mdb.models.keys()):
                        Er2=0
                        messageBox2 = ctypes.windll.user32.MessageBoxA
                        returnValue = messageBox2(Er2‘Model name is incorrect please input the correct Model name.‘‘EasyPBC Start-up error 02‘0x30 | 0x0)
                        print(‘Start-up error 02. Refer EasyPBC user guide‘)
                        continue
                
                a = mdb.models[modelName].rootAssembly
                errorcheck1 = mdb.models[modelName].rootAssembly.instances.keys()
                if errorcheck1 == fail:
                        Er1=0
                        messageBox1 = ctypes.windll.user32.MessageBoxA
                        returnValue = messageBox1(Er1‘Model part is not created!\nPlease create part and try again‘‘EasyPBC Start-up error 01‘0x30 | 0x0)
                        print(‘Start-up error 01. Refer EasyPBC user guide‘)
                        continue
                
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-03 18:45  EasyPBC V.1.3\
     文件      181496  2018-05-22 09:06  EasyPBC V.1.3\EasyPBC - Composite example.inp
     文件      404465  2018-10-08 22:30  EasyPBC V.1.3\EasyPBC user guide V1.3.pdf
     目录           0  2018-12-03 18:45  EasyPBC V.1.3\EasyPBC V.1.3\
     目录           0  2018-06-21 00:38  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_icons\
     文件        6361  2018-01-18 23:10  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_icons\easypbc.png
     目录           0  2018-10-08 22:34  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_plugins\
     目录           0  2018-06-21 00:44  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_plugins\EasyPBC V.1.3\
     文件        6059  2018-01-18 22:53  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_plugins\EasyPBC V.1.3\easypbc.png
     文件      141418  2018-12-03 18:44  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_plugins\EasyPBC V.1.3\easypbc.py
     文件        2965  2018-06-20 21:59  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_plugins\EasyPBC V.1.3\easyPBCDB.py
     文件         671  2018-10-08 22:34  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_plugins\EasyPBC V.1.3\easyPBC_plugin.py
     文件        6059  2018-01-18 22:53  EasyPBC V.1.3\EasyPBC V.1.3\abaqus_plugins\EasyPBC V.1.3\icons.png
     文件       33092  2018-05-15 03:41  EasyPBC V.1.3\GNU GENERAL PUBLIC LICENSE.txt

评论

共有 条评论