Issue in solving for variables in a two-study problem

Sayee Srikarah Volaity

Please login with a confirmed email address before reporting spam

Hello all!

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 f(Y), where Y is a state variable (defined in "State Variables 1") that is being updated after each timestep. In the second step, I need to use the last 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!


0 Replies Last Post May 2, 2024, 2:40 p.m. EDT
COMSOL Moderator

Hello Sayee Srikarah Volaity

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.