File: hole_3d_cubit.jou

package info (click to toggle)
p4est 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,500 kB
  • ctags: 4,328
  • sloc: ansic: 65,612; makefile: 695; sh: 403; perl: 206; awk: 40; python: 15
file content (10 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!python
import os

cubit.cmd('set node constraint on')
cubit.cmd('brick x 10')
cubit.cmd('create Cylinder height 12 radius 3')
cubit.cmd('subtract volume 2  from volume 1')
cubit.cmd('volume 1 size auto factor 5')
cubit.cmd('mesh volume 1')
cubit.cmd("export Abaqus \"%s/hole_3d_cubit.inp\" overwrite cubitids"%(os.environ['HOME'],))