Discussion ClosedThis 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 2009年6月19日 GMT+2 17:301 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 2009年6月23日 GMT+2 15:31
        
        