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.
Disabling variables in study step
Posted 08.05.2024, 16:18 GMT-4 Modeling Tools & Definitions, Studies & Solvers, Modeling Workflow Version 6.0 2 Replies
Please login with a confirmed email address before reporting spam
I am working on a heat transfer problem that requires me to calculate a variable (let's call it X, defined in "Variables 1") as the first step. X is defined as 2Y - 10, where Y is a state variable (defined in "State Variables 1") that is being updated after each timestep. In the second study step, I need to use the last computed value of the variable X in the physics and solve again. Which means that the variables should not be solved for in the second step.
I am implementing a two study scheme, where in study 1, I run the physics while computing X and Y. In study 2, I am disabling "Variables 1" and "State Variables 1", and setting the values of the variables not computed for through the previous solution. When I run this, the first study runs successfully, but the second study throws an error saying variable X is not defined. I understand that this might be because I am disabling the variables in the study, but I am not sure how else to not solve for the variable and state variable in the second study, while still using the last stored values.
Would be of great help if anyone can guide me to implement it properly.
Thanks!