Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
scale functions
Posted Jun 19, 2009, 11:30 a.m. EDT 1 Reply
Please login with a confirmed email address before reporting spam
I am trying to scale a geometry object using a function. The documentation for the scale() function says this should be possible, but I keep getting errors as described below:
given a 3D geometry object g1, I've tried the following:
g2=scale(g1,1,1,3*z,0,0,0)
ERROR - ??? Undefined function or variable 'z'.
g2=scale(g1,1,1,'3*z',0,0,0)
ERROR - ??? Error using ==> geom3.scale at 78, zscale must be a real scalar
I've also tried similar approaches in the COMSOL GUI, but with no success.
Can anyone tell me how to apply a scale function?
Thanks!
Douglas Cook
Purdue University
given a 3D geometry object g1, I've tried the following:
g2=scale(g1,1,1,3*z,0,0,0)
ERROR - ??? Undefined function or variable 'z'.
g2=scale(g1,1,1,'3*z',0,0,0)
ERROR - ??? Error using ==> geom3.scale at 78, zscale must be a real scalar
I've also tried similar approaches in the COMSOL GUI, but with no success.
Can anyone tell me how to apply a scale function?
Thanks!
Douglas Cook
Purdue University
1 Reply Last Post Jun 23, 2009, 9:31 a.m. EDT