Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
6 mars 2020, 15:52 UTC−5
Updated:
5 years ago
10 mars 2020, 13:51 UTC−4
Hello Jhoan,
I am assuming that you are using the Coefficient Form physics interface. If so, by default, the dependent variable is scalar (the "Number of dependent variables" is by default set to 1), and called u, so there is no v and you would get the error message you mentioned above. If you override the default and specify a "Number of dependent variables" of 2, then by default the dependent variables will be called u1 and u2, not u and v, and again you would get the error message you mention above. You can override those default names and specify u and v as the dependent variable names. If you do, then u and v will be available to you throughout the model, and therefore quantities like vy won't be an issue - unless your model is actually 2D axisymmetric in which case the coordinates are r and z, not x and y...
If the explanation above does not clear things up, please post your mph file in this thread. It'll be easier to help you without having to engage in a guessing game.
Best,
Jeff
-------------------
Jeff Hiller
Hello Jhoan,
I am assuming that you are using the Coefficient Form physics interface. If so, by default, the dependent variable is scalar (the "Number of dependent variables" is by default set to 1), and called u, so there is no v and you would get the error message you mentioned above. If you override the default and specify a "Number of dependent variables" of 2, then by default the dependent variables will be called u1 and u2, not u and v, and again you would get the error message you mention above. You can override those default names and specify u and v as the dependent variable names. If you do, then u and v will be available to you throughout the model, and therefore quantities like vy won't be an issue - unless your model is actually 2D axisymmetric in which case the coordinates are r and z, not x and y...
If the explanation above does not clear things up, please post your mph file in this thread. It'll be easier to help you without having to engage in a guessing game.
Best,
Jeff