0% found this document useful (0 votes)
39 views1 page

Abaqus Command

The document provides code to generate a cube mesh and pattern cells in Abaqus. It includes commands to: 1) Import dependencies, generate a cube mesh by extruding a 2D sketch, and seed the part. 2) Create a linear instance pattern of the cell horizontally with 3 rows and 3 columns. 3) Create another linear instance pattern vertically using an instance list from the first pattern to generate a grid of cells.

Uploaded by

Ericqqq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Abaqus Command

The document provides code to generate a cube mesh and pattern cells in Abaqus. It includes commands to: 1) Import dependencies, generate a cube mesh by extruding a 2D sketch, and seed the part. 2) Create a linear instance pattern of the cell horizontally with 3 rows and 3 columns. 3) Create another linear instance pattern vertically using an instance list from the first pattern to generate a grid of cells.

Uploaded by

Ericqqq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ABAQUS COMMAND

import Python dependencies

Mdb() from driverUtils inport executeOnCaeStartup

from caeModules import *

from abaqus import *

from abaqusConstants import *

generate Cell Cube

Mesh Cell Cube s1 = mdb.models['Model-1'].ConstrainedSketch(name='__profile__',

p = mdb.models['Model-1'].parts['v0'] sheetSize=200.0)

p.seedPart(size=1.0, deviationFactor=0.1, minSizeFactor=0.1) g, v, d, c = s1.geometry, s1.vertices, s1.dimensions, s1.constraints

p = mdb.models['Model-1'].parts['v0'] s1.setPrimaryObject(option=STANDALONE)
I/O Design
p.generateMesh() s1.rectangle(point1=(0.0, 0.0), point2=(10.0, 10.0))

Input
p = mdb.models['Model-1'].Part(name='v0', dimensionality=THREE_D,type=DEFORMABLE_BODY)

p = mdb.models['Model-1'].parts['v0'] fractLevel

p.BaseSolidExtrude(sketch=s1, depth=10.0) Cube Size

s1.unsetPrimaryObject() seedSize

GUI Design
p = mdb.models['Model-1'].parts['v0'] size

del mdb.models['Model-1'].sketches['__profile__'] 输入框


deviationFactor

Liner Pattern(Cell/Part) miniSizeFactor fractal level

Process size of Sponge


Shrink Result Step 1.Horizontal Pattern

seeds number on single cell


proc_level
p = mdb.models['Model-1'].Part(name='Part-4-Copy', a1 = mdb.models['Model-1'].rootAssembly
objectToCopy=mdb.models['Model-1'].parts['Part-4'], compressFeatureList=ON, a1.LinearInstancePattern(instanceList=('v0-1', ), direction1=(1.0, 0.0, 0.0), otherParameter
scale=0.001) direction2=(0.0, 1.0, 0.0), number1=3, number2=3, spacing1=10.0, patternDimensionDictionary
spacing2=10.0)
按钮
distanceBetweenCubes
Step 2.Vertical Pattern
Generate
partsDictionary
Step 2.1 Vertical Pattern(Rule A)
zoomSize

a1 = mdb.models['Model-1'].rootAssembly
a1.LinearInstancePattern(instanceList=('v0-1', 'v0-1-lin-1-2', 'v0-1-lin-1-3', Output
'v0-1-lin-2-1', 'v0-1-lin-2-2', 'v0-1-lin-2-3', 'v0-1-lin-3-1',
'v0-1-lin-3-2', 'v0-1-lin-3-3'), direction1=(0.0, 0.0, 1.0), direction2=(
0.0, 1.0, 0.0), number1=3, number2=1, spacing1=10.0, spacing2=30.0) Part['menger_sponge_v$(fractLevel)']

Step 2.2 Vertical Pattern(Rule B)

a1 = mdb.models['Model-1'].rootAssembly
a1.LinearInstancePattern(instanceList=('v0-1-lin-2-3', 'v0-1-lin-1-2',
'v0-1-lin-2-1', 'v0-1-lin-3-2'), direction1=(0.0, 0.0, 1.0), direction2=(
0.0, 1.0, 0.0), number1=2, number2=1, spacing1=20.0, spacing2=30.0)

Step 3.Dele Useless subPart

del a.features['v0-1-lin-2-2']

Step 4.Merge subParts to Part

a1 = mdb.models['Model-1'].rootAssembly
a1.InstanceFromBooleanMerge(name='v1', instances=(a1.instances['v0-1'],
a1.instances['v0-1-lin-1-2'], a1.instances['v0-1-lin-1-3'],
a1.instances['v0-1-lin-2-1'], a1.instances['v0-1-lin-2-3'],
a1.instances['v0-1-lin-3-1'], a1.instances['v0-1-lin-3-2'],
a1.instances['v0-1-lin-3-3'], a1.instances['v0-1-lin-1-3-lin-2-1'],
a1.instances['v0-1-lin-1-3-lin-3-1'], a1.instances['v0-1-lin-3-3-lin-2-1'],
a1.instances['v0-1-lin-3-3-lin-3-1'], a1.instances['v0-1-lin-3-1-lin-2-1'],
a1.instances['v0-1-lin-3-1-lin-3-1'], a1.instances['v0-1-lin-2-1-1'],
a1.instances['v0-1-lin-3-1-1'], a1.instances['v0-1-lin-2-3-lin-2-1'],
a1.instances['v0-1-lin-1-2-lin-2-1'], a1.instances['v0-1-lin-3-2-lin-2-1'],
a1.instances['v0-1-lin-2-1-lin-2-1'], ), mergeNodes=ALL,
nodeMergingTolerance=1e-06, domain=MESH, originalInstances=DELETE)

a1.InstanceFromBooleanMerge(name='Part-4', instances=(a1.instances['Part-1-1'],
a1.instances['Part-1-2'], ), mergeNodes=ALL, nodeMergingTolerance=1e-06,
domain=MESH, originalInstances=DELETE)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy