Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
13 nov 2012, 12:29 GMT-5
Hello, Kamil,
I see it this way: it seems that Geometry only accepts Parameters (they are only available as Global Definitions), not Variables (may they be Global or Model-scope). You can see that neither a Global Variable is accepted in the Geometry.
Jesus.
Hello, Kamil,
I see it this way: it seems that Geometry only accepts Parameters (they are only available as Global Definitions), not Variables (may they be Global or Model-scope). You can see that neither a Global Variable is accepted in the Geometry.
Jesus.
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
13 nov 2012, 14:43 GMT-5
Hi
but parameters can be changed with the "external Parametric sweep node" and then you adapt your geoemtry and can solve for different Parameter values
--
Good luck
Ivar
Hi
but parameters can be changed with the "external Parametric sweep node" and then you adapt your geoemtry and can solve for different Parameter values
--
Good luck
Ivar
Andrea Ferrario
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
14 nov 2012, 02:44 GMT-5
Hello Kamil,
Jesus is right: only "model parameters" (the ones in the Parameters node) can be used in the construction of the geometry. The reason is that those parameters have always a fixed value each time you solve (or at each step of a sweep). "Variables", instead, can be defined using almost anything: you can have a variable that depends on the solution and that cannot be used to construct the geometry directly.
If you need to solve problems such as "find the right dimension so that a certain condition is met", you need to follow Ivar's advice and perform a parametric sweep, or use optimization (if you have the required module).
--
Andrea Ferrario
Electromagnetics Group
COMSOL AB
Hello Kamil,
Jesus is right: only "model parameters" (the ones in the Parameters node) can be used in the construction of the geometry. The reason is that those parameters have always a fixed value each time you solve (or at each step of a sweep). "Variables", instead, can be defined using almost anything: you can have a variable that depends on the solution and that cannot be used to construct the geometry directly.
If you need to solve problems such as "find the right dimension so that a certain condition is met", you need to follow Ivar's advice and perform a parametric sweep, or use optimization (if you have the required module).
--
Andrea Ferrario
Electromagnetics Group
COMSOL AB