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.
Is it possible to override a dependent variable?
Posted 20 janv. 2012, 14:31 UTC−5 Version 4.2a 2 Replies
Please login with a confirmed email address before reporting spam
Hi everyone,
I've have a model in which I solve a number of coupled phenomena including temperature using a time-dependent solver. I then want to cool down my model to see the deformation at room temperature but I don't need to see the transition. Right now this is really slowing down my model because it is require so many time-steps to model.
Ideally I would like to be able to:
Run a Transient model.
Stop it.
Run a second transient model with the temperature at a different value. (without the temperature physics mode)
Does anyone have any ideas how to override the value of a dependent variable for part of the model? I could make an additional variable like T_fix to do it and use that everywhere instead, but that would require very substantial changes to the model so I'm look for a more elegant solution.
Is overriding a variable even supported by Comsol? All my attempts produce a duplicate variable name error.
I've have a model in which I solve a number of coupled phenomena including temperature using a time-dependent solver. I then want to cool down my model to see the deformation at room temperature but I don't need to see the transition. Right now this is really slowing down my model because it is require so many time-steps to model.
Ideally I would like to be able to:
Run a Transient model.
Stop it.
Run a second transient model with the temperature at a different value. (without the temperature physics mode)
Does anyone have any ideas how to override the value of a dependent variable for part of the model? I could make an additional variable like T_fix to do it and use that everywhere instead, but that would require very substantial changes to the model so I'm look for a more elegant solution.
Is overriding a variable even supported by Comsol? All my attempts produce a duplicate variable name error.
2 Replies Last Post 5 juil. 2012, 13:41 UTC−4