Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Put variables to the size

Please login with a confirmed email address before reporting spam

Hello,

I want to ask something to try to solve optimization problem(size of the shape),

For example, if there is block shape, put (Width, Depth, Height)=(5, x, 5).

And with the MATLAB or any method , I want to give function to variable like 'linspace'.

It always makes errors, so, I want to check it is possible.

If it is impossible, do you have any idea to solve my problem??



Thanks,

Jinhoon Wang

1 Reply Last Post May 29, 2012, 4:19 a.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago May 29, 2012, 4:19 a.m. EDT
Hi

first you should not use one letter names for "user" varibles, x.y.z and most others are already used by COMSOL

Then for geometries, currently you acn only define PARAMETERS and use these. A pARAMETER can be changed by a pstudy Parametric SWEEP condition (and only this node will remake your geometry)

--
Good luck
Ivar
Hi first you should not use one letter names for "user" varibles, x.y.z and most others are already used by COMSOL Then for geometries, currently you acn only define PARAMETERS and use these. A pARAMETER can be changed by a pstudy Parametric SWEEP condition (and only this node will remake your geometry) -- Good luck Ivar

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.