!-----------------------------------element type-----------------------------------------
/prep7
et,3,fluid142,,,,1 !3D Fluid element with diplacement DOF option
et,4,mesh200,6 !Mesh only element (3D quad 4 nodes) to mesh surfaces used in CFXpre
!-------------------------------fluid domain geometry----------------------------------
CYL4, , , 3.5e-3,0,0,360 ! draw a circle which r equal to 3.5e-3
K, 5, 3.4e-3, -0.1e-3
K, 6, 7e-3, -0.375e-3
K, 7, 7e-3, -2.5e-3 ! draw 5, 6, 7, 8, 9,10, 11, 12 keypoints
K, 8, 8.5e-3, -2.5e-3
K, 9, 8.5e-3, 2.5e-3
K, 10, 7e-3, 2.5e-3
k, 11, 7e-3, 0.375e-3
k, 12, 3.4e-3, 0.1e-3
a , 5, 6, 11, 12 ! create a area from 5, 6, 11, 12 keypoints
a, 7, 8, 9, 10 ! create a area from 7, 8, 9, 10
k, 13, -3.4e-3, -0.375e-3
k, 14, -6.98e-3, -0.1e-3
k, 15, -6.98e-3, -2.5e-3
k, 16, -8.48e-3, -2.5e-3 ! draw 13, 14, 15, 16, 17, 18,19,20 keypoints
k, 17, -8.48e-3, 2.5e-3
k, 18, -6.98e-3, 2.5e-3
k, 19, -6.98e-3, 0.1e-3
k, 20, -3.4e-3, 0.375e-3
a, 13, 14, 19, 20 !create a area named 4
a, 15, 16, 17, 18 !create a area named 5
aadd,1,2,3,4,5
adele,all
lfillt, 21,28, 0.2e-3
lfillt, 24, 26, 0.2e-3 ! create fillet between two lines which r=0.2e-3
lfillt, 31, 32, 0.2e-3
lfillt, 29,30, 0.2e-3
k, 27, -3e-3 ! create a keypoint named 27
larc, 22, 23, 27, 3.5e-3 ! create a arc through three keypoints
k, 28, 3e-3 ! create a keypoint named 28
larc, 1, 5, 28, 3.5e-3 !create a arc through three keypoints
al,5, 6, 21,22, 23, 24 ! create a area named 1 by lines
al, 1, 2, 6, 9,10,11, 25, 26, 27, 28 !create a area named 2 by lines
al, 3,4,5,17, 18, 19, 29, 30, 31, 32 !create a area named 3 by lines
lplot, all
type, 3
mat, 3 !display all lines
lesi, 17, , ,10, 3,1
lesi, 19, , ,10,0.3,1
lesi, 3, , ,5, -3, 1
lesi, 4, , , 5, -3, 1
lesi, 32, , , 20, -5, 1
lesi, 30, , , 20, -5, 1
lesi, 22, , , 20, 0.2, 1
lesi, 21, , , 20, 0.2, 1
lesi, 23, , , 20, 0.2, 1
lesi, 24, , , 20, 0.2, 1 ! specifies the divisions and spacing ratio on the lines
lesi, 1, , , 5, -3, 1
lesi, 2, , , 5, -3, 1
lesi, 28, , , 20, -5, 1
lesi, 26, , , 20, -5, 1
lesi, 11, , ,10, 0.3,1
lesi, 9, , ,10, 3,1
lesi,18, , ,20, 1, 1
lesi,31, , ,20, 1, 1
lesi,29, , ,20, 1, 1
lesi,5, , ,7, 1, 1
lesi,6, , ,7, 1, 1
lesi,25, , ,20, 1, 1
lesi,27, , ,20, 1, 1
lesi,10, , ,20, 1, 1
asel, s , , ,1
asel, a, , ,2
asel, a, , , 3
amesh, all
k, 29
k, 30, 0,0,2.0e-3
l, 29, 30
VDRAG,1,, , , , ,7,
K, 37
K, 38, 0, 0, 1.0e-3
L, 37, 38
VDRAG,2,, , , , ,38,
VDRAG,3,, , , , ,38,
Aplot
ldele, 7
ldele, 38
kdele,29, 30, 37, 38
!------------------------------FSI interface surface mesh----------------------------------
asel, s , , ,10
nsla, s, 1 !choose all entities below areas(include areas)
type,4 !with mesh only elements
amesh,all !mesh the selected areas
cm,fsi,elem !Create component named fsi
allsel !choose all elements
asel, s , , ,29
nsla, s, 1 !choose all entities below areas(include areas)
type,4 !with mesh only elements
amesh,all !mesh the selected areas
cm,inlet ,elem !Create component named fsi
allsel !choose all elements
asel, s , , ,15
nsla, s, 1 !choose all entities below areas(include areas)
type,4 !with mesh only elements
amesh,all !mesh the selected areas
cm,inlet ,elem !Create component named fsi
allsel !choose all elements
asel, s, , ,10
asel, a, , ,29
asel, a, , , 15
asel, inve
nsla, s, 1 !choose all entities below areas(include areas)
type,4 !with mesh only elements
amesh,all !mesh the selected areas
cm,wall ,elem !Create component named fsi
allsel !choose all elements
cdwrite,db,fluid,cdb !Create fluid.cdb file for CFXpre
finish
这是我写的建模和设置fsi的过程?是不是建模有问题?模型还可以简化吗? |