# how to use Total Mesh Displacement for making a subject translating and rotating?

 Register Blogs Members List Search Today's Posts Mark Forums Read

September 15, 2009, 12:23
how to use Total Mesh Displacement for making a subject translating and rotating?
#1
Member

stb
Join Date: Sep 2009
Posts: 39
Rep Power: 15
when i import ccl , it is ok. But unfortunately, when set subdomain displacement, terror happened as follow:

Parameter 'Displacement X Component' in object '/FLOW:Flow Analysis 1/DOMAIN:moving/SUBDOMAIN:Subdomain1/MESH MOTION/DISPLACEMENT' has been assigned an expression that references the following unavailable variables: Total Mesh Displacement X,Total Mesh Displacement Y
Parameter 'Displacement Y Component' in object '/FLOW:Flow Analysis 1/DOMAIN:moving/SUBDOMAIN:Subdomain 1/MESH MOTION/DISPLACEMENT' has been assigned an expression that references the following unavailable variables: Total Mesh Displacement X,Total Mesh Displacement Y

what happened? I use cfx 12.0 version. need your help,thank you.
my ccl is :

LIBRARY:
CEL:
EXPRESSIONS:
sy = 1.0[m]/3.14159*(1.0-cos(3.14159[s^-1]*t))
x0= x-Total Mesh Displacement X
y0 = y-Total Mesh Displacement Y
R0 = sqrt(x0^2+y0^2)
alpha0 = atan2(y0,x0)
alpha1 = omega*t
Xcomp = R0*(cos(alpha1)-cos(alpha0))
Ycomp = R0*(sin(alpha1)-sin(alpha0))+sy
END
END
END
Attached Images
 1.jpg (92.6 KB, 60 views)

 September 15, 2009, 23:28 #2 Member   stb Join Date: Sep 2009 Posts: 39 Rep Power: 15 can anybody give me opinion?thnaks a lot.

 September 16, 2009, 00:32 #3 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,365 Rep Power: 139 The error message explains the issue. You have made the parameter Displacement X/Y Component a function of the variable Total Mesh Displacement X/Y. You can't do that. You will have to find another variable to make it a function of.

September 16, 2009, 04:06
#4
Member

stb
Join Date: Sep 2009
Posts: 39
Rep Power: 15
Quote:
 Originally Posted by ghorrocks The error message explains the issue. You have made the parameter Displacement X/Y Component a function of the variable Total Mesh Displacement X/Y. You can't do that. You will have to find another variable to make it a function of.
thank you very much for your suggestion. in order to keep the mesh quality fine during moving, subdomain 1 is created. set subdomian moving up and down along y direction and at that time it also rotates around subdomain's centriod axes.

i don't know how to make it work correctly. i have tried many ways . is any variable can be used to figure it out? please tell me in detail. thank you.
Attached Images
 2.JPG (65.2 KB, 31 views)